添加 emqx(MQTT)监控

官方文档:
https://www.emqx.com/zh/blog/emqx-prometheus-grafana
https://docs.emqx.com/zh/emqx/v5.1/observability/prometheus.html
控制台页面:

file

查看监控:

file

查看metrics:

curl 127.0.0.1:18083/api/v5/prometheus/stats

file

修改prometheus配置文件,添加job:

- job_name: 'emqx'
  scrape_interval: 30s
  metrics_path: /api/v5/prometheus/stats
  honor_labels: true
  static_configs:
    - targets: ['1.2.3.4:18083', '1.2.3.5:18083', '1.2.3.6:18083']
      labels:
        group: 'emqx'

查看target,如果端口不通,要修改emqx服务器的安全组。

file

添加grafana面板:https://grafana.com/grafana/dashboards/17446-emqx/

file

0 0 投票数
文章评分
订阅评论
提醒
guest

0 评论
最旧
最新 最多投票
内联反馈
查看所有评论

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部
0
希望看到您的想法,请您发表评论x