File: //etc/grafana-agent.yaml
metrics:
global:
scrape_interval: 2m
remote_write:
- url: http://mimir.lwmon.com.br/api/v1/push
wal_cleanup_age: 1h
wal_cleanup_period: 15m
wal_directory: '/var/lib/grafana-agent'
configs:
# Example Prometheus scrape configuration to scrape the agent itself for metrics.
# This is not needed if the agent integration is enabled.
# - name: agent
# host_filter: false
# scrape_configs:
# - job_name: agent
# static_configs:
# - targets: ['127.0.0.1:9090']
#
integrations:
node_exporter:
enabled: true
include_exporter_metrics: false
textfile_directory: "/var/tmp"
enable_collectors:
- "textfile"
disable_collectors:
- "mdadm"