prometheus-exporters: disable php-fpm, unix socket

access probably needs fixes in systemd unit
This commit is contained in:
teutat3s 2025-04-18 01:10:15 +02:00
parent 17568cd49f
commit 05c46a63e2
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 23 additions and 21 deletions

View file

@ -30,14 +30,16 @@
port = 9113;
};
# https://github.com/hipages/php-fpm_exporter
php-fpm = {
enable = true;
openFirewall = true;
firewallRules = [
''iifname "wg-ssh" tcp dport ${config.services.prometheus.exporters.php-fpm.port} accept''
];
port = 9253;
};
#php-fpm = {
# enable = true;
# extraFlags = [
# "--phpfpm.scrape-uri unix://${config.services.phpfpm.pools.nextcloud.socket};/status"
# ];
# group = "nginx";
# openFirewall = true;
# firewallFilter = "--in-interface wg-ssh --protocol tcp --match tcp --dport ${toString config.services.prometheus.exporters.php-fpm.port}";
# port = 9253;
#};
# https://github.com/prometheus-community/postgres_exporter
postgres = {
enable = true;

View file

@ -180,19 +180,19 @@ in
}
];
}
{
job_name = "php-fpm";
static_configs = [
{
targets = [
"nachtigall.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.php-fpm.port}"
];
labels = {
instance = "nachtigall";
};
}
];
}
#{
# job_name = "php-fpm";
# static_configs = [
# {
# targets = [
# "nachtigall.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.php-fpm.port}"
# ];
# labels = {
# instance = "nachtigall";
# };
# }
# ];
#}
{
job_name = "postgres";
relabel_configs = [