Menu
Open source
About Grafana Mimir DNS service discovery
Some clients in Grafana Mimir support service discovery via DNS to locate the addresses of backend servers to connect to. The following clients support service discovery via DNS:
- Memcached server addresses
-blocks-storage.bucket-store.chunks-cache.memcached.addresses
-blocks-storage.bucket-store.index-cache.memcached.addresses
-blocks-storage.bucket-store.metadata-cache.memcached.addresses
-query-frontend.results-cache.memcached.addresses
- Memberlist KV store
-memberlist.join
- Alertmanager URL configured in the ruler
-ruler.alertmanager-url
Supported discovery modes
DNS service discovery supports different discovery modes. You select a discovery mode by adding one of the following supported prefixes to the address:
dns+
The domain name after the prefix is looked up as an A/AAAA query. For example:dns+memcached.local:11211
.dnssrv+
The domain name after the prefix is looked up as a SRV query, and then each SRV record is resolved as an A/AAAA record. For example:dnssrv+_memcached._tcp.memcached.namespace.svc.cluster.local
.dnssrvnoa+
The domain name after the prefix is looked up as a SRV query, with no A/AAAA lookup made after that. For example:dnssrvnoa+_memcached._tcp.memcached.namespace.svc.cluster.local
.
The Alertmanager URL must also contain the scheme. For example: dns+http://alermanager.local:8080
.
If no prefix is provided, the provided IP or hostname is used without pre-resolving it.
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
60 min
Intro to metrics with Grafana: Prometheus, Grafana Mimir, and beyond
In this webinar, we’ll go over challenges when scaling metrics systems, with a particular focus on Prometheus and Grafana Mimir.
Video
Scaling and securing your Prometheus metrics in Grafana Cloud
In this webinar, we’ll go over Grafana Enterprise Metrics (GEM), a simple and scalable Prometheus service that is seamless to use, and simple to maintain
12 min read
Less is more: How Grafana Mimir queries run faster and more cost efficiently with fewer indexes
By avoiding inverted index lookups in the Prometheus TSDB, Mimir's memory usage was reduced by up to 64%.