saltmine, prometheus

This commit is contained in:
do
2020-02-20 21:03:01 +01:00
parent 06a66e82ae
commit 21ffeb25df
4 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
prometheus:
wanted:
- node_exporter
service:
node_exporter:
args:
web.listen-address: ":9110"
# collector.textfile.directory: /var/tmp/node_exporter
config:
prometheus:
scrape_configs:
- job_name: 'node'
static_configs:
- targets:
- {{ grains.get('fqdn') }}{{ salt['pillar.get']('prometheus:service:node_exporter:args:web.listen-address', ':9110') }}

12
prometheus/prometheus.sls Normal file
View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
prometheus:
wanted:
- prometheus
- node_exporter
service:
prometheus:
args:
web.listen-address: 0.0.0.0:9090