Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51854

db.serverStatus () the value obtained is of type numberlong

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      db.serverStatus () the value obtained is of type numberlong

      I want to use it db.serverStatus () monitor the status of Mongo, the following commands I executed and the return value

      >mongo --port 27001 --eval "db.serverStatus().opcounters.command"
      MongoDB shell version v4.2.3
      connecting to: mongodb://127.0.0.1:27001/?compressors=disabled&gssapiServiceName=mongodb
      Implicit session: session { "id" : UUID("a853348d-8eac-4c6a-814b-90a9f3eb6aeb") }
      MongoDB server version: 4.2.8
      NumberLong(86945)

       

       

       

      How to change the type of numberlong to get more intuitive data

       

       

      Attachments

        Activity

          People

            edwin.zhou@mongodb.com Edwin Zhou
            zhenchuan.ding@ptmind.com zhenchuan ding
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: