Install and Configure Grafana Agent with Ansible.
The Contributing Guide explains how to work with and contribute to this repository.
---
- name: converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: remerge.grafana_agent
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