当前位置:网站首页>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
边栏推荐
- 微信推出图片大爆炸功能;苹果自研 5G 芯片或已失败;微软解决导致 Edge 停止响应的 bug|极客头条
- 出逃与进军,临期食品的「双面江湖」
- PHP outputs all dates between two specified dates
- PHP Laravel 使用 aws 负载均衡器的 ip 错误问题
- Flutter 2.0 FocusScope.of(context).requestFocus(FocusNode()) 不生效的问题
- jfinal中如何使用过滤器监控Druid监听SQL执行?
- 聊聊eureka的delta配置
- 深度好文 | YOLOv5+DeepSORT多目标跟踪深入解读与测试(含源码)
- CAD Assistant - 3D模型格式转换利器
- 3-3 host discovery - layer 4 discovery
猜你喜欢

3-2主机发现-三层发现

sql server备份以及还原的命令操作

C语言数组专题训练

Product axure9 (English version), repeater implements addition, deletion, query and modification of table contents (crud)

4-2端口Banner信息获取

76.二叉树的最近公共祖先

4-2 port banner information acquisition

福昕软件受邀亮相2022先进制造业数智发展论坛

Element waiting mechanism

AI场景存储优化:云知声超算平台基于 JuiceFS 的存储实践
随机推荐
数据库是什么?数据库详细笔记!带你走进数据库~你想知道的这里都有!
出逃与进军,临期食品的「双面江湖」
【笔记】再笔记--边干边学Verilog HDL – 014
Deep learning --- the weight of the three good students' scores (2)
Solution of portable emergency communication system for flood control and rescue
1. use stm32cubemx to establish stm32g030c8t6 project
Win11 system component cannot be opened? Win11 system widget cannot be opened solution
做白银k线图有多重要?
Qui vole dans un jeu d'écriture?
2. add customized related files to the keil5 project established by stm32cubemx
建立自己的网站(12)
Win11安装权限在哪里设置?Win11安装权限设置的方法
QC protocol + Huawei fcp+ Samsung AFC fast charging 5v9v chip fs2601 application
Win11系统小组件打不开?Win11系统小组件无法打开解决方法
3-3主機發現-四層發現
逻辑结构与物理结构
Freeswitch dial extension
【Proteus仿真】矩阵键盘中断扫描
终于,进亚马逊了~
第三方工具与框架集成