VictoriaMetrics/lib/promrelabel
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
..
testdata lib/promrelabel: support action: graphite relabeling 2022-06-16 20:24:22 +03:00
config.go lib/promrelabel: optimize action: replace for non-trivial regex values 2022-09-30 12:25:05 +03:00
config_test.go lib/promrelabel: optimize action: replace for non-trivial regex values 2022-09-30 12:25:05 +03:00
graphite.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:24:22 +03:00
graphite_test.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:24:22 +03:00
graphite_timing_test.go lib/promrelabel: support action: graphite relabeling 2022-06-16 20:24:22 +03:00
if_expression.go lib/promrelabel: optimize matching for commonly used regex patterns in if option 2022-08-26 14:53:06 +03:00
if_expression_test.go lib/promrelabel: export MustParseMetricWithLabels function, which can be used for simplifying tests 2022-10-01 16:05:51 +03:00
relabel.go lib/promscrape: allow specifying full target url in __address__ label 2022-10-07 22:43:04 +03:00
relabel_test.go lib/promrelabel: export MustParseMetricWithLabels function, which can be used for simplifying tests 2022-10-01 16:05:51 +03:00
relabel_timing_test.go lib/promrelabel: add a benchmark for realistic Kubernetes relabeling 2022-10-01 10:38:22 +03:00
sort.go lib/promscrape: optimize getScrapeWork() function 2022-04-20 15:37:00 +03:00
sort_test.go app/vmagent: initial implementation for vmagent 2020-02-23 13:36:03 +02:00
util.go lib/promrelabel: export MustParseMetricWithLabels function, which can be used for simplifying tests 2022-10-01 16:05:51 +03:00