VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin f9df0cae16
lib/promscrape: allow specifying full target url in __address__ label
Previously the `__address__` label could contain only `host:port` part of the target url,
while the scheme and metrics path were obtained from `__scheme__` and `__metrics_path__`
labels. Now it is possible to set the full url in `__address__` label.

This makes valid the following scrape config, which is frequently used by novice users:

scrape_configs:
- job_name: foo
  static_configs:
  - targets:
    - http://host1/metrics1
    - https://host2/metrics2
2022-10-07 22:43:04 +03:00
..
discovery lib/promscrape/discovery/azure: remove unneeded conversion to string 2022-10-01 16:04:37 +03:00
discoveryutils lib/bytesutil: move InternString() from lib/promscrape/discoverytutils to lib/bytesutil 2022-09-30 07:44:35 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 19:56:37 +02:00
client.go all: subsitute ioutil.ReadAll with io.ReadAll 2022-08-22 00:16:37 +03:00
config_test.go lib/promscrape: allow specifying full target url in __address__ label 2022-10-07 22:43:04 +03:00
config.go lib/promscrape: allow specifying full target url in __address__ label 2022-10-07 22:43:04 +03:00
scraper.go lib/promscrape: update links to sd_configs from Prometheus site to https://docs.victoriametrics.com/sd_configs.html 2022-08-15 01:40:20 +03:00
scrapework_test.go lib/promscrape: add external_labels from global section of -promscrape.config after the relabeling is applied to the scraped metrics 2022-10-01 16:13:19 +03:00
scrapework_timing_test.go lib/promscrape: follow-up after 2c553d5a2f 2022-08-08 14:46:26 +03:00
scrapework.go lib/promscrape: allow specifying full target url in __address__ label 2022-10-07 22:43:04 +03: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: allow specifying full target url in __address__ label 2022-10-07 22:43:04 +03:00
targetstatus.qtpl Revert "lib/promscrape, vmagent: fix path to files (#2801)" 2022-06-30 18:23:56 +03:00
targetstatus.qtpl.go Revert "lib/promscrape, vmagent: fix path to files (#2801)" 2022-06-30 18:23:56 +03:00