forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrafana-agent.yaml
61 lines (59 loc) · 1.79 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
server:
log_level: debug
http_listen_port: 9091
prometheus:
global:
scrape_interval: 5s
external_labels:
origin: grafana-agent
configs:
- name: local
host_filter: false
scrape_configs:
- job_name: cortex-distributor
static_configs:
- targets: ['distributor:8001']
labels:
container: 'distributor'
- job_name: cortex-ingester-1
static_configs:
- targets: ['ingester-1:8002']
labels:
container: 'ingester-1'
- job_name: cortex-ingester-2
static_configs:
- targets: ['ingester-2:8003']
labels:
container: 'ingester-2'
- job_name: cortex-querier
static_configs:
- targets: ['querier:8004']
labels:
container: 'querier'
- job_name: cortex-ruler
static_configs:
- targets: ['ruler:8005']
labels:
container: 'ruler'
- job_name: cortex-compactor
static_configs:
- targets: ['compactor:8006']
labels:
container: 'compactor'
- job_name: cortex-query-frontend
static_configs:
- targets: ['query-frontend:8007']
labels:
container: 'query-frontend'
- job_name: cortex-store-gateway-1
static_configs:
- targets: ['store-gateway-1:8008']
labels:
container: 'store-gateway-1'
- job_name: cortex-store-gateway-2
static_configs:
- targets: ['store-gateway-2:8009']
labels:
container: 'store-gateway-2'
remote_write:
- url: http://distributor:8001/api/prom/push