2023-10-05 11:51:10 +02:00
|
|
|
package metrics
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
|
)
|
|
|
|
|
|
2024-02-19 16:22:32 +01:00
|
|
|
var (
|
|
|
|
|
RepositoryInfo = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
|
|
|
|
Namespace: metricsNamespace,
|
|
|
|
|
Subsystem: metricsRepositorySubsystem,
|
|
|
|
|
Name: "info",
|
|
|
|
|
Help: "Info of the enterprise",
|
|
|
|
|
}, []string{"name", "id"})
|
2023-10-05 11:51:10 +02:00
|
|
|
|
2024-02-19 16:22:32 +01:00
|
|
|
RepositoryPoolManagerStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
|
|
|
|
Namespace: metricsNamespace,
|
|
|
|
|
Subsystem: metricsRepositorySubsystem,
|
|
|
|
|
Name: "pool_manager_status",
|
|
|
|
|
Help: "Status of the enterprise pool manager",
|
|
|
|
|
}, []string{"name", "id", "running"})
|
|
|
|
|
)
|