Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Default bucket count 1000 can satisfy the precision of p99 for most histogram stats.
DefaultBucketCount = 1000
)
Variables ¶
This section is empty.
Functions ¶
func NewMetrics ¶
NewMetrics initializes a new instance of Prometheus metrics.
Types ¶
type Config ¶
type Config struct { Enabled bool Namespace string // optional Subsystem string // optional HistogramBucketCount int // Number of buckets for histogram, default to 1000 // Number of buckets for time buckets, default to 1000. // The bucket size is 0.01s(10ms), so the maximum covered time range is 10ms * TimeBucketCount. TimeBucketCount int }
Click to show internal directories.
Click to hide internal directories.