VictoriaMetrics/lib/promscrape
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
..
discovery lib/promscrape/discovery/nomad: sync nomad_sd_configs fields with the Prometheus implementation 2023-01-09 21:14:48 -08:00
discoveryutils lib/promscrape/discoveryutils: cleanup after 5df9fddaf2 2023-01-07 01:26:54 -08:00
testdata lib/promscrape: fix errors in test config 2022-02-08 19:56:37 +02:00
client.go lib/promscrape/discoveryutils: switch to native http client from fasthttp (#3568) 2023-01-05 19:34:47 -08:00
config.go lib/promscrape/discovery/nomad: follow-up after 48f371a46c 2023-01-05 18:07:20 -08:00
config_test.go lib/promscrape: implement target-level and metric-level relabel debugging 2022-12-10 02:09:44 -08:00
config_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
relabel_debug.go lib/promrelabel: pass query args via query string at /metric-relabel-debug and /target-relabel-debug pages if their length doesnt exceed 1000 2023-01-05 16:48:04 -08:00
scraper.go lib/promscrape: add Prometheus-compatible service discovery for Nomad (#3549) 2023-01-05 23:03:58 +01:00
scrapework.go lib/promscrape: reduce the number of concurrently executed processScrapedData calls from 2x of the number of CPUs to the number of CPUs 2023-01-07 00:14:30 -08:00
scrapework_test.go lib/promscrape: implement target-level and metric-level relabel debugging 2022-12-10 02:09:44 -08:00
scrapework_timing_test.go lib/promscrape: add exported_ prefix to metric names exported by scrape targets if they clash with automatically generated metrics 2022-11-28 18:37:09 -08:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:23:54 +03:00
targetstatus.go lib/promscrape: pre-fetch metric_relabel_configs rules when debugging metric relabeling for a particular target 2023-01-05 03:26:49 -08:00
targetstatus.qtpl lib/promscrape: pre-fetch metric_relabel_configs rules when debugging metric relabeling for a particular target 2023-01-05 03:26:49 -08:00
targetstatus.qtpl.go lib/promscrape: pre-fetch metric_relabel_configs rules when debugging metric relabeling for a particular target 2023-01-05 03:26:49 -08:00