dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
356 stars 216 forks source link

data collecting interval #93

Closed rockb1017 closed 6 years ago

rockb1017 commented 6 years ago

Hello,

image Can someone help me why I am seeing spikes of data rather than continuous data? I have spike in numbers from prometheus. image

it seems mongodb server status is not constantly updated.

I appreciate your help.

Rock

rockb1017 commented 6 years ago

I found out why. I provided multiple mongodb address like, mongodb://x.x.x.x:27017,y.y.y.y:27017/db?replicaSet=mmm this causes serverStatus data come from different mongod instance. After I use only one, (primary address) it became fine. /close