Skip to content

Commit 6569fe7

Browse files
authored
updating prometheus-frontend sample yaml to work with cortex v1.0.0 : (#2450)
- memcached support (for hosted memcached and managed memcache) - replacing deprecated field : split_queries_by_day - mirroring the same changes to prometheus-frontend.md Signed-off-by: Kuber Kaul <[email protected]>
1 parent e7b4e2f commit 6569fe7

File tree

2 files changed

+38
-21
lines changed

2 files changed

+38
-21
lines changed

docs/configuration/prometheus-frontend.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ weight: 3
55
slug: prometheus-frontend
66
---
77

8-
98
You can use the Cortex query frontend with any Prometheus-API compatible
109
service, including Prometheus and Thanos. Use this config file to get
1110
the benefits of query parallelisation and caching.
@@ -25,7 +24,7 @@ server:
2524
http_listen_port: 9091
2625

2726
query_range:
28-
split_queries_by_day: true
27+
split_queries_by_interval: 24h
2928
align_queries_with_step: true
3029
cache_results: true
3130

@@ -40,16 +39,25 @@ query_range:
4039
size: 1024
4140
validity: 24h
4241

43-
# If you want to use a memcached cluster, configure a headless service
44-
# in Kubernetes and Cortex will discover the individual instances using
45-
# a SRV DNS query. Cortex will then do client-side hashing to spread
46-
# the load evenly.
47-
# memcached:
48-
# memcached_client:
49-
# host: memcached.default.svc.cluster.local
50-
# service: memcached
51-
# consistent_hash: true
42+
# If you want to use a memcached cluster, you can either configure a
43+
# headless service in Kubernetes and Cortex will discover the individual
44+
# instances using a SRV DNS query (host) or list comma separated
45+
# memcached addresses.
46+
# host + service: this is the config you should set when you use the
47+
# SRV DNS (this is considered stable)
48+
# addresses: this is experimental and supports service discovery
49+
# (https://cortexmetrics.io/docs/configuration/arguments/#dns-service-discovery)
50+
# so it could either be a list of single addresses, or a SRV record
51+
# prefixed with dnssrvnoa+. Cortex will then do client-side hashing to
52+
# spread the load evenly.
5253

54+
# memcached:
55+
# expiration : 24h
56+
# memcached_client:
57+
# host: memcached.default.svc.cluster.local
58+
# service: memcached
59+
# addresses: ""
60+
# consistent_hash: true
5361

5462
frontend:
5563
log_queries_longer_than: 1s

docs/configuration/prometheus-frontend.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server:
1616
http_listen_port: 9091
1717

1818
query_range:
19-
split_queries_by_day: true
19+
split_queries_by_interval: 24h
2020
align_queries_with_step: true
2121
cache_results: true
2222

@@ -31,16 +31,25 @@ query_range:
3131
size: 1024
3232
validity: 24h
3333

34-
# If you want to use a memcached cluster, configure a headless service
35-
# in Kubernetes and Cortex will discover the individual instances using
36-
# a SRV DNS query. Cortex will then do client-side hashing to spread
37-
# the load evenly.
38-
# memcached:
39-
# memcached_client:
40-
# host: memcached.default.svc.cluster.local
41-
# service: memcached
42-
# consistent_hash: true
34+
# If you want to use a memcached cluster, you can either configure a
35+
# headless service in Kubernetes and Cortex will discover the individual
36+
# instances using a SRV DNS query (host) or list comma separated
37+
# memcached addresses.
38+
# host + service: this is the config you should set when you use the
39+
# SRV DNS (this is considered stable)
40+
# addresses: this is experimental and supports service discovery
41+
# (https://cortexmetrics.io/docs/configuration/arguments/#dns-service-discovery)
42+
# so it could either be a list of single addresses, or a SRV record
43+
# prefixed with dnssrvnoa+. Cortex will then do client-side hashing to
44+
# spread the load evenly.
4345

46+
# memcached:
47+
# expiration : 24h
48+
# memcached_client:
49+
# host: memcached.default.svc.cluster.local
50+
# service: memcached
51+
# addresses: ""
52+
# consistent_hash: true
4453

4554
frontend:
4655
log_queries_longer_than: 1s

0 commit comments

Comments
 (0)