Hi!

I have REST API application and looking for solution for exposing metrics 
endpoint for internal only access.

I can see two options:

   1. use same *http.Server* as application and protect endpoint with 
   supported auth flow (basic, token, etc)
   2. use different *http.Server* on internal port without any 
   authentication

First has drawback of hardcoding auth credentials on both infrastructure 
and application sides, I want to avoid it.

While considering second, found that if just put *promhttp.Handler* to 
separate server I will loose instrumentation metrics.

So how do I see it: 

   - put instrumentation metrics middleware to application server
   - run another server on internal only port with metrics output handler

Any advise ? 

Thanks,
Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/54038168-acda-40f2-97f7-7fc1212e926cn%40googlegroups.com.

Reply via email to