Kube_state_metrics

I need to know about the below kube_state_metrics description. Exactly looking is what the particular metrics doing. Can you please help on this.

Horizontal Pod Autoscaler Metrics:
kube_horizontalpodautoscaler_labels
kube_horizontalpodautoscaler_metadata_generation
kube_horizontalpodautoscaler_spec_max_replicas
kube_horizontalpodautoscaler_spec_min_replicas
kube_horizontalpodautoscaler_spec_target_metric
kube_horizontalpodautoscaler_status_condition
kube_horizontalpodautoscaler_status_current_replicas
kube_horizontalpodautoscaler_status_desired_replicas

Job Metrics:
kube_job_owner

Namespace Metrics:
kube_namespace_status_condition

Node Metrics:
kube_node_role
kube_node_status_capacity
kube_node_status_allocatable

PersistentVolumeClaim Metrics:
kube_persistentvolumeclaim_access_mode
kube_persistentvolumeclaim_status_condition

PersistentVolume Metrics:
kube_persistentvolume_capacity_bytes

Pod Metrics:
kube_pod_restart_policy
kube_pod_init_container_info
kube_pod_init_container_status_waiting_reason
kube_pod_init_container_status_terminated_reason
kube_pod_init_container_status_last_terminated_reason
kube_pod_init_container_resource_limits

ReplicaSet metrics:
kube_replicaset_labels

Service Metrics:
kube_statefulset_status_current_revision
kube_statefulset_status_update_revision

StorageClass Metrics:
kube_storageclass_info
kube_storageclass_labels
kube_storageclass_created

ValidatingWebhookConfiguration Metrics:
kube_validatingwebhookconfiguration_info
kube_validatingwebhookconfiguration_created
kube_validatingwebhookconfiguration_metadata_resource_version

Vertical Pod Autoscaler Metrics:
kube_verticalpodautoscaler_spec_resourcepolicy_container_policies_minallowed
kube_verticalpodautoscaler_spec_resourcepolicy_container_policies_maxallowed
kube_verticalpodautoscaler_status_recommendation_containerrecommendations_lowerbound
kube_verticalpodautoscaler_status_recommendation_containerrecommendations_target
kube_verticalpodautoscaler_status_recommendation_containerrecommendations_uncappedtarget
kube_verticalpodautoscaler_status_recommendation_containerrecommendations_upperbound
kube_verticalpodautoscaler_labels
kube_verticalpodautoscaler_spec_updatepolicy_updatemode

volumeattachment-metrics:
kube_volumeattachment_info
kube_volumeattachment_created
kube_volumeattachment_labels
kube_volumeattachment_spec_source_persistentvolume
kube_volumeattachment_status_attached
kube_volumeattachment_status_attachment_metadata

CertificateSigningRequest Metrics:
kube_certificatesigningrequest_created
kube_certificatesigningrequest_condition
kube_certificatesigningrequest_labels
kube_certificatesigningrequest_cert_length

You can ask Prometheus about metadata where you can find “help” for each metric: https://prometheus.io/docs/prometheus/latest/querying/api/#querying-metric-metadata

Thank you. I am checking with Prometheus community

Sorry, I meant that you can send a request to the Prometheus API to get metadata. There is a field named “help” where you find some information about metrics.

1 Like

Hi, Can you please help with the URL. I am not able to find it out

Could you try to add /api/v1/metadata to your Prometheus endpoint.