Skip to content

This Ansible role create target file for Prometheus-monitoring custom service discovery and add to this file all hosts from your Ansible inventory.

Notifications You must be signed in to change notification settings

101101/anmcarrow.ansible.prometheus-targets-from-inventory-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Prometheus-monitoring custom targets Ansible role

This Ansible role create target file for Prometheus custom service discovery and add to this file all hosts from Ansible inventory.

Note: you need to (re)define prometheus_custom_targets_path variable before run thois role and configure your Prometheus server to use this cusdtom path (according to article).

Original repo: https://github.com/anmcarrow/anmcarrow.ansible.prometheus-targets-from-inventory-setup

Requirements

See meta/main.yml

Role Variables

See defaults/main.yml

Dependencies

See meta/main.yml

Example Playbook

- hosts: all
  roles:
    - generic.prometheus-targets-from-inventory-setup

License

MIT

Author Information

Andrey Makarov [email protected]

About

This Ansible role create target file for Prometheus-monitoring custom service discovery and add to this file all hosts from your Ansible inventory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published