<p>I've setup Prometheus to monitor Kubernetes. However when i watch the Prometheus dashboard I see <strong>kubernetes-cadvisor</strong> <em>DOWN</em> </p>

<p>I would want to know if we need it to monitor Kubernetes because on Grafana i already get different information as memory usage, disk space ... </p>

<p>Would it be used to monitor containers in order to make <strong>precise requests</strong> such as the use of <strong>memory used by a pod</strong> of a <strong>specific namespace</strong>? </p>

morla
<p>The error you have provided means that the cAdvisor's content does not comply with the Prometheus exposition format.<a href="https://groups.google.com/forum/#!msg/prometheus-users/DpgYKZr6UyU/" rel="nofollow noreferrer">[1]</a> But to be honest, it is one of the possibilities and as you did not provide more information we will have to leave it for now (I mean the information asked by Oliver + versions of Prometheus and Grafana and environment in which you are running the cluster). </p>

<p>Answering your question, although you don't need to use cAdvisor for monitoring, it does provide some important metrics and is pretty well integrated with Kubernetes. So until you  need container level metrics, then you should use cAdvisor. 
As specified in this <a href="https://medium.com/@DazWilkin/kubernetes-metrics-ba69d439fac4" rel="nofollow noreferrer">article</a>(you can find configuration tutorial there):</p>

<blockquote>
  <p>you can’t access cAdvisor directly (through 4194). You can (!) access
  cAdvisor by duplicating the job_name (called “k8s”) in the
  prometheus.yml file, calling the copy “cAdvisor” (perhaps) and
  inserting an additional line to define “metrics_path”. Prometheus
  assumes exporters are on “/metrics” but, for cAdvisor, our metrics are
  on “/metrics/cadvisor”.</p>
</blockquote>

<p>I think that could be the reason, but if this does not solve your issue I will try to recreate it in my cluster. </p>

<p>Update:</p>

<p>Judging from your yaml file, you did not configure Prometheus to scrape metrics from the cAdvisor. Add this to your yaml file:</p>

<pre><code>scrape_configs:
- job_name: cadvisor
  scrape_interval: 5s
  static_configs:
  - targets:
    - cadvisor:8080
</code></pre>

<p>As specified <a href="https://prometheus.io/docs/guides/cadvisor/" rel="nofollow noreferrer">here</a>.</p>
