This script installs a monitoring kit for Grafana dashboard that includes resource monitoring with Prometheus, Node_Exporter, and Cadvisor, and logging monitoring with Loki and Promtail. It also includes a Docker Compose version that includes Cadvisor, Loki, Prometheus, and Promtail. The Grafana dashboard includes a Cadvisor dashboard and a Node Exporter dashboard.
- Ubuntu Server
- User with sudo privileges
Download the script:
wget https://raw.githubusercontent.com/taufiqpsumarna/Grafana_monitoringkit/main/install.sh
Make the script executable:
chmod +x install_prometheus_loki.sh
Run the script:
sudo ./install_prometheus_loki.sh
This script will install the monitoring kit for grafana dashboard, it will include:
- Prometheus
- Node_Exporter
- Cadvisor
- Loki
- Promtail
- Cadvisor
- Loki
- Prometheus
- Promtail
- https://computingforgeeks.com/how-to-install-prometheus-and-node-exporter-on-debian/
- https://citizix.com/how-to-setup-promtail-grafana-and-loki-for-free-log-management-in-debian-11/
This has been tested in machine with spesification below:
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Linux 5.15.0-1028-aws #32-Ubuntu SMP Mon Jan 9 12:28:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
docker --version
Docker version 20.10.17, build 100c701
docker-compose --version
docker-compose version 1.29.2, build unknown
Note: That the monitoring kit maybe will not working properly in another operating system, and it will use the default configuration only, you can customize the configuration before start installing
This project is licensed under the MIT License.
*This Scripts Created By taufiqpsumarna