Prometheus Adapter Configuration

42 views
Skip to first unread message

Bill Zalokostas

unread,
Apr 11, 2021, 1:23:41 PM4/11/21
to Prometheus Users
Hello,

I want to get custom metrics (cpu utilization percentage) from the prometheus-adapter.
I've used helm to install the prometheus-adapter file with the conf file I've attached and then when I execute: kubectl I get this:
{"name":"pods/malakas","singularName":"","namespaced":true,"kind":"MetricValueList","verbs":["get"]}
{"name":"namespaces/malakas","singularName":"","namespaced":false,"kind":"MetricValueList","verbs":["get"]}

but when I execute: kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/*/malakas" | jq .
{
  "kind": "MetricValueList",
  "apiVersion": "custom.metrics.k8s.io/v1beta1",
  "metadata": {
  },
  "items": []
}

Can anyone help me solve this issue in order not to get zero items?

Thank you in advance
prometheus-adapter.txt
Reply all
Reply to author
Forward
0 new messages