<p>I have grafana Dashboards, Pods drop down coming None within namespace, however we have pods running in namespace and pulling data prometheus.</p>
<p>Screenshot:</p>
<p><a href="https://i.stack.imgur.com/6BUzx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6BUzx.png" alt="enter image description here" /></a></p>
<p>Query:</p>
<pre><code>          &quot;datasource&quot;: &quot;Prometheus&quot;,
          &quot;definition&quot;: &quot;&quot;,
          &quot;description&quot;: null,
          &quot;error&quot;: null,
          &quot;hide&quot;: 0,
          &quot;includeAll&quot;: false,
          &quot;label&quot;: &quot;Pod&quot;,
          &quot;multi&quot;: false,
          &quot;name&quot;: &quot;pod&quot;,
          &quot;options&quot;: [],
          &quot;query&quot;: {
            &quot;query&quot;: &quot;query_result(sum(container_memory_working_set_bytes{namespace=\&quot;$namespace\&quot;}) by (pod_name))&quot;,
            &quot;refId&quot;: &quot;Prometheus-pod-Variable-Query&quot;
          },
          &quot;refresh&quot;: 1,
          &quot;regex&quot;: &quot;/pod_name=\\\&quot;(.*?)(\\\&quot;)/&quot;,
          &quot;skipUrlSync&quot;: false,
          &quot;sort&quot;: 0,
          &quot;tagValuesQuery&quot;: &quot;&quot;,
          &quot;tags&quot;: [],
          &quot;tagsQuery&quot;: &quot;&quot;,
          &quot;type&quot;: &quot;query&quot;,
          &quot;useTags&quot;: false
</code></pre>
<p>I am imported json code:
<a href="https://grafana.com/grafana/dashboards/6879" rel="nofollow noreferrer">https://grafana.com/grafana/dashboards/6879</a></p>

Vidya 
<p>Edit your dashboard's JSON:<br />
Rename &quot;pod_name&quot; to &quot;pod&quot; in the 2 places (and save)</p>
<p>Looks like this grafana dashboard was created with older kubernetes version,<br />
and metrics internals since changed.</p>
<p>Probably will also need similar edits for &quot;container_name&quot; changing to &quot;container&quot; in these older dashboards</p>
