unleash-proxy
unleash-proxy copied to clipboard
Add option to expose metrics via prometheus endpoint
Right now prometheus endpoint is not very useful for actual monitoring because it just responds with
# HELP unleash_proxy_up Indication that the service is up.
# TYPE unleash_proxy_up counter
unleash_proxy_up 1
But if clients send metrics, then this endpoint could expose those metrics. This would be useful for users using feature flag providers that do not support metrics direclty (eg. gitlab feature flags).
@artur-fijalkowski How you can get that metric?
@robmonct The path is not very intuitive: http://unleash-proxy/proxy/internal-backstage/prometheus
https://github.com/Unleash/unleash-proxy/blob/2e73af56571546e2bd78ac50a14a928840f54832/src/test/snapshots/openapi.test.ts.snap#L1276
Thank you @evsasha