updated integration of agent

This commit is contained in:
nd 2020-05-22 21:17:59 +02:00
parent c677a02fde
commit 588fe344f1
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
6 changed files with 121 additions and 13 deletions

View file

@ -1,17 +1,11 @@
prometheus:
args:
"web.listen-address": "[::1]:9090"
config:
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'example'
alerting:
alertmanagers:
- static_configs:
- targets: ['localhost:9093']
scraper: "{{ inventory_hostname }}"
rule_files:
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- /etc/prometheus/conf.d/rule_files/*.conf