VOOZH about

URL: https://marcinbojko.wordpress.com/tag/prometheus/

⇱ prometheus | Blog Marcina Bojko


Blog Marcina Bojko

Linux,Windows,serwer, i tak dalej ;)

Posts Tagged ‘prometheus

Learning Python #1 – Prometheus exporter for The Foreman

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)

👁 Image

Adding operating system to the tables

count(foreman_exporter_hosts) by (global_label, configuration_label,operatingsystem)
👁 Image

Or just these with not „OK” statuses, divided by operating system

count(foreman_exporter_hosts {global_label!="OK"}) by (operatingsystem)
👁 Image

Written by marcinbojko

7 lutego, 2021 at 17:18

Napisane w work

Tagged with docker, foreman, kubernetes, linux, prometheus, work

Jestem dostępny:

O autorze https://marcinbojko.wordpress.com/about/ github.com https://github.com/marcinbojko LinkedIn https://www.linkedin.com/in/marcinbojko Facebook https://www.facebook.com/marcin.bojko1

Chocolatey

Chocolatey

Najnowsze wpisy

Blog Stats

  • 127 594 hits

Najpopularniejsze wpisy

active directory amiga Android ansible ati backup ca centos chmura chocolatey chrome debian Dell disaster recovery dlink docker drbl dsc emulacja etch filesystem firefox food foreman foto Fujitsu-Siemens fun github google gsm HP htc hyper-v hypervisor IBM internet kubernetes linux media microsoft mint mozilla nexus 7 ntfs-3g nvidia office oldchool open open source opensource opensuse outlook packer pacman pocket powershell puppet radeon sci-fi scvmm servers star trek traefik Uncategorized vagrant virtualisation vmware windows windows defender winuae win_manage wirtualizacja work xbmc zabbix
Czerwiec 2026
Pon W Śr Czw Pt S N
1234567
891011121314
15161718192021
22232425262728
2930

Meta

Archiwum

Dołącz do 11 innych subskrybentów

Stwórz darmową stronę albo bloga na WordPress.com.

Wczytywanie komentarzy...
%d
Zaprojektuj witrynę taką jak ta za pomocą WordPress.com
Rozpocznij