github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/docs/configuration/prometheus-frontend.yml (about) 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 query_range: 19 split_queries_by_interval: 24h 20 align_queries_with_step: true 21 cache_results: true 22 23 results_cache: 24 cache: 25 26 # We're going to use the in-process "FIFO" cache, but you can enable 27 # memcached below. 28 enable_fifocache: true 29 fifocache: 30 size: 1024 31 validity: 24h 32 33 # If you want to use a memcached cluster, you can either configure a 34 # headless service in Kubernetes and Cortex will discover the individual 35 # instances using a SRV DNS query (host) or list comma separated 36 # memcached addresses. 37 # host + service: this is the config you should set when you use the 38 # SRV DNS (this is considered stable) 39 # addresses: this is experimental and supports service discovery 40 # (https://cortexmetrics.io/docs/configuration/arguments/#dns-service-discovery) 41 # so it could either be a list of single addresses, or a SRV record 42 # prefixed with dnssrvnoa+. Cortex will then do client-side hashing to 43 # spread the load evenly. 44 45 # memcached: 46 # expiration : 24h 47 # memcached_client: 48 # host: memcached.default.svc.cluster.local 49 # service: memcached 50 # addresses: "" 51 # consistent_hash: true 52 53 frontend: 54 log_queries_longer_than: 1s 55 compress_responses: true 56 57 # The Prometheus URL to which the query-frontend should connect to. 58 downstream_url: http://prometheus.mydomain.com