refactoring is needed to make the metrics package usable from within the runner package for further metrics. This change also makes the metric-collector independent from requests to the /metrics endpoint Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
21 lines
600 B
Go
21 lines
600 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var (
|
|
OrganizationInfo = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
|
Namespace: metricsNamespace,
|
|
Subsystem: metricsOrganizationSubsystem,
|
|
Name: "info",
|
|
Help: "Info of the organization",
|
|
}, []string{"name", "id"})
|
|
|
|
OrganizationPoolManagerStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
|
Namespace: metricsNamespace,
|
|
Subsystem: metricsOrganizationSubsystem,
|
|
Name: "pool_manager_status",
|
|
Help: "Status of the organization pool manager",
|
|
}, []string{"name", "id", "running"})
|
|
)
|