Compare commits
2 commits
66e6c960d3
...
97496ef4b8
Author | SHA1 | Date | |
---|---|---|---|
97496ef4b8 | |||
0b40cc4b9b |
5 changed files with 10 additions and 3 deletions
|
@ -3,6 +3,7 @@ prometheus__scraping_quanta:
|
||||||
targets: "{{ groups.quanta }}"
|
targets: "{{ groups.quanta }}"
|
||||||
address: 127.0.0.1:9116
|
address: 127.0.0.1:9116
|
||||||
path: /snmp
|
path: /snmp
|
||||||
|
timeout: 60s
|
||||||
params:
|
params:
|
||||||
module:
|
module:
|
||||||
- quanta
|
- quanta
|
||||||
|
|
3
group_vars/router/prometheus.yml
Normal file
3
group_vars/router/prometheus.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
prometheus_keepalived__dest: /var/run/prometheus-node-exporter/keepalived.prom
|
||||||
|
...
|
4
hosts
4
hosts
|
@ -58,7 +58,7 @@ edge
|
||||||
[ntp]
|
[ntp]
|
||||||
ntp-[1:2].int.infra.auro.re
|
ntp-[1:2].int.infra.auro.re
|
||||||
|
|
||||||
[radius]
|
[radiusng]
|
||||||
radius-[1:2].isp.infra.auro.re
|
radius-[1:2].isp.infra.auro.re
|
||||||
|
|
||||||
[vm_network:children]
|
[vm_network:children]
|
||||||
|
@ -66,7 +66,7 @@ vpn
|
||||||
edge
|
edge
|
||||||
dhcp
|
dhcp
|
||||||
dns
|
dns
|
||||||
radius
|
radiusng
|
||||||
ntp
|
ntp
|
||||||
#ldap
|
#ldap
|
||||||
isp
|
isp
|
||||||
|
|
|
@ -25,6 +25,9 @@ def convert_jobs(config):
|
||||||
if "path" in job:
|
if "path" in job:
|
||||||
config["metrics_path"] = job["path"]
|
config["metrics_path"] = job["path"]
|
||||||
|
|
||||||
|
if "timeout" in job:
|
||||||
|
config["scrape_timeout"] = job["timeout"]
|
||||||
|
|
||||||
if "address" in job:
|
if "address" in job:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rwx,g=rw,o=rw
|
mode: u=rwx,g=rx,o=rx
|
||||||
|
|
||||||
- name: Override prometheus-node-exporter.service
|
- name: Override prometheus-node-exporter.service
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue