<p>I am getting metrics exposed by kube-state-metrics by querying Prometheus-server but the issue is I am getting duplicate metrics with difference only in the job field. . I am doing query such as :</p>
<pre><code>curl 'http://10.101.202.25:80/api/v1/query?query=kube_pod_status_phase'| jq
</code></pre>
<p>The only difference is coming the job field. <a href="https://i.stack.imgur.com/HHXJW.jpg" rel="nofollow noreferrer">Metrics coming when querying Prometheus-Server</a></p>
<p>All pods running in the cluster: <a href="https://i.stack.imgur.com/WxNXz.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/WxNXz.jpg</a></p>
<p>Any help is appreciated.</p>
<p>Thank You</p>
<p><strong>prometheus.yml</strong></p>
<pre><code>global:
  scrape_interval:     15s
  evaluation_interval: 15s

rule_files:
  # - &quot;first.rules&quot;
  # - &quot;second.rules&quot;

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ['localhost:9090']
</code></pre>

S4H
<p>You are running (or at least ingesting) two copies of kube-state-metrics. Probably one you installed and configured yourself and another from something like kube-prometheus-stack?</p>
