Newer
Older
package nucleus
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
networkElementCreationsTotal = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "device_creations_total",
Help: "Total number of created devices",
},
[]string{"type"},
)
networkElementCreationDurationSecondsTotal = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "device_creation_duration_seconds_total",
Help: "Total time needed to create devices",
},
[]string{"type"},
)
networkElementCreationDurationSeconds = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "device_creation_duration_seconds",
Help: "Histogram of network element creation times",
networkElementDeletionsTotal = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "device_deletions_total",
Help: "Total number of deleted devices",
},
[]string{"type"},
)
networkElementDeletionDurationSecondsTotal = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "device_deletion_duration_seconds_total",
Help: "Total time needed to delete devices",
},
[]string{"type"},
)
networkElementDeletionDurationSeconds = promauto.NewHistogramVec(
prometheus.HistogramOpts{
Name: "device_deletion_duration_seconds",
Help: "Histogram of network element deletion times",