nginx - update default var

This commit is contained in:
Ludovic Cartier 2023-04-21 18:08:16 +02:00
parent 9077335c0f
commit 1a0c5a3a04
2 changed files with 1 additions and 3 deletions

View File

@ -50,8 +50,6 @@ prometheus_mongodb_exporter_database: "admin"
prometheus_mongodb_exporter_host: "localhost" prometheus_mongodb_exporter_host: "localhost"
prometheus_mongodb_exporter_port: 27017 prometheus_mongodb_exporter_port: 27017
prometheus_nginx_scrape_uri: "http://localhost/stub_status"
prometheus_opcache_exporter_fcgi_uri: "unix:///var/run/www.sock" prometheus_opcache_exporter_fcgi_uri: "unix:///var/run/www.sock"
prometheus_phpfpm_sockets_directory: "/run/php/" prometheus_phpfpm_sockets_directory: "/run/php/"

View File

@ -5,7 +5,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/local/bin/prometheus-nginx-exporter \ ExecStart=/usr/local/bin/prometheus-nginx-exporter \
-nginx.scrape-uri {{ prometheus_nginx_scrape_uri }} \ -nginx.scrape-uri {{ prometheus_nginx_scrape_uri | default("http://localhost/stub_status") }} \
-web.listen-address=0.0.0.0:9113 -web.listen-address=0.0.0.0:9113
[Install] [Install]