mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Define const for metric name
This commit is contained in:
parent
e3de62298a
commit
f2b8fdb265
@ -53,6 +53,8 @@ const (
|
|||||||
VolumeStatsInodesKey = "volume_stats_inodes"
|
VolumeStatsInodesKey = "volume_stats_inodes"
|
||||||
VolumeStatsInodesFreeKey = "volume_stats_inodes_free"
|
VolumeStatsInodesFreeKey = "volume_stats_inodes_free"
|
||||||
VolumeStatsInodesUsedKey = "volume_stats_inodes_used"
|
VolumeStatsInodesUsedKey = "volume_stats_inodes_used"
|
||||||
|
RunningPodsKey = "running_pods"
|
||||||
|
RunningContainersKey = "running_containers"
|
||||||
// Metrics keys of remote runtime operations
|
// Metrics keys of remote runtime operations
|
||||||
RuntimeOperationsKey = "runtime_operations_total"
|
RuntimeOperationsKey = "runtime_operations_total"
|
||||||
RuntimeOperationsDurationKey = "runtime_operations_duration_seconds"
|
RuntimeOperationsDurationKey = "runtime_operations_duration_seconds"
|
||||||
@ -362,7 +364,7 @@ var (
|
|||||||
RunningPodCount = metrics.NewGauge(
|
RunningPodCount = metrics.NewGauge(
|
||||||
&metrics.GaugeOpts{
|
&metrics.GaugeOpts{
|
||||||
Subsystem: KubeletSubsystem,
|
Subsystem: KubeletSubsystem,
|
||||||
Name: "running_pods",
|
Name: RunningPodsKey,
|
||||||
Help: "Number of pods currently running",
|
Help: "Number of pods currently running",
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.ALPHA,
|
||||||
},
|
},
|
||||||
@ -371,7 +373,7 @@ var (
|
|||||||
RunningContainerCount = metrics.NewGaugeVec(
|
RunningContainerCount = metrics.NewGaugeVec(
|
||||||
&metrics.GaugeOpts{
|
&metrics.GaugeOpts{
|
||||||
Subsystem: KubeletSubsystem,
|
Subsystem: KubeletSubsystem,
|
||||||
Name: "running_containers",
|
Name: RunningContainersKey,
|
||||||
Help: "Number of containers currently running",
|
Help: "Number of containers currently running",
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.ALPHA,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user