Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { // Eventing metrics function a little differently to others, since they're an object, rather than just a flat list of // stats. The expression is a JQ-like (https://github.com/itchyny/gojq) expression that must evaluate to an array, // where the first element is a number (the stat value) and all others are strings, which will become labels (in the // same order as the labels array). Expression string `json:"expression"` Help string `json:"help"` Labels []string `json:"labels"` ConstLabels prometheus.Labels `json:"constLabels"` }
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(logger *zap.SugaredLogger, node couchbase.NodeCommon, metrics MetricSet) (*Metrics, error)
func (*Metrics) Collect ¶
func (m *Metrics) Collect(metrics chan<- prometheus.Metric)
func (*Metrics) Describe ¶
func (m *Metrics) Describe(descs chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.