metrics_path
is silently ignored when used together with *-notation
#360
Labels
metrics_path
is silently ignored when used together with *-notation
#360
Bug Description
When a scrape job has a custom metrics_path AND uses star-notation, then the other side of the relation (consumer, i.e. the prom that scrapes) has the custom metrics_path ignored, and uses the default one.
EDIT
Put differently, a job's
target
hostname has no effect, if theexternal_hostname=
kwarg is not passed to MetricsEndpointProvider.Still, after passing
external_hostname
, there is some duplication (apart from ingress nor path not being picked up):To Reproduce
Pass the following job to PromScrapeProvider:
Environment
N/A
Relevant log output
scrape_jobs: '[{"metrics_path": "/metrics", "static_configs": [{"targets": ["*:9090"]}]}]'
Additional context
Noticed this while working on ingress (#349).
The text was updated successfully, but these errors were encountered: