<p>Kubernetes version : 1.13 on Amazon's EKS</p>
<p>I am trying to follow this guide <a href="https://nuvalence.io/building-a-k8s-autoscaler-with-custom-metrics/" rel="nofollow noreferrer">https://nuvalence.io/building-a-k8s-autoscaler-with-custom-metrics/</a> to enable autoscaling based on rabbitmq data in our Kubernetes cluster by using the prometheus-adapter.</p>
<p>However, running
<code>kubectl get --raw /apis/external.metrics.k8s.io/v1beta1 | jq .</code> returns <code>Error from server (NotFound): the server could not find the requested resource</code> which tells me that external metrics are not for some reason supported / enabled.</p>
<p>Custom ones do though, so <code>kubectl get --raw /apis/custom.metrics.k8s.io/v1beta1 | jq .</code> returns valid data.</p>
<p>The issue is that rabbitmq should definitively be an external metric and I spent hours trying to make it work as custom without any success.</p>
<p>No idea how to proceed with the external metrics or an indication about where to start searching? Should this api endpoint be there by default or there is an extension that enables it?</p>

<p><code>external.metrics.k8s.io</code> is not part of upstream kube API as mentioned in <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis" rel="nofollow noreferrer">docs</a></p>
<blockquote>
<p>For external metrics, this is the external.metrics.k8s.io API. It may be provided by the custom metrics adapters provided above.</p>
</blockquote>
<p>So you need to install custom metric provider such as <a href="https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/custom-metrics-stackdriver-adapter" rel="nofollow noreferrer">GCP stackdriver</a>. I assume you are using EKS with prometheus, here is one good option that I used before <a href="https://github.com/DirectXMan12/k8s-prometheus-adapter" rel="nofollow noreferrer">prometheus-adapter</a>. Kindly note that the API is <code>v1beta1.custom.metrics.k8s.io</code> though.</p>
<p>PS: I thought EKS 1.13 is already deprecated, you might need to update it first.</p>
