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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

       

       

            Assignee:
            Edwin Zhou
            Reporter:
            zhenchuan ding
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: