v1.0.0
Added
- Support for empty buckets tag, which will generate nil buckets for the prometheus Histogram and use default prometheus buckets.
- Support for empty objectives tag, which will generate nil objectives for the prometheus Summary and use an empty objectives map after all.
Changed
- Breaking:
prometheus.Histogram
is now used to build histograms, instead ofprometheus.Observer
, which means that previous code buildingprometheus.Observer
won't compile anymore.
Removed
- Breaking: default buckets on histograms. All histogram should explicitly specify their buckets now or they will fail to build.
- Breaking: default objectives on summaries. All summaries should explicitly specify their objectives now or they will fail to build.
Fixed
- Summary building was not failing with malformed objectives.
Migration instructions
If you're migrating from a v0.x.y
, you will need to:
- Replace
Metric func() prometheus.Observer
byMetric func() prometheus.Histogram
- On
prometheus.Histogram
metrics, addbuckets:""
which will use theprometheus.DefBuckets
bucekts, or even better, define yours. - On
prometheus.Summary
metrics, addobjectives:".5,.95,.99"
to keep using the same objectives, or define yours.