Path: blob/main/components/node-labeler/cmd/metrics.go
2498 views
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package cmd56import "github.com/prometheus/client_golang/prometheus"78const (9metricsNamespace = "gitpod"10metricsWorkspaceSubsystem = "node_labeler"11)1213var (14NodeLabelerCounterVec = prometheus.NewCounterVec(prometheus.CounterOpts{15Namespace: metricsNamespace,16Subsystem: metricsWorkspaceSubsystem,17Name: "reconcile_total",18Help: "Total number of reconciliations per component",19}, []string{"component"})2021NodeLabelerTimeHistVec = prometheus.NewHistogramVec(prometheus.HistogramOpts{22Namespace: metricsNamespace,23Subsystem: metricsWorkspaceSubsystem,24Name: "ready_seconds",25Help: "time it took for a pods to reach the running phase and the ready label was applied to the node",26Buckets: []float64{5, 10, 15, 20, 25, 30, 45, 60, 75},27}, []string{"component"})28)293031