From 7c8d5bae3a36a0c47fcb8c425f14045e46f4a49e Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 25 Jul 2026 22:19:14 +0900 Subject: [PATCH] ildkule/prometheus/phpfpm: scrape from bekkalokk --- .../services/monitoring/prometheus/default.nix | 1 + .../services/monitoring/prometheus/phpfpm.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hosts/ildkule/services/monitoring/prometheus/phpfpm.nix diff --git a/hosts/ildkule/services/monitoring/prometheus/default.nix b/hosts/ildkule/services/monitoring/prometheus/default.nix index e71a3b9..f5381c9 100644 --- a/hosts/ildkule/services/monitoring/prometheus/default.nix +++ b/hosts/ildkule/services/monitoring/prometheus/default.nix @@ -7,6 +7,7 @@ in { ./machines.nix ./matrix-synapse.nix ./mysqld.nix + ./phpfpm.nix ./postgres.nix ]; diff --git a/hosts/ildkule/services/monitoring/prometheus/phpfpm.nix b/hosts/ildkule/services/monitoring/prometheus/phpfpm.nix new file mode 100644 index 0000000..564ed34 --- /dev/null +++ b/hosts/ildkule/services/monitoring/prometheus/phpfpm.nix @@ -0,0 +1,15 @@ +{ ... }: +{ + services.prometheus.scrapeConfigs = [{ + job_name = "phpfpm"; + scheme = "https"; + metrics_path = "/prometheus-php-fpm-exporter/metrics"; + + static_configs = [ + { + labels.hostname = "bekkalokk"; + targets = [ "www.pvv.ntnu.no:443" ]; + } + ]; + }]; +}