0. 前言
  最近已经开始研发物联网V2版本了。决定使用BladeX作为基础的Web管理界面。然后结合EMQ、Kafka等第三方开源中间件实现平台。接下来几个章节都是讲物联网V2版本的一些基础设施。


1. 安装Nacos+Promethes+grafana
  官方Nacos文档里面提供的docker-compose.yaml

1 git clone https://github.com/nacos-group/nacos-docker.git
2 cd nacos-docker/example/
3 cp standalone-derby.yaml docker-compose.yaml
4 docker-compose up -d

  注意修改PREFER_HOST_MODE 为外网IP
物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控


2. 各个中间件界面
  Nacos
  默认密码 nacos/nacos
物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控
  Prometheus
  无登录帐号密码
物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控

物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控
  Grafana
  默认密码 admin/admin
物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控

 

3. 配置监控数据源
  由于我是使用docker-compose作为开发测试环境,所以这里的URL直接配置成 http://prometheus:9000 即可。还有一个要注意这里创建的数据源最好命名为prometheus,因为后面的Grafana面板导入JSON的时候,默认就是指向这个DataSources.
物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控


4. 配置监控面板
  从这里下载Grafana监控面板。

1 https://github.com/nacos-group/nacos-template/blob/master/nacos-grafana.json
2 https://github.com/nacos-group/nacos-template/blob/master/nacos-sync-grafana

物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控

 

物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控

 

参考资料:
  https://nacos.io/zh-cn/docs/monitor-guide.html

本文地址:https://www.cnblogs.com/wunaozai/p/12393242.html
本系列目录: https://www.cnblogs.com/wunaozai/p/8067577.html
个人主页:https://www.wunaozai.com/

物联网架构成长之路(52)-基于Nacos+prometheus+grafana的监控

相关文章:

  • 2021-07-03
  • 2021-11-16
  • 2022-01-10
  • 2022-01-15
  • 2021-12-06
  • 2021-12-05
  • 2021-08-02
猜你喜欢
  • 2021-06-12
  • 2021-09-09
  • 2021-12-25
  • 2021-06-29
  • 2021-10-21
  • 2021-12-24
  • 2022-01-06
相关资源
相似解决方案