Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( // Errors ErrorServerAlreadyRunning error = errors.New("Prometheus HTTP server is already running") )
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter prometheus.Counter
Counter make an alias for non-decreasing numeric value.
type CounterVec ¶
type CounterVec interface {
WithLabelValues(lvs ...string) prometheus.Counter
}
CounterVec interface to work with the Counter labelled.
type GaugeVec ¶
type GaugeVec interface {
WithLabelValues(lvs ...string) prometheus.Gauge
}
GaugeVec interface to work with the LastTime metrics type.
type Histogram ¶
type Histogram prometheus.Histogram
Histogram make an alias for non-decreasing numeric value.
type HistogramVec ¶
type HistogramVec interface {
WithLabelValues(lvs ...string) prometheus.Observer
}
HistogramVec interface to work with the Histogram labelled.
type Metrics ¶
type Metrics interface { StartHTTP(port uint, namespace string) error StopHTTP() PushCustom(url, pushJob string) error PushCollected() error // contains filtered or unexported methods }
Metrics contains all set of methods to manage metrics collector instance behavior
func InstanceReset ¶
func InstanceReset() Metrics
InstanceReset stops and deletes a Metrics singletone
func NewMetrics ¶
func NewMetrics() Metrics
NewMetrics creates a new metrics handler and returns its interface.
type Summary ¶
type Summary prometheus.Summary
Summary make an alias for non-decreasing numeric value.
type SummaryVec ¶
type SummaryVec interface {
WithLabelValues(lvs ...string) prometheus.Observer
}
SummaryVec interface to work with the Summary labelled.
Click to show internal directories.
Click to hide internal directories.