diff --git a/defaults/main.yml b/defaults/main.yml index ef173c3..7e1bf8d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -50,8 +50,6 @@ prometheus_mongodb_exporter_database: "admin" prometheus_mongodb_exporter_host: "localhost" prometheus_mongodb_exporter_port: 27017 -prometheus_nginx_scrape_uri: "http://localhost/stub_status" - prometheus_opcache_exporter_fcgi_uri: "unix:///var/run/www.sock" prometheus_phpfpm_sockets_directory: "/run/php/" diff --git a/templates/systemd/prometheus-nginx-exporter.service.j2 b/templates/systemd/prometheus-nginx-exporter.service.j2 index afbfc44..c0a0d7d 100644 --- a/templates/systemd/prometheus-nginx-exporter.service.j2 +++ b/templates/systemd/prometheus-nginx-exporter.service.j2 @@ -5,7 +5,7 @@ After=network.target [Service] Type=simple 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 [Install]