From e917c648902c4eb017c97ee5dd12830f1d0de048 Mon Sep 17 00:00:00 2001 From: Antonio Santos Date: Fri, 20 Sep 2019 17:32:07 +0200 Subject: [PATCH] Document the dnssrvnoa option Signed-off-by: Antonio Santos --- docs/service-discovery.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/service-discovery.md b/docs/service-discovery.md index 62c5dde6ca..3931f2f0b1 100644 --- a/docs/service-discovery.md +++ b/docs/service-discovery.md @@ -90,12 +90,18 @@ An example using this lookup with a static flag: --store=dns+stores.thanos.mycompany.org:9090 ``` -* `dnssrv+` - the domain name after this prefix will be looked up as a SRV query. You do not need to specify a port as the -one from the query results will be used. An example: +* `dnssrv+` - the domain name after this prefix will be looked up as a SRV query, and then each SRV record will be looked up as an A/AAAA query. You do not need to specify a port as the one from the query results will be used. An example: + ``` --store=dnssrv+_thanosstores._tcp.mycompany.org ``` +* `dnssrvnoa+` - the domain name after this prefix will be looked up as a SRV query, with no A/AAAA lookup made after that. Similar to the `dnssrv+` case, you do not need to specify a port. An example: + +``` +--store=dnssrvnoa+_thanosstores._tcp.mycompany.org +``` + The default interval between DNS lookups is 30s. You can change it using the `store.sd-dns-interval` flag for `StoreAPI` configuration in `Thanos Query`, or `query.sd-dns-interval` for `QueryAPI` configuration in `Thanos Rule`.