mirror of
https://github.com/siderolabs/discovery-service.git
synced 2025-03-14 09:55:08 +00:00
This includes new in-memory core, new gRPC API, tests, etc. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
19 lines
526 B
Go
19 lines
526 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package server
|
|
|
|
import (
|
|
prom "github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var metricVersionGauge = prom.NewGaugeVec(prom.GaugeOpts{
|
|
Name: "discovery_hello_requests",
|
|
Help: "Number of hello requests split by client version.",
|
|
}, []string{"client_version"})
|
|
|
|
func init() {
|
|
prom.MustRegister(metricVersionGauge)
|
|
}
|