Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-599

mongostat reports negative values for counters when server first restarts

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.0-rc6
    • Component/s: mongostat
    • Labels:
      None
    • Environment:
      Linux x64

      When a server monitored with mongostat restarts, and so its counters are reset, the next mongostat line shows negative counter values.

      (FWIW, MMS handles counter resets and overflows by simply discarding the sample whenever there's a "signum" change from the "previous" to "current" value of a counter, or if the difference is negative.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            john.morales@mongodb.com John Morales
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: