Skip to content

Commit 981f128

Browse files
committed
Add example config for using with vanilla prometheus.
Signed-off-by: Tom Wilkie <[email protected]>
1 parent c83fc70 commit 981f128

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docs/prometheus-frontend.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# You can use the Cortex query frontend with any Prometheus-API compatible
2+
# service, including Prometheus and Thanos. Use this config file to get
3+
# the benefits of query parallelisation and caching.
4+
5+
# Disable the requirement that every request to Cortex has a
6+
# X-Scope-OrgID header. `fake` will be substituted in instead.
7+
auth_enabled: false
8+
9+
# We only want to run the query-frontend module.
10+
target: query-frontend
11+
12+
# We don't want the usual /api/prom prefix.
13+
http_prefix:
14+
15+
server:
16+
http_listen_port: 9091
17+
18+
frontend:
19+
split_queries_by_day: true
20+
align_queries_with_step: true
21+
cache_results: true
22+
compress_responses: true
23+
24+
results_cache:
25+
max_freshness: 1m
26+
cache:
27+
28+
# We're going to use the in-process "FIFO" cache, but you can enable
29+
# memcached below.
30+
enable_fifocache: true
31+
fifocache:
32+
size: 1024
33+
validity: 24h
34+
35+
# If you want to use a memcached cluster, configure a headless service
36+
# in Kubernetes and Cortex will discover the individual instances using
37+
# a SRV DNS query. Cortex will then do client-side hashing to spread
38+
# the load evenly.
39+
# memcached:
40+
# memcached_client:
41+
# host: memcached.default.svc.cluster.local
42+
# service: memcached
43+
# consistent_hash: true

0 commit comments

Comments
 (0)