In UI enable display of target metrics using Prometheus server as proxy #10288
Replies: 2 comments
-
This would turn Prometheus into a reverse proxy, which does not seem desirable. I think we could add an button in the "labels" that would go to the graph page with the labels pre-selected but it would not really represent a scrape as extra metrics could be added by recording rules or metrics could be changed by metric_relabel_configs. Therefore I do not think this issue is really actionnable for us. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have an "in between" idea: So the change is a short javascript code |
Beta Was this translation helpful? Give feedback.
-
Proposal
In Prometheus UI enable display of target metrics using Prometheus server as proxy
Problem
The Prometheus UI presents a nice list of targets. The first column is always the metrics URL to be able to inspect them.
The issue is that the server network is usually very restricted or everything is working within a k8s or Swarm network and your browser is not part of it. So you normally are not able to access the metrics URL from the browser directly.
A possible solution
Provide an option (icon next to the URL?) that fetches the metrics using the Prometheus server as proxy.
It does not necessarily need a real UI, it could just open a new window and display metrics in plain text via a URL like http://prometheus:9090/api/v1/target_metrics?url=http://10.10.1.139:8082/metrics.
Beta Was this translation helpful? Give feedback.
All reactions