ente/infra/services/promtail
2024-03-18 10:16:55 +05:30
..
promtail.service Add prometheus and promtail definitions 2024-03-14 21:56:36 +05:30
promtail.yaml Add prometheus and promtail definitions 2024-03-14 21:56:36 +05:30
README.md Move into separate folder 2024-03-18 10:16:55 +05:30

Promtail

Install promtail.service on an instance if it is running something whose logs we want in Grafana.

Installing

Replace client.url in the config file with the Loki URL that Promtail should connect to, and move the files to their expected place.

scp services/promtail/* <instance>:

nano promtail.yaml
sudo mv promtail.yaml /root/promtail.yaml
sudo mv promtail.service /etc/systemd/system/promtail.service

Tell systemd to pick up new service definitions, enable the unit (so that it automatically starts on boot), and start it this time around.

sudo systemctl daemon-reload
sudo systemctl enable promtail
sudo systemctl start promtail