generic

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = "jitsi"

Functions

func PathToMetricName

func PathToMetricName(path string) string

Types

type BasicMetricOption added in v0.1.0

type BasicMetricOption func(*BasicMetricOptions)

func WithComponent added in v0.1.0

func WithComponent(component string) BasicMetricOption

func WithConstLabels added in v0.1.0

func WithConstLabels(constLabels prometheus.Labels) BasicMetricOption

func WithLabelGetter added in v0.1.0

func WithLabelGetter(getLabels LabelGetter) BasicMetricOption

func WithVariableLabels added in v0.1.0

func WithVariableLabels(variableLabels []string) BasicMetricOption

type BasicMetricOptions added in v0.1.0

type BasicMetricOptions struct {
	// contains filtered or unexported fields
}

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(client *http.Client, target string, metrics []Metric) *Collector

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

type LabelGetter added in v0.1.0

type LabelGetter func(string) []string

type Metric added in v0.1.0

type Metric struct {
	// contains filtered or unexported fields
}

func NewBasicMetric added in v0.1.0

func NewBasicMetric(path string, valueType prometheus.ValueType, help string, opts ...BasicMetricOption) Metric

func NewMetric added in v0.1.0

func NewMetric(desc *prometheus.Desc, getter MetricGetter) Metric

type MetricGetter

type MetricGetter func(*prometheus.Desc, string) prometheus.Metric

func BoolGetter added in v0.1.0

func BoolGetter(path string, valueType prometheus.ValueType, getLabel LabelGetter) MetricGetter

func FloatGetter added in v0.1.0

func FloatGetter(path string, valueType prometheus.ValueType, getLabel LabelGetter) MetricGetter

Jump to

Keyboard shortcuts

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