Last active
January 5, 2022 14:12
-
-
Save dfrankel33/89719df0790b71de201f3f7739fc24e5 to your computer and use it in GitHub Desktop.
Grafana Agent - Linux - Example Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integrations: | |
agent: | |
enabled: false | |
node_exporter: | |
enabled: true | |
prometheus_remote_write: | |
- basic_auth: | |
password: GCLOUD_API_KEY | |
username: GCLOUD_PROM_USER_ID | |
url: GCLOUD_PROM_ENDPOINT | |
loki: | |
configs: | |
- clients: | |
- basic_auth: | |
password: GCLOUD_API_KEY | |
username: GCLOUD_LOKI_USER_ID | |
url: GCLOUD_LOKI_ENDPOINT | |
name: logs | |
scrape_configs: | |
- job_name: systemd-journal | |
journal: | |
json: false | |
max_age: 12h | |
path: /var/log/journal | |
labels: | |
job: systemd-journal | |
agent_hostname: ${HOSTNAME} | |
- job_name: static-log-file | |
static_configs: | |
- targets: | |
- localhost | |
labels: | |
job: static-log-file | |
__path__: /home/foo/logs/*.log | |
positions: | |
filename: /tmp/positions.yaml | |
target_config: | |
sync_period: 10s | |
prometheus: | |
configs: | |
- name: integrations | |
remote_write: | |
- basic_auth: | |
password: GCLOUD_API_KEY | |
username: GCLOUD_PROM_USER_ID | |
url: GCLOUD_PROM_ENDPOINT | |
scrape_configs: | |
global: | |
scrape_interval: 60s | |
wal_directory: /tmp/grafana-agent-wal | |
server: | |
http_listen_port: 12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment