Manuel Alejandro de Brito Fontes 218f64f7c1
Replace node labeler component with a dedicated deployment (#16712)
* Replace node labeler component with a dedicated deployment

* Update go modules

* Fix invalid module name

* Fix modules
2023-03-09 23:38:45 +01:00

30 lines
1005 B
Go

// Copyright (c) 2023 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License.AGPL.txt in the project root for license information.
package cmd
import "github.com/prometheus/client_golang/prometheus"
const (
metricsNamespace = "gitpod"
metricsWorkspaceSubsystem = "node_labeler"
)
var (
NodeLabelerCounterVec = prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: metricsNamespace,
Subsystem: metricsWorkspaceSubsystem,
Name: "reconcile_total",
Help: "Total number of reconciliations per component",
}, []string{"component"})
NodeLabelerTimeHistVec = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: metricsNamespace,
Subsystem: metricsWorkspaceSubsystem,
Name: "ready_seconds",
Help: "time it took for a pods to reach the running phase and the ready label was applied to the node",
Buckets: []float64{5, 10, 15, 20, 25, 30, 45, 60, 75},
}, []string{"component"})
)