【问题标题】:MongoDB performance monitoring in Grafana?Grafana中的MongoDB性能监控?
【发布时间】:2021-09-25 10:22:01
【问题描述】:

你能在 Grafana 中监控 MongoDB 的性能吗?

我知道有这个插件https://grafana.com/grafana/plugins/grafana-mongodb-datasource/ 有助于“可视化数据”...但我想知道是否有办法在 JMeter 负载测试期间监控 MongoDB 性能,例如连接数或测试期间写入/删除的行数? Grafana 中的可视化会很好,但我很乐意从在某处看到输出开始......

【问题讨论】:

    标签: mongodb performance jmeter grafana


    【解决方案1】:

    您可以尝试按照本文查询 MongoDB。 https://www.blazemeter.com/blog/how-load-test-mongodb-jmeter

    对于监控连接,您可以根据此线程中的详细信息尝试db.serverStatus().connections 之类的方法; Check the current number of connections to MongoDb

    对于其他查询,您可以在此处阅读文档: https://docs.mongodb.com/manual/reference/method/db.collection.count/#mongodb-method-db.collection.count

    至于在 Grafana 中进行可视化,我只使用该应用程序来监控响应时间信息、平均值、第 95 次等...不确定如何显示计数和查询。

    您可以使用log.info() 将其输出到 jmeter.log 文件,以便记录结果...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-16
      • 2021-06-13
      • 2019-12-16
      • 1970-01-01
      • 2020-04-12
      相关资源
      最近更新 更多