stefanprodan / k8s-prom-hpa

Kubernetes Horizontal Pod Autoscaler with Prometheus custom metrics
MIT License
565 stars 192 forks source link

Custom Metrics self-link for other services ? #8

Open shubhasish opened 6 years ago

shubhasish commented 6 years ago

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 ?