[+] fix docker compose
This commit is contained in:
parent
671e093726
commit
a7cb247a4e
@ -300,7 +300,8 @@ server {
|
|||||||
location = /_metrics {
|
location = /_metrics {
|
||||||
stub_status;
|
stub_status;
|
||||||
access_log off;
|
access_log off;
|
||||||
allow 172.0.0.0/8; # allow only local exporter
|
allow 172.0.0.0/8;
|
||||||
|
allow 127.0.0.1;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ services:
|
|||||||
#env_file:
|
#env_file:
|
||||||
# .envs/nginx-exporter.env
|
# .envs/nginx-exporter.env
|
||||||
environment:
|
environment:
|
||||||
SCRAPE_URI: http://ssl-app:80/_status
|
SCRAPE_URI: http://ssl-app:80/_metrics
|
||||||
# LISTEN_ADDRESS: 0.0.0.0:9113
|
# LISTEN_ADDRESS: 0.0.0.0:9113
|
||||||
ports:
|
ports:
|
||||||
- ${NGINX_EXPORTER_PORTS:-"127.0.0.1:9113"}:9113
|
- ${NGINX_EXPORTER_PORTS:-"127.0.0.1:9113"}:9113
|
||||||
|
Loading…
Reference in New Issue
Block a user