Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metrics.go « metrics « prometheus « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04db58cdbf2d81f27f304689179a6245565de018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package metrics

import (
	"github.com/prometheus/client_golang/prometheus"
)

// Counter is a subset of a prometheus Counter
type Counter interface {
	Inc()
	Add(float64)
}

// Gauge is a subset of a prometheus Gauge
type Gauge interface {
	Inc()
	Dec()
}

// Histogram is a subset of a prometheus Histogram
type Histogram interface {
	Observe(float64)
}

// HistogramVec is a subset of a prometheus HistogramVec
type HistogramVec interface {
	WithLabelValues(lvs ...string) prometheus.Observer
	Collect(chan<- prometheus.Metric)
	Describe(chan<- *prometheus.Desc)
}