-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrafana-agent.yaml
38 lines (36 loc) · 910 Bytes
/
grafana-agent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
server:
log_level: debug
traces:
configs:
- name: default
receivers:
otlp:
protocols:
grpc:
remote_write:
- endpoint: tempo:4317
insecure: true
batch:
timeout: 5s
send_batch_size: 100
automatic_logging:
backend: logs_instance
logs_instance_name: default
roots: true
logs:
configs:
- name: default
positions:
filename: /tmp/positions.yaml
clients:
- url: http://grafana-gateway:3100/loki/api/v1/push
tenant_id: tenant1
scrape_configs:
- job_name: docker_scrape
docker_sd_configs:
- host: unix:///var/run/docker.sock
refresh_interval: 5s
relabel_configs:
- source_labels: ["__meta_docker_container_name"]
regex: "/(.*)"
target_label: "container"