mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-08-08 04:19:51 +02:00
ildkule/prometheus/phpfpm: scrape from bekkalokk
This commit is contained in:
@@ -7,6 +7,7 @@ in {
|
|||||||
./machines.nix
|
./machines.nix
|
||||||
./matrix-synapse.nix
|
./matrix-synapse.nix
|
||||||
./mysqld.nix
|
./mysqld.nix
|
||||||
|
./phpfpm.nix
|
||||||
./postgres.nix
|
./postgres.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" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user