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