This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sw:prometheus:intro [2022/01/11 10:55] – Frank Fegert | sw:prometheus:intro [2022/01/11 11:20] (current) – Frank Fegert | ||
---|---|---|---|
Line 119: | Line 119: | ||
====== Configuration ====== | ====== Configuration ====== | ||
+ | |||
+ | ===== Initial ===== | ||
Configure the // | Configure the // | ||
Line 131: | Line 133: | ||
[...] | [...] | ||
ARGS=" | ARGS=" | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | ===== Adding Prometheus to Grafana ===== | ||
+ | |||
+ | See [[sw: | ||
+ | |||
+ | ===== Scraping metrics with Prometheus ===== | ||
+ | |||
+ | Configure // | ||
+ | |||
+ | ==== Loki ==== | ||
+ | |||
+ | <cli> | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | [...] | ||
+ | scrape_configs: | ||
+ | [...] | ||
+ | - job_name: loki | ||
+ | static_configs: | ||
+ | - targets: [' | ||
+ | [...] | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Promtail ==== | ||
+ | |||
+ | <cli> | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | [...] | ||
+ | scrape_configs: | ||
+ | [...] | ||
+ | - job_name: promtail | ||
+ | static_configs: | ||
+ | - targets: [' | ||
+ | [...] | ||
[...] | [...] | ||
</ | </ |