当前位置:网站首页>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
边栏推荐
- 3 - 3 découverte de l'hôte - découverte à quatre niveaux
- The developer task center is online! Thousands of yuan of gifts!
- 防汛救援便携式应急通信系统解决方案
- 求职大厂被拒?腾讯高手总结了11条被拒的原因!
- C语言数组专题训练
- 暴力解决《猜名次》问题
- Qui vole dans un jeu d'écriture?
- Redis (I) -- getting started with redis (2) -- redis data type
- JS judge whether the array key name exists
- 誰在抖音文玩裏趁亂打劫?
猜你喜欢

【历史上的今天】6 月 29 日:SGI 和 MIPS 合并;微软收购 PowerPoint 开发商;新闻集团出售 Myspace

SQL Server Backup and restore command operations

数据基础设施升级窗口下,AI 新引擎的技术方法论

Deep learning --- the weight of the three good students' scores (2)

75.二叉搜索树额最近公共祖先

C语言数组专题训练

建立自己的网站(12)

After CDN is added to the website, the Font Icon reports an error access control allow origin

物理验证LVS流程和技术点滴(上)

深度好文 | YOLOv5+DeepSORT多目标跟踪深入解读与测试(含源码)
随机推荐
全局变量和静态变量的初始化
Game Maker 基金会呈献:归属之谷
正则表达式系列之手机号码正则
PHP 输出两个指定日期之间的所有日期
数据基础设施升级窗口下,AI 新引擎的技术方法论
Selenium的各类API方法
Cantata 9.5版本已正式通过SGS-TÜV认证,符合所有主要软件安全标准
Win11策略服务被禁用怎么办?Win11策略服务被禁用的解决方法
How to install and use computer SSD hard disk
福昕软件受邀亮相2022先进制造业数智发展论坛
UnrealEngine插件中使用protobuf 链接mysql
领先11%,华为云天筹AI求解器再度登顶国际权威榜单
深度好文 | YOLOv5+DeepSORT多目标跟踪深入解读与测试(含源码)
AI场景存储优化:云知声超算平台基于 JuiceFS 的存储实践
layer.prompt
Point, line, surface and body of enterprise digital transformation!
元素等待机制
With these four security testing tools, software security testing can be said so easy!
tp5 where查询数据库中的某个字段是否包含某个值,不用like的方法,模糊查询
出逃与进军,临期食品的「双面江湖」