Skip to content

redhat-performance/ansible-role-add_prometheus_target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Configure Prometheus server to scrape the exporter

Variables

When calling the role, configure these variables:

  • inventory_hostname - this is Ansible built-in variable and will be used to specify host to scrape
  • exporter_port - port used by the exporter which will be opened on the node
  • prometheus_config - file where to add new target to scrape

In inventory file, you also need prometheus group with one server.

Example

- name: "Scrape Tower exporter"
  include_role:
    name: add-prometheus-target
  vars:
    prometheus_config: /root/prometheus/targets/tower.yml
    exporter_port: 443

About

Ansible role to to manipulate our Prometheus deployment scrape targets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published