ente/infra/services/promtail
Manav Rathi c43a0a7182
Shorten
2024-03-18 13:31:10 +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 Shorten 2024-03-18 13:31:10 +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/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 --now promtail