unleash-proxy icon indicating copy to clipboard operation
unleash-proxy copied to clipboard

Add option to expose metrics via prometheus endpoint

Open artur-fijalkowski opened this issue 1 year ago • 3 comments

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 avatar May 18 '23 10:05 artur-fijalkowski

@artur-fijalkowski How you can get that metric?

robmonct avatar May 31 '23 12:05 robmonct

@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

evsasha avatar Oct 02 '23 10:10 evsasha

Thank you @evsasha

robmonct avatar Oct 02 '23 10:10 robmonct