forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcortex.yaml
156 lines (130 loc) · 3.1 KB
/
cortex.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
auth_enabled: false
distributor:
shard_by_all_labels: true
pool:
health_check_ingesters: true
ingester_client:
grpc_client_config:
# Configure the client to allow messages up to 100MB.
max_recv_msg_size: 104857600
max_send_msg_size: 104857600
grpc_compression: gzip
ingester:
lifecycler:
# We want to start immediately.
join_after: 0
final_sleep: 0s
num_tokens: 512
ring:
kvstore:
store: consul
consul:
host: consul:8500
replication_factor: 1
querier:
query_ingesters_within: 3h
# Used when the blocks sharding is disabled.
store_gateway_addresses: store-gateway-1:9008,store-gateway-2:9009
blocks_storage:
backend: s3
tsdb:
dir: /tmp/cortex-tsdb-ingester
ship_interval: 1m
block_ranges_period: [ 2h ]
retention_period: 3h
bucket_store:
sync_dir: /tmp/cortex-tsdb-querier
consistency_delay: 5s
index_cache:
backend: memcached
memcached:
addresses: dns+memcached:11211
chunks_cache:
backend: memcached
memcached:
addresses: dns+memcached:11211
metadata_cache:
backend: memcached
memcached:
addresses: dns+memcached:11211
s3:
endpoint: minio:9000
bucket_name: cortex-tsdb
access_key_id: cortex
secret_access_key: supersecret
insecure: true
ruler:
enable_api: true
enable_sharding: true
ring:
heartbeat_period: 5s
heartbeat_timeout: 15s
kvstore:
store: consul
consul:
host: consul:8500
ruler_storage:
backend: s3
s3:
bucket_name: cortex-ruler
endpoint: minio:9000
access_key_id: cortex
secret_access_key: supersecret
insecure: true
alertmanager:
enable_api: true
sharding_enabled: true
sharding_ring:
replication_factor: 3
heartbeat_period: 5s
heartbeat_timeout: 15s
kvstore:
store: consul
consul:
host: consul:8500
alertmanager_storage:
backend: s3
s3:
bucket_name: cortex-alertmanager
endpoint: minio:9000
access_key_id: cortex
secret_access_key: supersecret
insecure: true
storage:
engine: blocks
compactor:
compaction_interval: 30s
data_dir: /tmp/cortex-compactor
consistency_delay: 1m
sharding_enabled: true
cleanup_interval: 1m
tenant_cleanup_delay: 1m
sharding_ring:
kvstore:
store: consul
consul:
host: consul:8500
store_gateway:
sharding_enabled: true
sharding_ring:
replication_factor: 1
heartbeat_period: 5s
heartbeat_timeout: 15s
kvstore:
store: consul
consul:
host: consul:8500
frontend:
query_stats_enabled: true
frontend_worker:
frontend_address: "query-frontend:9007"
match_max_concurrent: true
# By setting scheduler_address, querier worker would use scheduler instead of frontend.
# scheduler_address: "query-scheduler:9012"
query_range:
split_queries_by_interval: 24h
limits:
# Limit max query time range to 31d
max_query_length: 744h
runtime_config:
file: ./config/runtime.yaml