<p>I enabled monitoring for my project in Rancher UI, and it installed succesfully. But when I click <em>"Go to grafana"</em> at my workload (such as <code>nginx</code>), it moves to Grafana dashboard, but Grafana show nothing: <code>0 CPU, 0 memory, 0 networking</code> ,... </p>

<ul>
<li>Why doesn't it have data ?</li>
<li>And how I can know consumed quota of my resource (workload, service, pod)?</li>
</ul>

<p>Please see my screenshots:</p>

<p><a href="https://i.stack.imgur.com/OI1AL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OI1AL.png" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/eoXPF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eoXPF.png" alt="enter image description here"></a>
Many thanks</p>

<p>Prometheus is necessary component for using Grafana.</p>

<p>You can check this blogpost:</p>

<blockquote>
  <p><a href="https://rancher.com/blog/2018/2018-10-18-monitoring-kubernetes/" rel="nofollow noreferrer">Kubernetes Monitoring with Prometheus, Grafana and Rancher</a></p>
  
  <p><a href="https://prometheus.io" rel="nofollow noreferrer">Prometheus</a> is an open-source application for monitoring systems and generating alerts. ... Prometheus will scrape targets at designated intervals and store the information in a time-series database.</p>
  
  <p><a href="https://grafana.com" rel="nofollow noreferrer">Grafana</a> is also open source and runs as a web application. ... Grafana makes it easy to create graphs and assemble those graphs into dashboards. </p>
</blockquote>

<p>Check, if check if <code>Prometheus</code> is turned on and whether it is configured correctly:</p>

<blockquote>
  <p><a href="https://rancher.com/docs/rancher/v2.x/en/project-admin/tools/monitoring/#configuring-project-monitoring" rel="nofollow noreferrer">Configuring Project Monitoring</a></p>
  
  <p>From the Global view, navigate to the project that you want to configure project monitoring.</p>
  
  <ul>
  <li><p>Select Tools > Monitoring in the navigation bar.</p></li>
  <li><p>Select Enable to show the Prometheus configuration options. Enter in your desired configuration options.</p></li>
  <li><p>Click Save.</p></li>
  </ul>
</blockquote>

<p>Also check these settings: </p>

<blockquote>
  <p><a href="https://rancher.com/docs/rancher/v2.x/en/cluster-admin/tools/monitoring/prometheus/" rel="nofollow noreferrer">Prometheus Configuration</a></p>
  
  <ul>
  <li><p><a href="https://rancher.com/docs/rancher/v2.x/en/cluster-admin/tools/monitoring/prometheus/#persistent-storage" rel="nofollow noreferrer">Enable Persistent Storage</a> for Prometheus Whether or not to configure storage for Prometheus so that metrics can be retained even if the Prometheus pod fails. </p></li>
  <li><p><a href="https://rancher.com/docs/rancher/v2.x/en/cluster-admin/tools/monitoring/prometheus/#persistent-storage" rel="nofollow noreferrer">Enable Persistent Storage</a> for Grafana Whether or not to configure storage for Grafana so that the Grafana dashboards and configuration can be retained even if the Grafana pod fails. </p></li>
  </ul>
</blockquote>
