Page MenuHomePhabricator

metricsinfra: Support scraping v6-enabled instances
Closed, ResolvedPublic

Description

It seems like metricsinfra is now sometimes picking the v6 address to use when scraping dualstack instances, even though the Prometheus hosts are in the legacy VLAN. (Note that Prometheus doesn't seem to be consistent which address it's using...)

Options:

  • Move the Prometheus servers to the dualstack VXLAN network
  • Patch Prometheus to add an option to only use a specific family for address discovery
  • Update the config to use hostnames instead of IP addresses as scrape targets

Event Timeline

This is also an issue on Toolforge. I'm going to use that to prototype a fix and then roll out a proper fix onto metricsinfra.

Change #1139455 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] P:toolforge: prometheus: Use DNS names to look up scrape targets

https://gerrit.wikimedia.org/r/1139455

Change #1139511 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] P:wmcs::metricsinfra: Add instance FQDN template

https://gerrit.wikimedia.org/r/1139511

Change #1139455 merged by Majavah:

[operations/puppet@production] P:toolforge: prometheus: Use DNS names to look up scrape targets

https://gerrit.wikimedia.org/r/1139455

Change #1139514 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-configurator@master] prometheus: Use DNS names to refer to instances

https://gerrit.wikimedia.org/r/1139514

Change #1139511 merged by Majavah:

[operations/puppet@production] P:wmcs::metricsinfra: Add instance FQDN template

https://gerrit.wikimedia.org/r/1139511

Change #1139514 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-configurator@master] prometheus: Use DNS names to refer to instances

https://gerrit.wikimedia.org/r/1139514

Change #1139858 had a related patch set uploaded (by Majavah; author: Majavah):

[cloud/metricsinfra/prometheus-configurator@master] prometheus: Run blackbox probes on IPv4

https://gerrit.wikimedia.org/r/1139858

Change #1139858 merged by jenkins-bot:

[cloud/metricsinfra/prometheus-configurator@master] prometheus: Run blackbox probes on IPv4

https://gerrit.wikimedia.org/r/1139858