<p>I'm looking to get the kubelet_* metrics from EKS/GKE servers.</p>
<p>neither <code>metrics-server</code> or <code>kube-state-metrics</code> seem to provide them to prometheus. Information online suggests the metrics are coming from the kubelet itself, but I'm not precisely sure which software piece is usually used to provide those metrics.</p>
<p>I seem to be able to do a --raw query on the node to get the information, but I'd <em>rather</em> not write my own exporter for that.  :)</p>

<p>It's true that kubelet exposes <code>kubelet_*</code> metrics. By default they're available on port <code>10250</code>, path <code>/metrics</code>. Additionally, kubelet also has metrics in <code>/metrics/cadvisor</code>, <code>/metrics/resource</code> and <code>/metrics/probes</code> endpoints.</p>
<p>I'm running a self-managed Prometheus deployment and use this config to scrape kubelet metrics:</p>
<pre><code>- job_name: 'kubelet'
  scheme: https

  # these are provided by the service account I created for Prometheuse
  tls_config:
    ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
  bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token

  kubernetes_sd_configs:
  - role: node

  relabel_configs:
  # map node labels to prometheus labels
  - action: labelmap
    regex: __meta_kubernetes_node_label_(.+)
</code></pre>
