Skip to content

Commit

Permalink
Document the dnssrvnoa option (thanos-io#1551)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Santos <antonio@santosvelasco.com>
Signed-off-by: Ivan Kiselev <kiselev_ivan@pm.me>
  • Loading branch information
antonio authored and Ivan Kiselev committed Sep 26, 2019
1 parent 31864e7 commit bb0c710
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/service-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit bb0c710

Please sign in to comment.