You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds an internal server to the prom-label-proxy that exposes
HTTP metrics about all of the routes registered with the
prom-label-proxy. The internal server also exposes pprof profiles. The
internal server is only activated if the --internal-listen-address flag
is provided.
Signed-off-by: Lucas Servén Marín <[email protected]>
flagset.StringVar(&insecureListenAddress, "insecure-listen-address", "", "The address the prom-label-proxy HTTP server should listen on.")
50
+
flagset.StringVar(&internalListenAddress, "internal-listen-address", "", "The address the internal prom-label-proxy HTTP server should listen on to expose metrics about itself.")
43
51
flagset.StringVar(&upstream, "upstream", "", "The upstream URL to proxy to.")
44
52
flagset.StringVar(&label, "label", "", "The label to enforce in all proxied PromQL queries. "+
45
53
"This label will be also required as the URL parameter to get the value to be injected. For example: -label=tenant will"+
@@ -69,7 +77,13 @@ func main() {
69
77
log.Fatalf("Invalid scheme for upstream URL %q, only 'http' and 'https' are supported", upstream)
0 commit comments