Skip to content

Installs prometheus smartmon.sh script and sets up cron job for scheduling.

License

Notifications You must be signed in to change notification settings

ls1admin/ansible-smart-textfile-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: ansible-smart-textfile-collector

Installs prometheus smartmon.sh script and sets up cron job for scheduling.

Requirements

Node exporter needs to be already installed with the textfile collector enabled.

- hosts: group
  roles:
    - role: ls1admin.ansible-smart-textfile-collector

Role Variables

script_dir: /opt/node-exporter-textfile-collector-scripts
textfile_dir: /var/lib/node_exporter
commit_hash: 4bb930b565879696245f006e737b9e1ce6b3bd6d

# interval
cron_minutes: "0"
cron_hours: "*/6"

Example Playbook

- hosts: group
  roles:
    - role: cloudalchemy.prometheus.node-exporter
    - role: ls1admin.ansible-smart-textfile-collector
      vars:
        cron_minutes: "*"
        cron_hours: "*"

About

Installs prometheus smartmon.sh script and sets up cron job for scheduling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published