prometheus-exporters: disable php-fpm, unix socket
access probably needs fixes in systemd unit
This commit is contained in:
parent
17568cd49f
commit
05c46a63e2
2 changed files with 23 additions and 21 deletions
|
@ -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;
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue