Prometheus blackbox exporter

Hi, I’m currently trying to set up monitoring for my servers and so far I’m about to implement a Prometheus+Grafana based solution. The problem is that I want to do some blackbox monitoring too. Did anybody set up the Prometheus blackbox exporter with NixOS and could share their corresponding nix files?

You could probably find some useful bits via github search - Code search results · GitHub.
Combining it with nixos option definions on NixOS Search

These 2 resources + official docs from prometheus website for list of config options, should be all you need.

1 Like

Sure, here you go: https://git.sr.ht/~bwolf/dotfiles/tree/master/item/hosts/nix01/modules/prometheus/blackbox.nix

This does not configure the exporter though, or am I missing something?

Yeah, this is not there although it should be. Look here: https://git.sr.ht/~bwolf/dotfiles/tree/master/item/hosts/nix01/modules/prometheus/blackbox/default.nix