设为首页 收藏本站
查看: 652|回复: 0

[经验分享] 线上实战zabbix监控mongodb详细步骤

[复制链接]

尚未签到

发表于 2018-10-24 10:35:25 | 显示全部楼层 |阅读模式
  MongoDB shell version v4.0.0
  connecting to: mongodb://192.168.16.111:20001/admin
  MongoDB server version: 3.4.9
  WARNING: shell and server versions do not match
  {
  "host" : "iZ2zeem1uivcbfbr01nmnrZ:20000",
  "version" : "3.4.9",
  "process" : "mongos",
  "pid" : NumberLong(10828),
  "uptime" : 24441734,
  "uptimeMillis" : NumberLong("24441733680"),
  "uptimeEstimate" : NumberLong(24441733),
  "localTime" : ISODate("2018-08-02T09:34:54.400Z"),
  "asserts" : {
  "regular" : 0,
  "warning" : 0,
  "msg" : 0,
  "user" : 1763423,
  "rollovers" : 0
  },
  "connections" : {
  "current" : 86,
  "available" : 52342,
  "totalCreated" : 118672
  },
  "extra_info" : {
  "note" : "fields vary by platform",
  "page_faults" : 14
  },
  "network" : {
  "bytesIn" : NumberLong("467536962787"),
  "bytesOut" : NumberLong("111369070632"),
  "physicalBytesIn" : NumberLong("467536962787"),
  "physicalBytesOut" : NumberLong("108213593338"),
  "numRequests" : NumberLong("2582169303")
  },
  "opcounters" : {
  "insert" : 619611,
  "query" : 406777,
  "update" : 122426978,
  "delete" : 61,
  "getmore" : 308,
  "command" : 215576153
  },
  "sharding" : {
  "configsvrConnectionString" : "config/iZ2ze7s6pfi7t4x18mx417Z:22000,iZ2ze7s6pfi7t4x18mx418Z:22000,iZ2ze7s6pfi7t4x18mx419Z:22000",
  "lastSeenConfigServerOpTime" : {
  "ts" : Timestamp(1533202490, 2),
  "t" : NumberLong(3)
  }
  },
  "tcmalloc" : {
  "generic" : {
  "current_allocated_bytes" : 4007000,
  "heap_size" : NumberLong("3108966400")
  },
  "tcmalloc" : {
  "pageheap_free_bytes" : 36864,
  "pageheap_unmapped_bytes" : NumberLong("3090604032"),
  "max_total_thread_cache_bytes" : NumberLong(1073741824),
  "current_total_thread_cache_bytes" : 5583584,
  "total_free_bytes" : 14318504,
  "central_cache_free_bytes" : 3283112,
  "transfer_cache_free_bytes" : 5451808,
  "thread_cache_free_bytes" : 5583584,
  "aggressive_memory_decommit" : 0,

  "formattedString" : "------------------------------------------------\nMALLOC:        4007000 (    3.8 MiB) Bytes in use by application\nMALLOC: +        36864 (    0.0 MiB) Bytes in page heap freelist\nMALLOC: +      3283112 (    3.1 MiB) Bytes in central cache freelist\nMALLOC: +      5451808 (    5.2 MiB) Bytes in transfer cache freelist\nMALLOC: +      5583584 (    5.3 MiB) Bytes in thread cache freelists\nMALLOC: +      8577216 (    8.2 MiB) Bytes in malloc metadata\nMALLOC:   ------------\nMALLOC: =     26939584 (   25.7 MiB) Actual memory used (physical + swap)\nMALLOC: +   3090604032 ( 2947.4 MiB) Bytes>  }
  },
  "mem" : {
  "bits" : 64,
  "resident" : 174,
  "virtual" : 3426,
  "supported" : true
  },
  "metrics" : {
  "cursor" : {
  "timedOut" : NumberLong(380),
  "open" : {
  "multiTarget" : NumberLong(0),
  "singleTarget" : NumberLong(0),
  "pinned" : NumberLong(0),
  "total" : NumberLong(0)
  }
  },
  "commands" : {
  "" : NumberLong(1),
  "aggregate" : {
  "failed" : NumberLong(142),
  "total" : NumberLong(8980)
  },
  "authenticate" : {
  "failed" : NumberLong(12),
  "total" : NumberLong(12)
  },
  "buildInfo" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(635407)
  },
  "collStats" : {
  "failed" : NumberLong(65),
  "total" : NumberLong(6827)
  },
  "count" : {
  "failed" : NumberLong(388),
  "total" : NumberLong(491985789)
  },
  "create" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(10)
  },
  "createIndexes" : {
  "failed" : NumberLong(1),
  "total" : NumberLong(69)
  },
  "createUser" : {
  "failed" : NumberLong(6),
  "total" : NumberLong(10)
  },
  "currentOp" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(15)
  },
  "dbStats" : {
  "failed" : NumberLong(7),
  "total" : NumberLong(917)
  },
  "delete" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(705)
  },
  "distinct" : {
  "failed" : NumberLong(17),
  "total" : NumberLong(5105)
  },
  "drop" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(67)
  },
  "dropDatabase" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(7)
  },
  "dropIndexes" : {
  "failed" : NumberLong(7),
  "total" : NumberLong(23)
  },
  "enableSharding" : {
  "failed" : NumberLong(1),
  "total" : NumberLong(2)
  },
  "explain" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(13)
  },
  "find" : {
  "failed" : NumberLong(131),
  "total" : NumberLong(1764517)
  },
  "findAndModify" : {
  "failed" : NumberLong(1),
  "total" : NumberLong(772)
  },
  "getLastError" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(1989)
  },
  "getLog" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(2)
  },
  "getMore" : {
  "failed" : NumberLong(17),
  "total" : NumberLong(1791)
  },
  "getnonce" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(38)
  },
  "insert" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(207939962)
  },
  "isMaster" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(35391424)
  },
  "killCursors" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(79)
  },
  "listCollections" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(862)
  },
  "listDatabases" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(263)
  },
  "listIndexes" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(8)
  },
  "logout" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(8658)
  },
  "mapReduce" : {
  "failed" : NumberLong(24),
  "total" : NumberLong(64)
  },
  "ping" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(5980)
  },
  "profile" : {
  "failed" : NumberLong(4),
  "total" : NumberLong(4)
  },
  "renameCollection" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(2)
  },
  "repairDatabase" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(1)
  },
  "replSetGetStatus" : {
  "failed" : NumberLong(88870),
  "total" : NumberLong(88870)
  },
  "rolesInfo" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(491)
  },
  "saslContinue" : {
  "failed" : NumberLong(4),
  "total" : NumberLong(183362)
  },
  "saslStart" : {
  "failed" : NumberLong(8),
  "total" : NumberLong(91691)
  },
  "serverStatus" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(223111)
  },
  "shardCollection" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(3)
  },
  "update" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(552681439)
  },
  "usersInfo" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(493)
  },
  "whatsmyuri" : {
  "failed" : NumberLong(0),
  "total" : NumberLong(54513)
  }
  }
  },
  "ok" : 1
  }
  Bye


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-625822-1-1.html 上篇帖子: 基于Redis+MySQL+MongoDB存储架构应用 下篇帖子: MongoDB弹性伸缩能力提升100倍是如何做到的?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表