Skip to content

endpoint prometheus.yml contains internal IPs #376

@uli42

Description

@uli42

I am running the exporter in a podman container. When accessing the prometheus.yml endpoint this includes internal IPs for the targets:

  - targets:
    - 10.88.0.62:9250

These IPs are container internal and not reachable from the outside, making them effectively useless.

So I think it would be better to extract the base URL address from the request. E.g. requesting https://myexporter:9250/prometheus.yml should lead to the targets section looking like this:

  - targets:
    - myexporter:9250

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions