当前位置:网站首页>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
边栏推荐
- DAO 中存在的不足和优化方案
- k线图经典图解(收藏版)
- Violent solution to the question of guessing the ranking
- unittest单元测试框架
- Have you mastered all the testing methods of technology to ensure quality and software testing?
- 创作者基金会 6 月份亮点
- 【️爬虫必备->Scrapy框架从黑铁到王者️】初篇——万字博文详解(建议收藏)
- Win11 system component cannot be opened? Win11 system widget cannot be opened solution
- 4-2端口Banner信息获取
- Element waiting mechanism
猜你喜欢

Win11 system component cannot be opened? Win11 system widget cannot be opened solution

七牛图片访问参数(缩略图小尺寸啥的,避免浪费流量)

Element waiting mechanism

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

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

Escape and March, the "two-sided Jianghu" of temporary food

程序员值得收藏的几款代码截图美化工具播

Deep learning --- the weight of the three good students' scores (2)
![[software testing] 01 -- software life cycle and software development model](/img/57/a4fcb40a33c80b0bcf2187d1943abd.jpg)
[software testing] 01 -- software life cycle and software development model

Several code screenshots beautification tools worth collecting by programmers
随机推荐
物理验证LVS流程和技术点滴(上)
76.二叉树的最近公共祖先
PHP 输出两个指定日期之间的所有日期
The sales volume could not catch up with the speed of taking money. Weima went to Hong Kong for emergency rescue
出逃与进军,临期食品的「双面江湖」
Advanced features of selenium webdriver
Exploration and practice of NLP problem modeling scheme
Arm comprehensive computing solution redefines visual experience and powerfully enables mobile games
The developer task center is online! Thousands of yuan of gifts!
1. use stm32cubemx to establish stm32g030c8t6 project
做白银k线图有多重要?
Lingyun going to sea | Wenhua online &huawei cloud: creating a new solution for smart teaching in Africa
数据库是什么?数据库详细笔记!带你走进数据库~你想知道的这里都有!
第三方工具与框架集成
第三方工具與框架集成
isalpha()方法介绍
3-3主機發現-四層發現
sql server备份以及还原的命令操作
开发者任务中心上线!千元豪礼送不停!
Flutter 调用百度地图APP实现位置搜索、路线规划