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" ]; + } + ]; + }]; +}