Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { MCollector DCollector }
type DCollector ¶
type DCollector interface {
CollectDescriptions(in PushDescription)
}
type Description ¶
type Description interface { Desc() *prometheus.Desc Labels(labels ...string) []*dto.LabelPair Collect(out chan<- prometheus.Metric, collect func(p Producer) error) Gauge(value float64, labels ...string) Metric Counter(value float64, labels ...string) Metric }
func NewDescription ¶
func NewDescription(fqName, help string, variableLabels []string, constLabels prometheus.Labels) Description
type MCollector ¶
type MCollector interface {
CollectMetrics(in PushMetric)
}
type Metric ¶
type Metric interface { prometheus.Metric }
type MetricPushFilter ¶
func MergeMetricPushFilter ¶
func MergeMetricPushFilter(filters ...MetricPushFilter) MetricPushFilter
func NegateMetricPushFilter ¶
func NegateMetricPushFilter(in MetricPushFilter) MetricPushFilter
func NewPrefixMetricPushFilter ¶
func NewPrefixMetricPushFilter(prefixes ...string) MetricPushFilter
type PushDescription ¶
type PushDescription interface {
Push(desc ...Description) PushDescription
}
func NewPushDescription ¶
func NewPushDescription(out chan<- *prometheus.Desc) PushDescription
type PushMetric ¶
type PushMetric interface {
Push(desc ...Metric) PushMetric
}
func NewMetricsPushFilter ¶
func NewMetricsPushFilter(out PushMetric, filter MetricPushFilter) PushMetric
func NewPushMetric ¶
func NewPushMetric(out chan<- prometheus.Metric) PushMetric
Source Files ¶
Click to show internal directories.
Click to hide internal directories.