You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consthistogram=Histogram.with({name: 'http_requests_duration',help: 'A histogram of the requests duration.',buckets: [.05,.1,.2,.5,1,3],});histogram.observe(.42);histogram.observe(.58);
Registry.default.metrics()
Will render
# HELP http_requests_duration A histogram of the requests duration.
# TYPE http_requests_duration histogram
http_requests_duration_bucket,le="0.05"} 0
http_requests_duration_bucket,le="0.1"} 0
http_requests_duration_bucket,le="0.2"} 0
http_requests_duration_bucket,le="0.5"} 0
http_requests_duration_bucket,le="1"} 4
http_requests_duration_bucket,le="3"} 4
http_requests_duration_bucket,le="+Inf"} 5
http_requests_duration_sum 8
http_requests_duration_count 5
Will render
It breaks prometheus as a
{
is missing in keys.I think the issue is located here https://github.com/marcopacini/ts-prometheus/blob/master/histogram.ts#L56 or in the example.
The text was updated successfully, but these errors were encountered: