saltmine, prometheus
This commit is contained in:
18
prometheus/node_exporter.sls
Normal file
18
prometheus/node_exporter.sls
Normal 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
12
prometheus/prometheus.sls
Normal 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
|
||||||
3
saltmine.sls
Normal file
3
saltmine.sls
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
mine_functions:
|
||||||
|
grains.items: []
|
||||||
|
pillar.items: []
|
||||||
Reference in New Issue
Block a user