当前位置:网站首页>MSYQL, redis, mongodb visual monitoring tool grafana
MSYQL, redis, mongodb visual monitoring tool grafana
2022-06-29 19:16:00 【Forpastime】
be based on docker install mysql、redis Visual monitoring tools
One 、 install Grafana
download Grafana Of Docker Mirror image
[[email protected] ~]# docker pull grafana/grafana
Start the container
[[email protected] docker]# docker run -p 3000:3000 --name grafana -d grafana/grafana
6a0540849952c4cf0a1d4012ed25410e80d3e14b0bf67108aea95dbc7b7bba9c
Two 、 install prom
[[email protected] ~]# docker pull prom/prometheus
[[email protected] ~]# cd /docker/
[[email protected] docker]# mkdir prometheus
[[email protected] docker]# cd prometheus/
[[email protected] prometheus]# vim prometheus.yml
1. stay /docker/prometheus Under the new prometheus.yml The configuration file , Add the following
global:
scrape_interval: 5s
2. Start the container , Put the configuration file in the host prometheus.yml Mount in container ;
[[email protected] prometheus]# docker run -p 3001:3001 --name prometheus -v /docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml -d prom/prometheus
e35ede0a51c4cd85c0ce5f554b44e7f9da11ff9b978443e5f0a33c8c990861f3
[[email protected] prometheus]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e35ede0a51c4 prom/prometheus "/bin/prometheus --c…" 2 seconds ago Up 2 seconds 0.0.0.0:3001->3001/tcp, :::3001->3001/tcp, 9090/tcp prometheus
6a0540849952 grafana/grafana "/run.sh" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp grafana
3、 ... and 、 stay grafana install redis-datasource plug-in unit
1. Into the container grafana
[[email protected] prometheus]# docker exec -it grafana bash
bash-5.1$ grafana-cli plugins install redis-datasource
Downloaded redis-datasource v2.1.1 zip successfully
Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.
bash-5.1$ exit
exit
2. restart grafana
[[email protected] prometheus]# docker restart grafana
grafana
Four 、 Login visual interface
1. Browser access :http://192.168.2.252:3000/
Default password admin:admin
Change the original password after login
2. New data sources
You can add various databases , Remember address Fill in ip+ port
Click below after configuration 【save&test】
3.mysql Click on the following 【Explore】, Can be done mysql Related queries
4.redis Click on the top 【Dashboards】, Click again redis After the column corresponding to “import”, You can view relevant data charts
边栏推荐
- 细说GaussDB(DWS)复杂多样的资源负载管理手段
- 76. nearest common ancestor of binary tree
- STM32CubeMX 学习(6)外部中断实验
- swift可选值总结
- 网站加了CDN后,字体图标报错Access-Control-Allow-Origin
- startService() 过程
- 细说GaussDB(DWS)复杂多样的资源负载管理手段
- TP5 where queries whether a field in the database contains a value. Fuzzy queries are performed without the like method
- 物理验证LVS流程和技术点滴(上)
- 技术保证质量,软件测试的这些测试方法你都掌握了吗?
猜你喜欢

Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!

Game Maker 基金会呈献:归属之谷

Selenium的各类API方法

Various API methods of selenium

unittest单元测试框架

C语言数组专题训练

Exploration and practice of NLP problem modeling scheme

高能直播,大咖云集!邀你共启BizDevOps探索之路。

tp5 where查询数据库中的某个字段是否包含某个值,不用like的方法,模糊查询

网站加了CDN后,字体图标报错Access-Control-Allow-Origin
随机推荐
sql server备份以及还原的命令操作
Sophomore majoring in software engineering, the previous learning situation is not very good. How to plan the follow-up development route
软件工程专业大二,之前的学习情况不太好该怎么规划后续发展路线
3-2主机发现-三层发现
Exploration and practice of NLP problem modeling scheme
开发者任务中心上线!千元豪礼送不停!
75. nearest common ancestor of binary search tree
C语言数组专题训练
揭秘!付费会员制下的那些小心机!
2. add customized related files to the keil5 project established by stm32cubemx
SQL Server Backup and restore command operations
Flutter 调用百度地图APP实现位置搜索、路线规划
Fastdfs
Wechat launched the picture big bang function; Apple's self-developed 5g chip may have failed; Microsoft solves the bug that causes edge to stop responding | geek headlines
TP5 where queries whether a field in the database contains a value. Fuzzy queries are performed without the like method
Product axure9 (English version), repeater implements addition, deletion, query and modification of table contents (crud)
【软件测试】01 -- 软件生命周期、软件开发模型
产品-Axure9(英文版),中继器(Repeater)实现表格内容的增删查改(CRUD)
Page object and data driven test
微信推出图片大爆炸功能;苹果自研 5G 芯片或已失败;微软解决导致 Edge 停止响应的 bug|极客头条