Set up prometheus-phpfpm-exporter for various pools on bekkalokk #159

Merged
oysteikt merged 2 commits from prometheus-phpfpm-exporter into main 2026-07-27 13:58:47 +02:00
Owner
Fixes https://git.pvv.ntnu.no/Drift/issues/issues/332
oysteikt added 2 commits 2026-07-26 11:20:09 +02:00
ildkule/prometheus/phpfpm: scrape from bekkalokk
Eval nix flake / evals (push) Successful in 7m37s
Eval nix flake / evals (pull_request) Successful in 6m54s
6f65a78933
felixalb approved these changes 2026-07-27 13:02:05 +02:00
felixalb left a comment
Owner

I assume this is tested and working, looks good. Feel free to ignore comments :)

I assume this is tested and working, looks good. Feel free to ignore comments :)
@@ -0,0 +33,4 @@
};
services.nginx = lib.mkIf cfg.enable {
virtualHosts."www.pvv.ntnu.no" = lib.mkIf config.services.nginx.enable {
Owner

non-blocking nit: This mkif is erratic behavior that could potentially make troubleshooting more difficult. I don't see any benefit from conditionally changing the configuration, as if nginx is disabled, this is not used for anything anyways.

non-blocking nit: This mkif is erratic behavior that could potentially make troubleshooting more difficult. I don't see any benefit from conditionally changing the configuration, as if nginx is disabled, this is not used for anything anyways.
Author
Owner

I'll open a new issue on making a treewide decision about these

I'll open a new issue on making a treewide decision about these
@@ -0,0 +42,4 @@
proxyPass = "http://localhost:${toString cfg.port}/metrics";
extraConfig = ''
allow 127.0.0.1;
Owner

non-blocking nit: we might want to go over the repo and replace most of these with 127.0.0.0/8, but this is probably absolutely fine

non-blocking nit: we might want to go over the repo and replace most of these with 127.0.0.0/8, but this is probably absolutely fine
Author
Owner

Let's solve these in anothet treewide

Let's solve these in anothet treewide
oysteikt merged commit afc6b3182e into main 2026-07-27 13:58:47 +02:00
oysteikt deleted branch prometheus-phpfpm-exporter 2026-07-27 13:58:48 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drift/pvv-nixos-config#159