![]() |
VOOZH | about |
Linux,Windows,serwer, i tak dalej ;)
The need
The Foreman is a nice open-source ENC (External Node Classifier) for multiple executors (Ansible, Puppet, Chef, Saltstack) and it’s slowly going to be executor-agnostic: https://www.theforeman.org/
Since internal prometheus client exposes only data about application itself, I’ve found useful to also expose statuses and labels of managed hosts into Prometheus, thus foreman-exporter was born: https://github.com/marcinbojko/foreman_exporter
Queries
Let’s try our query about hosts statuses:
count(foreman_exporter_hosts) by (global_label, configuration_label)
Adding operating system to the tables
count(foreman_exporter_hosts) by (global_label, configuration_label,operatingsystem)
Or just these with not „OK” statuses, divided by operating system
count(foreman_exporter_hosts {global_label!="OK"}) by (operatingsystem)
Written by marcinbojko
7 lutego, 2021 at 17:18
Napisane w work
Tagged with docker, foreman, kubernetes, linux, prometheus, work
| Pon | W | Śr | Czw | Pt | S | N |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |