start_http_server for any given registry or the default registry#143
start_http_server for any given registry or the default registry#143danni-m wants to merge 1 commit intoprometheus:masterprometheus/client_python:masterfrom
Conversation
|
You should only ever be exposing the default registry via this method. If you're doing something funky (such as what the snmp or blackbox exporters do), you'll need custom handling anyway. |
|
What I want is to expose 2 different registries on 2 different ports. How those 2 functions differ except WSGI/SimpleHTTPServer ? |
Why do you want to do this? A single process should have a single registry. |
|
Is there any reason why |
|
There isn't, that parameter should be removed. |
|
@brian-brazil would you accept a PR that removes the parameter? |
|
I would. |
I'm using start_http_server, but unfortunately it only exposes the default registry, all other exposition methods have a registry parameter.
@brian-brazil