# Metric Beat Mongo

**URL:** <https://discuss.elastic.co/t/metric-beat-mongo/84801>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 6, 2017, 2:18am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801 "2017-05-06T02:18:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![karunakarkotha](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@karunakarkotha](https://discuss.elastic.co/u/karunakarkotha)\
**Post date:** [May 6, 2017, 2:18am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/1 "2017-05-06T02:18:04Z")

</div>

Hello All, I am interested to capture ,load and visualize MongoDB performance metrics using MetricBeat with ElasticSearch with the below sample dashboard.

Here's the below sample linnk which I am interested to setup the Mongo Metrics.  
[http://demo.elastic.co/beats/app/kibana#/dashboard/Packetbeat-MongoDB-performance?\_g=()&\_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:Navigation,panelIndex:1,row:1,size\_x:3,size\_y:4,type:visualization),(col:4,id:MongoDB-errors,panelIndex:2,row:1,size\_x:5,size\_y:4,type:visualization](http://demo.elastic.co/beats/app/kibana#/dashboard/Packetbeat-MongoDB-performance?_g=()&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:Navigation,panelIndex:1,row:1,size_x:3,size_y:4,type:visualization),(col:4,id:MongoDB-errors,panelIndex:2,row:1,size_x:5,size_y:4,type:visualization)),(col:9,id:MongoDB-commands,panelIndex:3,row:1,size\_x:4,size\_y:4,type:visualization),(col:1,id:MongoDB-errors-per-collection,panelIndex:4,row:5,size\_x:4,size\_y:3,type:visualization),(col:5,id:MongoDB-in-slash-out-throughput,panelIndex:5,row:5,size\_x:4,size\_y:3,type:visualization),(col:9,id:Number-of-MongoDB-transactions-with-writeConcern-w-equal-0,panelIndex:8,row:5,size\_x:4,size\_y:3,type:visualization),(col:1,id:MongoDB-response-times-by-collection,panelIndex:6,row:8,size\_x:8,size\_y:5,type:visualization),(col:9,id:Top-slowest-MongoDB-queries,panelIndex:7,row:8,size\_x:4,size\_y:5,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:'\*')),title:'Packetbeat%20MongoDB%20performance',uiState:(P-7:(vis:(params:(sort:(columnIndex:!n,direction:!n))))))

Can someone please send me the instructions to setup.

Many thanks  
Karan

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/2 "2017-05-06T03:31:57Z")

</div>

That is packetbeat, not metricbeat. See [https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-getting-started.html](https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-getting-started.html) for getting started.

---

<div class="post-metadata">

**Author:** ![karunakarkotha](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@karunakarkotha](https://discuss.elastic.co/u/karunakarkotha)\
**Post date:** [May 6, 2017, 3:55am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/3 "2017-05-06T03:55:52Z")

</div>

> [@karunakarkotha](#):
>
> Hello All, I am interested to capture ,load and visualize MongoDB performance metrics using MetricBeat with Elasticsearch with the below sample dashboard.

how can we use packet beat to capture the mongoDB metrics ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 6, 2017, 5:55am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/4 "2017-05-06T05:55:37Z")

</div>

Packetbeat captures network traffic. If you are looking for performance metrics, take a look at [Metricbeat](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-mongodb.html) instead.

---

<div class="post-metadata">

**Author:** ![karunakarkotha](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@karunakarkotha](https://discuss.elastic.co/u/karunakarkotha)\
**Post date:** [May 6, 2017, 9:46am UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/5 "2017-05-06T09:46:36Z")

</div>

@warkolm @Christian_Dahlqvist  
Thanks to Marka and Christian ,

am fine with Metricbeat and packetbeat as long as I am able to collect MongoDB Performance metrics.

Coudl you please suggest which one should I use or from where to start

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 9, 2017, 1:06pm UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/6 "2017-05-09T13:06:33Z")

</div>

Have you had a look at metricbeat docs (getting started guide) and the provided metricbeat full config? The full config contains a sample configuration with comments: [https://github.com/elastic/beats/blob/master/metricbeat/metricbeat.full.yml#L256](https://github.com/elastic/beats/blob/master/metricbeat/metricbeat.full.yml#L256)

---

<div class="post-metadata">

**Author:** ![karunakarkotha](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@karunakarkotha](https://discuss.elastic.co/u/karunakarkotha)\
**Post date:** [May 11, 2017, 6:07pm UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/7 "2017-05-11T18:07:23Z")

</div>

Is there any way to caputure belwo metrcis using logstash or metricbeat or packetbeat for MONGODB

Mongotop-  
Mongostat  
ServerStatus  
DBStats  
collStats  
getReplicationInfo  
replSetGetStatus  
sharding status  
getProfilingStatus  
indexStats and Usage  
Slow running Queries  
Errors per collection

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [May 11, 2017, 7:41pm UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/8 "2017-05-11T19:41:30Z")

</div>

@karunakarkotha you can check the current metricsets supported by metricbeat:

[https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mongodb-status.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mongodb-status.html)  
[https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mongodb-dbstats.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mongodb-dbstats.html)

and the fields you can obtain from packetbeat:

[https://www.elastic.co/guide/en/beats/packetbeat/current/exported-fields-mongodb.html](https://www.elastic.co/guide/en/beats/packetbeat/current/exported-fields-mongodb.html)

I think they cover most of what you want so probably you can refer to the documentation and give them a try:

[https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-mongodb.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-mongodb.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 8, 2017, 7:50pm UTC](https://discuss.elastic.co/t/metric-beat-mongo/84801/9 "2017-06-08T19:50:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
