<p>I am using <a href="https://github.com/directxman12/k8s-prometheus-adapter" rel="nofollow noreferrer">this</a> to export metrics from Prometheus to Kubernetes. That seems to be working. I can (successfully) see the metric names with</p>

<pre><code>kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq '.'
</code></pre>

<p>This shows the names of the metrics, but doesn't show the values. How do I see the values?</p>

<p>I intend to use this with a HorizontalPodAutoscaler. I'd like to see what the metric values look like within the Kubernetes Metric System to assist in understanding and configuring this correctly.</p>

clay
<p>You need to be more specific for the Kubernetes API.</p>

<p>If you deployed everything correctly and everything is working as it should when you use </p>

<pre><code>$ kubectl get --raw="/apis/custom.metrics.k8s.io/v1beta1" | jq
</code></pre>

<p>you should get list of <code>MetricValues</code> if you have any metrics added.</p>

<p>Here is a really good article about <a href="https://levelup.gitconnected.com/building-kubernetes-apps-with-custom-scaling-a-gentle-introduction-a332d7ebc795" rel="nofollow noreferrer">Building Kubernetes Apps with Scaling on Custom Metrics: A Gentle Introduction</a>.</p>

<p>You mentioned that your intend is to use the metrics for <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/" rel="nofollow noreferrer">HorizontalPodAutoscaler</a>, I would strongly recommend going over <a href="https://sysdig.com/blog/kubernetes-autoscaler/" rel="nofollow noreferrer">Kubernetes pod autoscaler using custom metrics</a> as it provides some really nice examples on how to create and use custom metrics.</p>
