Created
May 12, 2025 11:53
-
-
Save Tracnac/816b311952ebaa0b8e41beb489fce038 to your computer and use it in GitHub Desktop.
Grafana and Loki installation on Debian 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install curl ca-certificates | |
apt install -y postgresql-common | |
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh | |
apt install postgresql-17 postgresql-client-17 postgresql-doc-17 | |
apt-get install -y apt-transport-https software-properties-common wget | |
mkdir -p /etc/apt/keyrings/ | |
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | tee /etc/apt/keyrings/grafana.gpg > /dev/null | |
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | tee -a /etc/apt/sources.list.d/grafana.list | |
apt-get update | |
apt-get install grafana | |
systemctl daemon-reload | |
systemctl enable grafana-server | |
systemctl start grafana-server | |
apt-get install loki promtail | |
vi /etc/loki/config.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment