Skip to content

Install and configure Grafana Agent.

License

Notifications You must be signed in to change notification settings

remerge/ansible-role-grafana-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for Grafana Agent

Install and Configure Grafana Agent with Ansible.

The Contributing Guide explains how to work with and contribute to this repository.

Example Playbook

---
- name: converge
  hosts: all
  become: yes
  gather_facts: yes
  roles:
    - role: remerge.grafana_agent

Role Variables

These variables are set in defaults/main.yml:

---
grafana_agent_wal_directory: /var/lib/grafana-agent/metrics
grafana_agent_positions_directory: /var/lib/grafana-agent/logs

grafana_agent_server_http_address: "127.0.0.1:9090"
grafana_agent_server_grpc_address: "127.0.0.1:9091"

grafana_agent_config:
  metrics:
    global:
      scrape_interval: 1m
    wal_directory: "{{ grafana_agent_wal_directory }}"
    configs: []
  integrations:
    agent:
      enabled: true
      instance: "{{ inventory_hostname }}"
    node_exporter:
      enabled: true
      instance: "{{ inventory_hostname }}"
      include_exporter_metrics: true
      disable_collectors:
        - mdadm