Cannot run `promtool` even with prometheus installed (nixos minimal))

Hey!

I have been trying to get the promtool command to work but for whatever reason, it won’t. I have prometheus in my system packages and according to nixpkgs, that should provide the promtool binary.

Thanks all

Looks like the binary is in the cli output: nixpkgs/pkgs/servers/monitoring/prometheus/default.nix at 44a71ff39c182edaf25a7ace5c9454e7cba2c658 · NixOS/nixpkgs · GitHub

That output is not installed by default, you can access it with prometheus.cli though, e.g.:

nix shell nixpkgs#prometheus.cli
1 Like

Thanks, that worked!