That's a full example that touches most of the things you mentioned - endpoint lookup by DNS name (Lines 96-99) - custom /metrics path (Line 90) - and to get a custom port, I'd replace Line 91 (scheme: https) with port: <custom#>
Abel Luckover 6 years ago
@tamsky thanks for the link to the example configs, I didn't know about that.
However, when i meant custom path/port I meant a config such that the path and port are discovered from the DNS SRV entry
tamskyover 6 years ago
Port should be automatic if you're using SRV records
tamskyover 6 years ago
You don't typically need to adjust the path, as it's always /metrics on standard exporters. What's your use case where the /metrics endpoint also needs to be discoverable?
tamskyover 6 years ago
afaik, there's no custom SRV record type that provides more than service port and weight.