crossplane
24 строки · 935.0 Байт
1/*
2Copyright 2023 The Crossplane Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5this file except in compliance with the License. You may obtain a copy of the
6License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software distributed
11under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12CONDITIONS OF ANY KIND, either express or implied. See the License for the
13specific language governing permissions and limitations under the License.
14*/
15
16// Package metrics contains functionality for emitting Prometheus metrics.
17package metrics
18
19import "sigs.k8s.io/controller-runtime/pkg/metrics"
20
21// Registry is a Prometheus metrics registry. All Crossplane metrics should be
22// registered with it. Crossplane adds metrics to the registry created and
23// served by controller-runtime.
24var Registry = metrics.Registry
25