eventing

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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 MetricSet

type MetricSet map[string]Metric

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL