This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
sw:prometheus:intro [2022/01/11 11:07] – 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 137: | Line 139: | ||
See [[sw: | 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: [' | ||
+ | [...] | ||
+ | [...] | ||
+ | </ | ||
====== Usage ====== | ====== Usage ====== |