diff options
author | Georg Pfuetzenreuter | 2023-02-25 16:47:21 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-25 16:47:21 +0100 |
commit | cc007e6470a54311fac2facd1c6e9b321a3a4f28 (patch) | |
tree | 4b5a33871977947b1ae94041dd6be49d1bc03991 /salt/profile/node_exporter | |
parent | c8c91269fda61fcf37ce9cb821c0bd83d32125ab (diff) | |
parent | ddb72f1cb3e3b6b4dbe11ff36510bf15e226b9aa (diff) | |
download | salt-cc007e6470a54311fac2facd1c6e9b321a3a4f28.tar.gz salt-cc007e6470a54311fac2facd1c6e9b321a3a4f28.tar.bz2 salt-cc007e6470a54311fac2facd1c6e9b321a3a4f28.zip |
Merge pull request 'Import moni Prometheus configuration' (#32) from prometheus-moni into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/32
Diffstat (limited to 'salt/profile/node_exporter')
-rw-r--r-- | salt/profile/node_exporter/init.sls | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/salt/profile/node_exporter/init.sls b/salt/profile/node_exporter/init.sls deleted file mode 100644 index 1e46b3d..0000000 --- a/salt/profile/node_exporter/init.sls +++ /dev/null @@ -1,36 +0,0 @@ -{%- set header = salt['pillar.get']('managed_header_pound') -%} -{%- set sysconfig = '/etc/sysconfig/prometheus-node_exporter' -%} - -node_exporter_packages: - pkg.installed: - - pkgs: - - golang-github-prometheus-node_exporter - -node_exporter_sysconfig_header: - file.prepend: - - name: {{ sysconfig }} - - text: '{{ header }}' - - require: - - pkg: node_exporter_packages - -node_exporter_sysconfig: - file.replace: - - name: {{ sysconfig }} - - pattern: | - ^ARGS=.*$ - - repl: | - ARGS="--web.listen-address=:9200 --collector.filesystem.fs-types-exclude='^(fuse.s3fs|fuse.cryfs|tmpfscgroup2?|debugfs|devpts|devtmpfs|fusectl|overlay|proc|procfs|pstore)\$' --no-collector.zfs --no-collector.thermal_zone --no-collector.powersupplyclass" - - require: - - pkg: node_exporter_packages - - file: node_exporter_sysconfig_header - -node_exporter_service: - service.running: - - name: prometheus-node_exporter.service - - enable: True - - full_restart: True - - require: - - pkg: node_exporter_packages - - file: node_exporter_sysconfig - - watch: - - file: node_exporter_sysconfig |