some more security

This commit is contained in:
histausse 2021-09-06 00:55:47 +02:00
parent e691ca45b0
commit 95b729d69c
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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']