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:21] – Frank Fegert | sw:prometheus:intro [2022/01/11 11:20] (current) – Frank Fegert | ||
---|---|---|---|
Line 27: | Line 27: | ||
====== Files and Directories ====== | ====== Files and Directories ====== | ||
- | |||
- | FIXME | ||
===== General Files and Directories ===== | ===== General Files and Directories ===== | ||
- | FIXME | + | ^ File or Directory |
+ | | ''/ | ||
+ | | ''/ | ||
+ | | ''/ | ||
+ | | ''/ | ||
+ | | ''/ | ||
===== Configuration Files ===== | ===== Configuration Files ===== | ||
- | FIXME | + | ^ File or Directory |
+ | | ''/ | ||
+ | | ''/ | ||
====== Getting Help ====== | ====== Getting Help ====== | ||
- | FIXME | + | // |
- | Manual pages: | + | < |
+ | user@host: | ||
+ | </ | ||
+ | |||
+ | '' | ||
<cli> | <cli> | ||
- | user@host: | + | user@host: |
</ | </ | ||
====== Install ====== | ====== Install ====== | ||
- | |||
- | FIXME | ||
To install // | To install // | ||
Line 57: | Line 64: | ||
root@host: | root@host: | ||
root@host: | root@host: | ||
+ | </ | ||
+ | |||
+ | Create the // | ||
+ | |||
+ | <cli> | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | template(name=" | ||
+ | if ($programname startswith ' | ||
+ | | ||
+ | type=" | ||
+ | dynaFile=" | ||
+ | fileCreateMode=" | ||
+ | fileOwner=" | ||
+ | fileGroup=" | ||
+ | dirCreateMode=" | ||
+ | dirOwner=" | ||
+ | dirGroup=" | ||
+ | ioBufferSize=" | ||
+ | ) | ||
+ | stop | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Restart the '' | ||
+ | |||
+ | <cli> | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | Create the // | ||
+ | |||
+ | <cli> | ||
+ | root@host: | ||
+ | root@host: | ||
</ | </ | ||
Line 71: | Line 117: | ||
root@host: | root@host: | ||
</ | </ | ||
+ | |||
====== Configuration ====== | ====== Configuration ====== | ||
- | FIXME | + | ===== Initial ===== |
+ | |||
+ | Configure the // | ||
+ | |||
+ | < | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | [...] | ||
+ | ARGS=" | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | ===== Adding Prometheus to Grafana ===== | ||
+ | |||
+ | See [[sw: | ||
+ | |||
+ | ===== Scraping metrics with Prometheus ===== | ||
+ | |||
+ | Configure // | ||
+ | |||
+ | ==== Loki ==== | ||
+ | |||
+ | < | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | [...] | ||
+ | scrape_configs: | ||
+ | [...] | ||
+ | - job_name: loki | ||
+ | static_configs: | ||
+ | - targets: [' | ||
+ | [...] | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Promtail ==== | ||
+ | |||
+ | < | ||
+ | root@host: | ||
+ | </ | ||
+ | |||
+ | File contents: | ||
+ | |||
+ | <file config / | ||
+ | [...] | ||
+ | scrape_configs: | ||
+ | [...] | ||
+ | - job_name: promtail | ||
+ | static_configs: | ||
+ | - targets: [' | ||
+ | [...] | ||
+ | [...] | ||
+ | </ | ||
====== Usage ====== | ====== Usage ====== |