Installs prometheus smartmon.sh script and sets up cron job for scheduling.
Node exporter needs to be already installed with the textfile collector enabled.
- hosts: group
roles:
- role: ls1admin.ansible-smart-textfile-collector
script_dir: /opt/node-exporter-textfile-collector-scripts
textfile_dir: /var/lib/node_exporter
commit_hash: 4bb930b565879696245f006e737b9e1ce6b3bd6d
# interval
cron_minutes: "0"
cron_hours: "*/6"
script_dir
directory to download scripts intotextfile_dir
directory for the textfile scripts (configured in Node Exporter)commit_hash
commit hash of node-exporter-textfile-collector-scripts repo (https://github.com/prometheus-community/node-exporter-textfile-collector-scripts)cron_minutes
,cron_hours
execution frequency
- hosts: group
roles:
- role: cloudalchemy.prometheus.node-exporter
- role: ls1admin.ansible-smart-textfile-collector
vars:
cron_minutes: "*"
cron_hours: "*"