We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea is to have this lib as a foundation for other exporters - plugs, elli, cowboy, etc.
prometheus_httpd_config stays the same. prometheus_http will have shared /metrics behaviour with two exports:
prometheus_httpd_config
prometheus_http
/metrics
`render(Env)`
Env is a map:
Env
%{ path => Path. %% present if you want prometheus_http to handle routing and registry extraction accept => Accept, %% accepted content types accept_encoding => AcceptEncoding, %% accepted encodings registry => Registry, %% ignored if path present, can generate 409 if registry config isn't auto }
Renders standard welcome page with useful links and current metrics path.
Both return {Code, Headers, Body}.
{Code, Headers, Body}
The text was updated successfully, but these errors were encountered:
I think this is exactly what prometheus_http_impl does, And it's used by a couple of libs already.
Sorry, something went wrong.
No branches or pull requests
The idea is to have this lib as a foundation for other exporters - plugs, elli, cowboy, etc.
prometheus_httpd_config
stays the same.prometheus_http
will have shared/metrics
behaviour with two exports:render/1
Env
is a map:index/0
Renders standard welcome page with useful links and current metrics path.
Both return
{Code, Headers, Body}
.The text was updated successfully, but these errors were encountered: