I’m trying to understand why the value of the serverStatus.opcounters will go down from time to time. According to the documentation here: https://docs.mongodb.com/manual/reference/command/serverStatus/#serverstatus.opcounters the opcounter is basically a tally of each operation that occurred since the mongo server restarted.
So, if that’s truly the case, wouldn’t that number always be incremented (until it overflows I guess)? Or is there a time-frame that opstatus uses to determine how many operations occurred? Do they roll off after some time? Why would that number go down?
The reason I ask is because I was attempting to monitor one of our dev servers, and I saw the numbers going up then when I ran it again 2-3 seconds later they go down, then up again. It seems inconsistent?
Does anyone know what I should be seeing here?