Skip to content

Instantly share code, notes, and snippets.

View gilangvperdana's full-sized avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
@gilangvperdana
gilangvperdana / README.md
Last active January 1, 2023 03:39
Deploy OpenStack Xena MultiNode on Ubuntu 20.04LTS with Kolla Ansible

Deploy OpenStack Xena MultiNode on Ubuntu 20.04LTS

Goals

  • Can access on endpoint console.bignetlab.com
  • Prometheus & Grafana Ready

Prerequisite

  • 3 NODE
    • 1 CONTROLLER
    • 2 WORKER
@gilangvperdana
gilangvperdana / README.md
Last active April 1, 2025 16:39
Pritunl behind Nginx Reverse Proxy

Install Pritunl

sudo apt-get update
sudo apt-get -y upgrade

echo "deb http://repo.pritunl.com/stable/apt focal main" | sudo tee /etc/apt/sources.list.d/pritunl.list
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
sudo apt update
@gilangvperdana
gilangvperdana / README.md
Last active July 24, 2022 15:58
Integrate Grafana with Promtail + Loki

Integrate Grafana with Promtail + Loki

Install Loki Binary and Start as a Service

cd /usr/local/bin
curl -s https://api.github.com/repos/grafana/loki/releases/latest | grep browser_download_url |  cut -d '"' -f 4 | grep loki-linux-amd64.zip | wget -i -

sudo apt install unzip
sudo unzip loki-linux-amd64.zip
mv loki-linux-amd64 loki
@gilangvperdana
gilangvperdana / README.md
Last active October 5, 2022 11:38
Alerting Grafana with Picture

Alerting Grafana with Picture

Installation

docker run --name grafana --network=host --restart always -d -p 3000:3000 gilangvperdana/apps:grafanav7
docker exec -it -u 0 grafana bash
grafana-cli plugins install grafana-image-renderer
apt install chromium-browser
@gilangvperdana
gilangvperdana / README.md
Last active June 3, 2022 02:33
Victoria Metrics Provisioning

Victoria Metrics Provisioning

Tested on Ubuntu 20.04LTS

If you have a problem to handle a much Prometheus Data Sources, you can alternatively add VictoriaMetrics to handle a much Prometheus Server just with one Data Sources on Grafana after this.

Before

Before you install this, make sure you have installed an monitoring stack NodeExporter/Prometheus/Grafana/etc.

Installation

@gilangvperdana
gilangvperdana / README.md
Last active June 3, 2022 02:58
Automation Delete Index ELK with Curator

Automation Delete Index ELK with Curator

If you have an issue that your Index getting bigger day by day, you can automation delete your OLD Index with Curator

Before

Before you want to try this, make sure you have a ELK Cluster before.

Installation

  • Install Dependencies
sudo apt install python3-pip
@gilangvperdana
gilangvperdana / README.md
Last active June 3, 2022 03:27
Run Script to SystemD

Run Script to SystemD

You can run your script to SystemD on Linux

Configuration

  • Make script for run your apps (for example run Flask) For example my apps directory on /root/Flask/
touch run.sh
chmod +x run.sh
nano /root/run.sh
@gilangvperdana
gilangvperdana / README.md
Last active June 13, 2022 01:15
Tuned you Linux System with TunedAdm

Tuned you Linux System with TunedAdm

Installation

apt install tuned -y
systemctl start tuned            
systemctl enable tuned    
systemctl status tuned    
@gilangvperdana
gilangvperdana / README.md
Created June 17, 2022 14:25
Octavia 'o-hm0' port Auto DHClient when Reboot

Auto DHClient Octavia Openstack Port

Make a Script

nano /usr/lib/octavia-interface.sh
#!/bin/bash
@gilangvperdana
gilangvperdana / README.md
Last active June 30, 2022 01:08
Openstack Other Side Deployment

Openstack AIO Xena

Environment

  • Network Interface :
    • ens3 172.16.1.2
    • ens5 none ip (172.16.2.0/24)
  • 1 disk 500GB (/dev/vda)
  • RAM 24GB | Core 16
  • Ubuntu 20.04LTS