From c820b36ac00e89583f7497d612779ce745c017dd Mon Sep 17 00:00:00 2001 From: Antonio Santos Date: Sat, 21 Sep 2019 11:08:17 +0200 Subject: [PATCH] Document the dnssrvnoa option (#1551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Santos Signed-off-by: Giedrius Statkevičius --- 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 62c5dde6ca7..3931f2f0b1f 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`.