VictoriaMetrics/lib/promscrape/discovery
Aliaksandr Valialkin e5eca54951
lib/promscrape/discovery/nomad: sync nomad_sd_configs fields with the Prometheus implementation
See the list of configs supported by Prometheus at f88a0a7d83/discovery/nomad/nomad.go (L76-L84)

- Removed "token" option. In can be set either via NOMAD_TOKEN env var or via `bearer_token` config option.
- Removed "scheme" option. It is automatically detected depending on whether the `tls_config` is set.
- Removed "services" and "tags" options, since they aren't supported by Prometheus.
- Added "region" option. If it is missing, then the region is read from NOMAD_REGION env var.
  If this var is empty, then it is set to "global" in the same way as Nomad client does.
  See 865ee8d37c/api/api.go (L297)
  and 865ee8d37c/api/api.go (L555-L556)
- If the "server" option is missing, then it is read from NOMAD_ADDR in the same way
  as Nomad client does - see 865ee8d37c/api/api.go (L294-L296)

This is a follow-up for 8aee209c53

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3367
2023-01-09 21:14:48 -08:00
..
azure lib/promscrape/discoveryutils: switch to native http client from fasthttp (#3568) 2023-01-05 19:34:47 -08:00
consul lib/promscrape/discovery/nomad: sync nomad_sd_configs fields with the Prometheus implementation 2023-01-09 21:14:48 -08:00
digitalocean lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
dns lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
docker lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
dockerswarm lib/promscrape/discovery/dockerswarm: fix query encoding of filters (#3586) 2023-01-05 03:34:25 -08:00
ec2 lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
eureka lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
gce lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
http lib/promscrape/discoveryutils: switch to native http client from fasthttp (#3568) 2023-01-05 19:34:47 -08:00
kubernetes lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
nomad lib/promscrape/discovery/nomad: sync nomad_sd_configs fields with the Prometheus implementation 2023-01-09 21:14:48 -08:00
openstack lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
yandexcloud lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00