Documentation
¶
Overview ¶
Package prometheusbp provides common code used for exporting Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultLatencyBuckets is the default bucket values for a prometheus latency histogram metric. // // These match the spec defined at https://github.snooguts.net/reddit/baseplate.spec/blob/master/component-apis/prom-metrics.md#latency-histograms DefaultLatencyBuckets = []float64{ 0.000_100, 0.000_500, 0.001_000, 0.002_500, 0.005_000, 0.010_000, 0.025_000, 0.050_000, 0.100_000, 0.250_000, 0.500_000, 1.000_000, 5.000_000, 15.000_000, 30.000_000, } // Deprecated: Please use DefaultLatencyBuckets instead for latencies if the buckets suit your needs, otherwise define your own buckets. DefaultBuckets = DefaultLatencyBuckets )
Functions ¶
func BoolString ¶ added in v0.9.5
BoolString returns the string version of a boolean value that should be used in a prometheus metric label.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.