<p>What might be root cause that I got nothing from below command?</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl get --raw '/apis/custom.metrics.k8s.io/v1beta1/namespace/default/pods/*/' | jq
Error from server (NotFound): the server could not find the requested resource
</code></pre>
<p>I checked the '/apis/custom.metrics.k8s.io/v1beta1' as follow.</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get --raw '/apis/custom.metrics.k8s.io/v1beta1' | jq
{
  &quot;kind&quot;: &quot;APIResourceList&quot;,
  &quot;apiVersion&quot;: &quot;v1&quot;,
  &quot;groupVersion&quot;: &quot;custom.metrics.k8s.io/v1beta1&quot;,
  &quot;resources&quot;: [
    {
      &quot;name&quot;: &quot;namespaces/nginx_vts_server_requests_per_second&quot;,
      &quot;singularName&quot;: &quot;&quot;,
      &quot;namespaced&quot;: false,
      &quot;kind&quot;: &quot;MetricValueList&quot;,
      &quot;verbs&quot;: [
        &quot;get&quot;
      ]
    }
  ]
}
</code></pre>
<p>And the adapter was normal which was deployed via <a href="https://prometheus-community.github.io/helm-charts" rel="nofollow noreferrer">Helm Chart</a>.</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get apiservice | grep adapter
v1beta1.custom.metrics.k8s.io          monitoring/prometheus-adapter   True        11m
</code></pre>
<p>Anybody can help? Thanks in advance.</p>

Marco Mei
<pre><code>kubectl get --raw '/apis/custom.metrics.k8s.io/v1beta1/namespaces/*/metrics/nginx_vts_server_requests_per_second' | jq
</code></pre>
<p>Did you try the namespace metric <code>nginx_vts_server_requests_per_second</code> you pasted from the kubernetes discovery information?</p>
<p>You may need to change the prometheus adapter's configuration to include pods related metrics.</p>
<p>The <a href="https://github.com/kubernetes-sigs/prometheus-adapter/blob/master/docs/walkthrough.md" rel="nofollow noreferrer">prometheus-adapter walkthrough docs</a> may be useful to you.</p>
