Commit 973e8740 authored by k.elaammari's avatar k.elaammari
Browse files

add listen address locahost

parent 02062052
......@@ -7,7 +7,7 @@ After=network-online.target
User=prometheus
Group=prometheus
Restart=on-failure
ExecStart=/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data --storage.tsdb.retention.time=1d --storage.tsdb.max-block-duration=2h --web.enable-lifecycle
ExecStart=/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --web.listen-address="127.0.0.1:9090" --web.enable-lifecycle --storage.tsdb.no-lockfile --storage.tsdb.path=/var/lib/prometheus/data --storage.tsdb.retention.time=1d --storage.tsdb.max-block-duration=6h
ExecReload=/bin/kill -HUP $MAINPID
NoNewPrivileges=true
ProtectHome=true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment