some more security
This commit is contained in:
parent
e691ca45b0
commit
95b729d69c
2 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@
|
||||||
template:
|
template:
|
||||||
src: prometheus.yml
|
src: prometheus.yml
|
||||||
dest: /etc/prometheus/prometheus.yml
|
dest: /etc/prometheus/prometheus.yml
|
||||||
owner: root
|
owner: prometheus
|
||||||
group: root
|
group: prometheus
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
notify: Restart prometheus
|
notify: Restart prometheus
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
|
@ -30,10 +30,10 @@ scrape_configs:
|
||||||
# scheme defaults to 'http'.
|
# scheme defaults to 'http'.
|
||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:9090']
|
- targets: ['{{ lan_address }}:9090']
|
||||||
|
|
||||||
- job_name: node
|
- job_name: node
|
||||||
# If prometheus-node-exporter is installed, grab stats about the local
|
# If prometheus-node-exporter is installed, grab stats about the local
|
||||||
# machine by default.
|
# machine by default.
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['172.20.1.1:9100']
|
- targets: ['{{ lan_address }}:9100']
|
||||||
|
|
Loading…
Reference in a new issue