title: Monitor MongoDb with Prometheus and Grafana
body: <p>I have tried to monitor mongo db with Prometheus and Grafana</p>
  
  <pre><code> wget https://github.com/dcu/mongodb_exporter/releases/download/v1.0.0/mongodb_exporter-linux-amd64
  chmod 777 mongodb_exporter-linux-amd64
  ./mongodb_exporter-linux-amd64 &amp;
  </code></pre>
  
  <p>it starts running in 9001 port;</p>
  
  <p>Checked in Prometheus :
   state shows as UP for this server:9001
  metrics were listed in the promethus</p>
  
  <p>but it reporting the following in the  server</p>
  
  <pre><code>E1010 02:39:18.767155   26635 replset_status.go:232] Failed to get replSet status.
  E1010 02:39:18.767293   26635 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
  </code></pre>
  
  <p>And how to get these data in Grafana UI dashboards</p>