k8s-prom-hpa icon indicating copy to clipboard operation
k8s-prom-hpa copied to clipboard

Custom Metrics self-link for other services ?

Open shubhasish opened this issue 6 years ago • 0 comments

In your ReadMe, you have demoed a way to fetch any custom metrics related to Pod. How do i fetch the same for other services such as nodes,replications etc ?

Ex:

kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1" | jq .

{ "name": "namespaces/kube_deployment_status_replicas_updated", "singularName": "", "namespaced": false, "kind": "MetricValueList", "verbs": [ "get" ] }, { "name": "replicasets.extensions/kube_replicaset_status_observed_generation", "singularName": "", "namespaced": true, "kind": "MetricValueList", "verbs": [ "get" ] }, { "name": "pods/memory_failcnt", "singularName": "", "namespaced": true, "kind": "MetricValueList", "verbs": [ "get" ] }, { "name": "daemonsets.extensions/kube_daemonset_status_number_available", "singularName": "", "namespaced": true, "kind": "MetricValueList", "verbs": [ "get" ] }

What is the self -link for "daemonsets.extensions/kube_daemonset_status_number_available" and replicasets.extensions/kube_replicaset_status_observed_generation ?

shubhasish avatar Apr 19 '18 08:04 shubhasish