# Metric value doesn't show consistantly as 1 from mongodb\_exporter

**URL:** <https://forums.percona.com/t/metric-value-doesnt-show-consistantly-as-1-from-mongodb-exporter/6068>\
**Category:** PMM 1.x\
**Created:** [December 9, 2017, 10:14am UTC](https://forums.percona.com/t/metric-value-doesnt-show-consistantly-as-1-from-mongodb-exporter/6068 "2017-12-09T10:14:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgc](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mgc](https://forums.percona.com/u/mgc)\
**Post date:** [December 9, 2017, 10:14am UTC](https://forums.percona.com/t/metric-value-doesnt-show-consistantly-as-1-from-mongodb-exporter/6068/1 "2017-12-09T10:14:00Z")

</div>

Greetings  
Hopefully I am not missing something obvious but have been cracking at this with a couple of colleagues. We’re hitting a sight problem with being able to see the balancer metrics in percona’s mongodb\_exporter. Love the detailed metrics just can’t get this one rocking.

Grafana promQL:max(mongodb\_mongos\_sharding\_balancer\_enabled{cluster=“$cluster”})

mongodb\_mongos\_sharding\_balancer\_enabled

(cluster values are valid in the template) tried without max as well.

Can’t get the mongodb\_mongos\_sharding\_balancer\_enabled value to show as 1 (in PromQL or Grafana) or True although the balancer is always enabled. I see it showing as 1 occasionally but as I understand it should always be enabled and have a value of 1 or True. max(mongodb\_mongos\_sharding\_balancer\_enabled{cluster=“$cluster”})

The dashboard and value should always be 1. We’re lookin at doing monitoring so the promql and accurate result would be key to be sure the alerts are ok.

Our env  
RHEL 7.2  
Prometheus 2.0  
Percona mongodb\_exporter  
mongodb\_exporter, version 0.3.2 (branch: master, revision: adabd4fdd9b9a8835c2e57c327aa8d2dee9650be)  
build user: xxx\_xxxxxx  
build date: 20171121-15:49:23  
go version: go1.8.3

---

<div class="post-metadata">

**Author:** ![mgc](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mgc](https://forums.percona.com/u/mgc)\
**Post date:** [December 11, 2017, 12:53pm UTC](https://forums.percona.com/t/metric-value-doesnt-show-consistantly-as-1-from-mongodb-exporter/6068/2 "2017-12-11T12:53:04Z")

</div>

Here is a Grafana screenshot if that helps.

 ![photoid=50319](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/c/c059578c083e556e6d0f9d5e2420e7b23301d7f2.png)
