Skip to content
Snippets Groups Projects
Commit cd528a88 authored by skorpy's avatar skorpy :construction_worker:
Browse files

prometheus: add more node-collector

parent 0a102733
Branches
No related tags found
No related merge requests found
Pipeline #43283 passed
moreutils:
pkg.installed
python3-prometheus-client:
pkg.installed
https://frickel.cloud/prometheus-community/node-exporter-textfile-collector-scripts.git:
git.latest:
- target: /opt/node-cron-collector
......@@ -14,3 +17,21 @@ apt-collector-cron:
- require:
- git: https://frickel.cloud/prometheus-community/node-exporter-textfile-collector-scripts.git
- pkg: moreutils
chrony-collector-cron:
cron.present:
- name: '/opt/node-cron-collector/chrony.py | sponge /run/prometheus-node-exporter/textfiles/chrony.prom'
- minute: '*'
- require:
- git: https://frickel.cloud/prometheus-community/node-exporter-textfile-collector-scripts.git
- pkg: python3-prometheus-client
{% if grains['virtual'] == 'physical' %}
smart_metrics-collector-cron:
cron.present:
- name: '/opt/node-cron-collector/smartmon.sh | sponge /run/prometheus-node-exporter/textfiles/smart_metrics.prom'
- minute: '*/5'
- require:
- git: https://frickel.cloud/prometheus-community/node-exporter-textfile-collector-scripts.git
- pkg: moreutils
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment