Prometheus adapter return empty custom metrics Prometheus adapter return empty custom metrics kubernetes kubernetes

Prometheus adapter return empty custom metrics


OP confirmed that the problem was with rules.

Changeing pod to deployment and api access path to sth like:

 /apis/custom.metrics.k8s.io/v1beta1/namespaces/{namespace_name}/deployment/{deployment_name}/{metric}

resolved the issue.