Added missing cronjob and node atrributes : https://github.com/kubernetes/kube-state-metrics/issues/1509
This commit is contained in:
parent
7594278d26
commit
f46fb4ecc6
|
|
@ -11,3 +11,5 @@
|
|||
| kube_cronjob_spec_suspend | Gauge | `cronjob`=<cronjob-name> <br> `namespace`=<cronjob-namespace> | STABLE
|
||||
| kube_cronjob_spec_starting_deadline_seconds | Gauge | `cronjob`=<cronjob-name> <br> `namespace`=<cronjob-namespace> | STABLE
|
||||
| kube_cronjob_metadata_resource_version| Gauge | `cronjob`=<cronjob-name> <br> `namespace`=<cronjob-namespace> | STABLE
|
||||
| kube_cronjob_spec_successful_job_history_limit | Gauge | `cronjob`=<cronjob-name> <br> `namespace`=<cronjob-namespace> | STABLE
|
||||
| kube_cronjob_spec_failed_job_history_limit | Gauge | `cronjob`=<cronjob-name> <br> `namespace`=<cronjob-namespace> | STABLE
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
| Metric name| Metric type | Description | Unit (where applicable) | Labels/tags | Status |
|
||||
| ---------- | ----------- | ----------- | ----------------------- | ----------- | ------ |
|
||||
| kube_node_info | Gauge | Information about a cluster node| |`node`=<node-address> <br> `kernel_version`=<kernel-version> <br> `os_image`=<os-image-name> <br> `container_runtime_version`=<container-runtime-and-version-combination> <br> `kubelet_version`=<kubelet-version> <br> `kubeproxy_version`=<kubeproxy-version> <br> `pod_cidr`=<pod-cidr> <br> `provider_id`=<provider-id> <br> `internal_ip`=<internal-ip> | STABLE |
|
||||
| kube_node_info | Gauge | Information about a cluster node| |`node`=<node-address> <br> `kernel_version`=<kernel-version> <br> `os_image`=<os-image-name> <br> `container_runtime_version`=<container-runtime-and-version-combination> <br> `kubelet_version`=<kubelet-version> <br> `kubeproxy_version`=<kubeproxy-version> <br> `pod_cidr`=<pod-cidr> <br> `provider_id`=<provider-id> <br> `system_uuid`=<system-uuid> <br> `internal_ip`=<internal-ip> | STABLE |
|
||||
| kube_node_labels | Gauge | Kubernetes labels converted to Prometheus labels | | `node`=<node-address> <br> `label_NODE_LABEL`=<NODE_LABEL> | STABLE |
|
||||
| kube_node_role | Gauge | The role of a cluster node | | `node`=<node-address> <br> `role`=<NODE_ROLE> | EXPERIMENTAL |
|
||||
| kube_node_spec_unschedulable | Gauge | Whether a node can schedule new pods | | `node`=<node-address>| STABLE |
|
||||
|
|
|
|||
|
|
@ -213,6 +213,48 @@ func cronJobMetricFamilies(allowLabelsList []string) []generator.FamilyGenerator
|
|||
}
|
||||
}),
|
||||
),
|
||||
*generator.NewFamilyGenerator(
|
||||
"kube_cronjob_spec_successful_job_history_limit",
|
||||
"Successful job history limit tells the controller how many completed jobs should be preserved.",
|
||||
metric.Gauge,
|
||||
"",
|
||||
wrapCronJobFunc(func(j *batchv1beta1.CronJob) *metric.Family {
|
||||
ms := []*metric.Metric{}
|
||||
|
||||
if j.Spec.SuccessfulJobsHistoryLimit != nil {
|
||||
ms = append(ms, &metric.Metric{
|
||||
LabelKeys: []string{},
|
||||
LabelValues: []string{},
|
||||
Value: float64(*j.Spec.SuccessfulJobsHistoryLimit),
|
||||
})
|
||||
}
|
||||
|
||||
return &metric.Family{
|
||||
Metrics: ms,
|
||||
}
|
||||
}),
|
||||
),
|
||||
*generator.NewFamilyGenerator(
|
||||
"kube_cronjob_spec_failed_job_history_limit",
|
||||
"Failed job history limit tells the controller how many failed jobs should be preserved.",
|
||||
metric.Gauge,
|
||||
"",
|
||||
wrapCronJobFunc(func(j *batchv1beta1.CronJob) *metric.Family {
|
||||
ms := []*metric.Metric{}
|
||||
|
||||
if j.Spec.FailedJobsHistoryLimit != nil {
|
||||
ms = append(ms, &metric.Metric{
|
||||
LabelKeys: []string{},
|
||||
LabelValues: []string{},
|
||||
Value: float64(*j.Spec.FailedJobsHistoryLimit),
|
||||
})
|
||||
}
|
||||
|
||||
return &metric.Family{
|
||||
Metrics: ms,
|
||||
}
|
||||
}),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ var (
|
|||
SuspendTrue = true
|
||||
SuspendFalse = false
|
||||
StartingDeadlineSeconds300 int64 = 300
|
||||
SuccessfulJobHistoryLimit3 int32 = 3
|
||||
FailedJobHistoryLimit1 int32 = 1
|
||||
|
||||
// "1520742896" is "2018/3/11 12:34:56" in "Asia/Shanghai".
|
||||
ActiveRunningCronJob1LastScheduleTime = time.Unix(1520742896, 0)
|
||||
|
|
@ -116,10 +118,12 @@ func TestCronJobStore(t *testing.T) {
|
|||
LastScheduleTime: &metav1.Time{Time: ActiveRunningCronJob1LastScheduleTime},
|
||||
},
|
||||
Spec: batchv1beta1.CronJobSpec{
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendFalse,
|
||||
Schedule: "0 */6 * * *",
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendFalse,
|
||||
Schedule: "0 */6 * * *",
|
||||
SuccessfulJobsHistoryLimit: &SuccessfulJobHistoryLimit3,
|
||||
FailedJobsHistoryLimit: &FailedJobHistoryLimit1,
|
||||
},
|
||||
},
|
||||
Want: `
|
||||
|
|
@ -127,7 +131,9 @@ func TestCronJobStore(t *testing.T) {
|
|||
# HELP kube_cronjob_info Info about cronjob.
|
||||
# HELP kube_cronjob_labels Kubernetes labels converted to Prometheus labels.
|
||||
# HELP kube_cronjob_next_schedule_time Next time the cronjob should be scheduled. The time after lastScheduleTime, or after the cron job's creation time if it's never been scheduled. Use this to determine if the job is delayed.
|
||||
# HELP kube_cronjob_spec_failed_job_history_limit Failed job history limit tells the controller how many failed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_starting_deadline_seconds Deadline in seconds for starting the job if it misses scheduled time for any reason.
|
||||
# HELP kube_cronjob_spec_successful_job_history_limit Successful job history limit tells the controller how many completed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_suspend Suspend flag tells the controller to suspend subsequent executions.
|
||||
# HELP kube_cronjob_status_active Active holds pointers to currently running jobs.
|
||||
# HELP kube_cronjob_metadata_resource_version Resource version representing a specific version of the cronjob.
|
||||
|
|
@ -136,21 +142,25 @@ func TestCronJobStore(t *testing.T) {
|
|||
# TYPE kube_cronjob_info gauge
|
||||
# TYPE kube_cronjob_labels gauge
|
||||
# TYPE kube_cronjob_next_schedule_time gauge
|
||||
# TYPE kube_cronjob_spec_failed_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_starting_deadline_seconds gauge
|
||||
# TYPE kube_cronjob_spec_successful_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_suspend gauge
|
||||
# TYPE kube_cronjob_status_active gauge
|
||||
# TYPE kube_cronjob_metadata_resource_version gauge
|
||||
# TYPE kube_cronjob_status_last_schedule_time gauge
|
||||
kube_cronjob_info{concurrency_policy="Forbid",cronjob="ActiveRunningCronJob1",namespace="ns1",schedule="0 */6 * * *"} 1
|
||||
kube_cronjob_labels{cronjob="ActiveRunningCronJob1",namespace="ns1"} 1
|
||||
kube_cronjob_spec_failed_job_history_limit{cronjob="ActiveRunningCronJob1",namespace="ns1"} 1
|
||||
kube_cronjob_spec_starting_deadline_seconds{cronjob="ActiveRunningCronJob1",namespace="ns1"} 300
|
||||
kube_cronjob_spec_successful_job_history_limit{cronjob="ActiveRunningCronJob1",namespace="ns1"} 3
|
||||
kube_cronjob_spec_suspend{cronjob="ActiveRunningCronJob1",namespace="ns1"} 0
|
||||
kube_cronjob_status_active{cronjob="ActiveRunningCronJob1",namespace="ns1"} 2
|
||||
kube_cronjob_metadata_resource_version{cronjob="ActiveRunningCronJob1",namespace="ns1"} 11111
|
||||
kube_cronjob_status_last_schedule_time{cronjob="ActiveRunningCronJob1",namespace="ns1"} 1.520742896e+09
|
||||
` + fmt.Sprintf("kube_cronjob_next_schedule_time{cronjob=\"ActiveRunningCronJob1\",namespace=\"ns1\"} %ve+09\n",
|
||||
float64(ActiveRunningCronJob1NextScheduleTime.Unix())/math.Pow10(9)),
|
||||
MetricNames: []string{"kube_cronjob_next_schedule_time", "kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels", "kube_cronjob_status_last_schedule_time"},
|
||||
MetricNames: []string{"kube_cronjob_next_schedule_time", "kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels", "kube_cronjob_status_last_schedule_time", "kube_cronjob_spec_successful_job_history_limit", "kube_cronjob_spec_failed_job_history_limit"},
|
||||
},
|
||||
{
|
||||
Obj: &batchv1beta1.CronJob{
|
||||
|
|
@ -168,17 +178,21 @@ func TestCronJobStore(t *testing.T) {
|
|||
LastScheduleTime: &metav1.Time{Time: SuspendedCronJob1LastScheduleTime},
|
||||
},
|
||||
Spec: batchv1beta1.CronJobSpec{
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendTrue,
|
||||
Schedule: "0 */3 * * *",
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendTrue,
|
||||
Schedule: "0 */3 * * *",
|
||||
SuccessfulJobsHistoryLimit: &SuccessfulJobHistoryLimit3,
|
||||
FailedJobsHistoryLimit: &FailedJobHistoryLimit1,
|
||||
},
|
||||
},
|
||||
Want: `
|
||||
# HELP kube_cronjob_created Unix creation timestamp
|
||||
# HELP kube_cronjob_info Info about cronjob.
|
||||
# HELP kube_cronjob_labels Kubernetes labels converted to Prometheus labels.
|
||||
# HELP kube_cronjob_spec_failed_job_history_limit Failed job history limit tells the controller how many failed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_starting_deadline_seconds Deadline in seconds for starting the job if it misses scheduled time for any reason.
|
||||
# HELP kube_cronjob_spec_successful_job_history_limit Successful job history limit tells the controller how many completed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_suspend Suspend flag tells the controller to suspend subsequent executions.
|
||||
# HELP kube_cronjob_status_active Active holds pointers to currently running jobs.
|
||||
# HELP kube_cronjob_metadata_resource_version Resource version representing a specific version of the cronjob.
|
||||
|
|
@ -186,20 +200,24 @@ func TestCronJobStore(t *testing.T) {
|
|||
# TYPE kube_cronjob_created gauge
|
||||
# TYPE kube_cronjob_info gauge
|
||||
# TYPE kube_cronjob_labels gauge
|
||||
# TYPE kube_cronjob_spec_failed_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_starting_deadline_seconds gauge
|
||||
# TYPE kube_cronjob_spec_successful_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_suspend gauge
|
||||
# TYPE kube_cronjob_status_active gauge
|
||||
# TYPE kube_cronjob_metadata_resource_version gauge
|
||||
# TYPE kube_cronjob_status_last_schedule_time gauge
|
||||
kube_cronjob_info{concurrency_policy="Forbid",cronjob="SuspendedCronJob1",namespace="ns1",schedule="0 */3 * * *"} 1
|
||||
kube_cronjob_labels{cronjob="SuspendedCronJob1",namespace="ns1"} 1
|
||||
kube_cronjob_spec_failed_job_history_limit{cronjob="SuspendedCronJob1",namespace="ns1"} 1
|
||||
kube_cronjob_spec_starting_deadline_seconds{cronjob="SuspendedCronJob1",namespace="ns1"} 300
|
||||
kube_cronjob_spec_successful_job_history_limit{cronjob="SuspendedCronJob1",namespace="ns1"} 3
|
||||
kube_cronjob_spec_suspend{cronjob="SuspendedCronJob1",namespace="ns1"} 1
|
||||
kube_cronjob_status_active{cronjob="SuspendedCronJob1",namespace="ns1"} 0
|
||||
kube_cronjob_metadata_resource_version{cronjob="SuspendedCronJob1",namespace="ns1"} 22222
|
||||
kube_cronjob_status_last_schedule_time{cronjob="SuspendedCronJob1",namespace="ns1"} 1.520762696e+09
|
||||
`,
|
||||
MetricNames: []string{"kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels", "kube_cronjob_status_last_schedule_time"},
|
||||
MetricNames: []string{"kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels", "kube_cronjob_status_last_schedule_time", "kube_cronjob_spec_successful_job_history_limit", "kube_cronjob_spec_failed_job_history_limit"},
|
||||
},
|
||||
{
|
||||
Obj: &batchv1beta1.CronJob{
|
||||
|
|
@ -218,10 +236,12 @@ func TestCronJobStore(t *testing.T) {
|
|||
LastScheduleTime: nil,
|
||||
},
|
||||
Spec: batchv1beta1.CronJobSpec{
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendFalse,
|
||||
Schedule: "25 * * * *",
|
||||
StartingDeadlineSeconds: &StartingDeadlineSeconds300,
|
||||
ConcurrencyPolicy: "Forbid",
|
||||
Suspend: &SuspendFalse,
|
||||
Schedule: "25 * * * *",
|
||||
SuccessfulJobsHistoryLimit: &SuccessfulJobHistoryLimit3,
|
||||
FailedJobsHistoryLimit: &FailedJobHistoryLimit1,
|
||||
},
|
||||
},
|
||||
Want: `
|
||||
|
|
@ -229,7 +249,9 @@ func TestCronJobStore(t *testing.T) {
|
|||
# HELP kube_cronjob_info Info about cronjob.
|
||||
# HELP kube_cronjob_labels Kubernetes labels converted to Prometheus labels.
|
||||
# HELP kube_cronjob_next_schedule_time Next time the cronjob should be scheduled. The time after lastScheduleTime, or after the cron job's creation time if it's never been scheduled. Use this to determine if the job is delayed.
|
||||
# HELP kube_cronjob_spec_failed_job_history_limit Failed job history limit tells the controller how many failed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_starting_deadline_seconds Deadline in seconds for starting the job if it misses scheduled time for any reason.
|
||||
# HELP kube_cronjob_spec_successful_job_history_limit Successful job history limit tells the controller how many completed jobs should be preserved.
|
||||
# HELP kube_cronjob_spec_suspend Suspend flag tells the controller to suspend subsequent executions.
|
||||
# HELP kube_cronjob_status_active Active holds pointers to currently running jobs.
|
||||
# HELP kube_cronjob_metadata_resource_version Resource version representing a specific version of the cronjob.
|
||||
|
|
@ -237,13 +259,17 @@ func TestCronJobStore(t *testing.T) {
|
|||
# TYPE kube_cronjob_info gauge
|
||||
# TYPE kube_cronjob_labels gauge
|
||||
# TYPE kube_cronjob_next_schedule_time gauge
|
||||
# TYPE kube_cronjob_spec_failed_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_starting_deadline_seconds gauge
|
||||
# TYPE kube_cronjob_spec_successful_job_history_limit gauge
|
||||
# TYPE kube_cronjob_spec_suspend gauge
|
||||
# TYPE kube_cronjob_status_active gauge
|
||||
# TYPE kube_cronjob_metadata_resource_version gauge
|
||||
kube_cronjob_spec_starting_deadline_seconds{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 300
|
||||
kube_cronjob_status_active{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 0
|
||||
kube_cronjob_metadata_resource_version{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 33333
|
||||
kube_cronjob_spec_failed_job_history_limit{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 1
|
||||
kube_cronjob_spec_successful_job_history_limit{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 3
|
||||
kube_cronjob_spec_suspend{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 0
|
||||
kube_cronjob_info{concurrency_policy="Forbid",cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1",schedule="25 * * * *"} 1
|
||||
kube_cronjob_created{cronjob="ActiveCronJob1NoLastScheduled",namespace="ns1"} 1.520766296e+09
|
||||
|
|
@ -251,7 +277,7 @@ func TestCronJobStore(t *testing.T) {
|
|||
` +
|
||||
fmt.Sprintf("kube_cronjob_next_schedule_time{cronjob=\"ActiveCronJob1NoLastScheduled\",namespace=\"ns1\"} %ve+09\n",
|
||||
float64(ActiveCronJob1NoLastScheduledNextScheduleTime.Unix())/math.Pow10(9)),
|
||||
MetricNames: []string{"kube_cronjob_next_schedule_time", "kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels"},
|
||||
MetricNames: []string{"kube_cronjob_next_schedule_time", "kube_cronjob_spec_starting_deadline_seconds", "kube_cronjob_status_active", "kube_cronjob_metadata_resource_version", "kube_cronjob_spec_suspend", "kube_cronjob_info", "kube_cronjob_created", "kube_cronjob_labels", "kube_cronjob_spec_successful_job_history_limit", "kube_cronjob_spec_failed_job_history_limit"},
|
||||
},
|
||||
}
|
||||
for i, c := range cases {
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ func createNodeInfoFamilyGenerator() generator.FamilyGenerator {
|
|||
"kubeproxy_version",
|
||||
"provider_id",
|
||||
"pod_cidr",
|
||||
"system_uuid",
|
||||
}
|
||||
labelValues := []string{
|
||||
n.Status.NodeInfo.KernelVersion,
|
||||
|
|
@ -99,6 +100,7 @@ func createNodeInfoFamilyGenerator() generator.FamilyGenerator {
|
|||
n.Status.NodeInfo.KubeProxyVersion,
|
||||
n.Spec.ProviderID,
|
||||
n.Spec.PodCIDR,
|
||||
n.Status.NodeInfo.SystemUUID,
|
||||
}
|
||||
|
||||
internalIP := ""
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ func TestNodeStore(t *testing.T) {
|
|||
KubeProxyVersion: "kubeproxy",
|
||||
OSImage: "osimage",
|
||||
ContainerRuntimeVersion: "rkt",
|
||||
SystemUUID: "6a934e21-5207-4a84-baea-3a952d926c80",
|
||||
},
|
||||
Addresses: []v1.NodeAddress{
|
||||
{Type: "InternalIP", Address: "1.2.3.4"},
|
||||
|
|
@ -59,7 +60,7 @@ func TestNodeStore(t *testing.T) {
|
|||
# TYPE kube_node_info gauge
|
||||
# TYPE kube_node_labels gauge
|
||||
# TYPE kube_node_spec_unschedulable gauge
|
||||
kube_node_info{container_runtime_version="rkt",kernel_version="kernel",kubelet_version="kubelet",kubeproxy_version="kubeproxy",node="127.0.0.1",os_image="osimage",pod_cidr="172.24.10.0/24",provider_id="provider://i-uniqueid",internal_ip="1.2.3.4"} 1
|
||||
kube_node_info{container_runtime_version="rkt",kernel_version="kernel",kubelet_version="kubelet",kubeproxy_version="kubeproxy",node="127.0.0.1",os_image="osimage",pod_cidr="172.24.10.0/24",provider_id="provider://i-uniqueid",internal_ip="1.2.3.4",system_uuid="6a934e21-5207-4a84-baea-3a952d926c80"} 1
|
||||
kube_node_labels{node="127.0.0.1"} 1
|
||||
kube_node_spec_unschedulable{node="127.0.0.1"} 0
|
||||
`,
|
||||
|
|
@ -75,7 +76,7 @@ func TestNodeStore(t *testing.T) {
|
|||
Want: `
|
||||
# HELP kube_node_info Information about a cluster node.
|
||||
# TYPE kube_node_info gauge
|
||||
kube_node_info{container_runtime_version="",kernel_version="",kubelet_version="",kubeproxy_version="",node="",os_image="",pod_cidr="",provider_id="",internal_ip=""} 1
|
||||
kube_node_info{container_runtime_version="",kernel_version="",kubelet_version="",kubeproxy_version="",node="",os_image="",pod_cidr="",provider_id="",internal_ip="",system_uuid=""} 1
|
||||
`,
|
||||
MetricNames: []string{"kube_node_info"},
|
||||
},
|
||||
|
|
@ -101,6 +102,7 @@ func TestNodeStore(t *testing.T) {
|
|||
KubeProxyVersion: "kubeproxy",
|
||||
OSImage: "osimage",
|
||||
ContainerRuntimeVersion: "rkt",
|
||||
SystemUUID: "6a934e21-5207-4a84-baea-3a952d926c80",
|
||||
},
|
||||
Addresses: []v1.NodeAddress{
|
||||
{Type: "InternalIP", Address: "1.2.3.4"},
|
||||
|
|
@ -139,7 +141,7 @@ func TestNodeStore(t *testing.T) {
|
|||
# TYPE kube_node_status_allocatable gauge
|
||||
# TYPE kube_node_status_capacity gauge
|
||||
kube_node_created{node="127.0.0.1"} 1.5e+09
|
||||
kube_node_info{container_runtime_version="rkt",kernel_version="kernel",kubelet_version="kubelet",kubeproxy_version="kubeproxy",node="127.0.0.1",os_image="osimage",pod_cidr="172.24.10.0/24",provider_id="provider://i-randomidentifier",internal_ip="1.2.3.4"} 1
|
||||
kube_node_info{container_runtime_version="rkt",kernel_version="kernel",kubelet_version="kubelet",kubeproxy_version="kubeproxy",node="127.0.0.1",os_image="osimage",pod_cidr="172.24.10.0/24",provider_id="provider://i-randomidentifier",internal_ip="1.2.3.4",system_uuid="6a934e21-5207-4a84-baea-3a952d926c80"} 1
|
||||
kube_node_labels{node="127.0.0.1"} 1
|
||||
kube_node_role{node="127.0.0.1",role="master"} 1
|
||||
kube_node_spec_unschedulable{node="127.0.0.1"} 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue