当前位置:网站首页>Sentinel安装与部署
Sentinel安装与部署
2022-07-31 14:05:00 【Leon_Jinhai_Sun】
和Nacos一样,它是独立安装和部署的,下载地址:Releases · alibaba/Sentinel · GitHub
注意下载下来之后是一个jar文件(其实就是个SpringBoot项目),我们需要在IDEA中添加一些运行配置:

接着就可以直接启动啦,当然默认端口占用8080,如果需要修改,可以添加环境变量:

启动之后,就可以访问到Sentinel的监控页面了,用户名和密码都是sentinel,地址:http://localhost:8858/#/dashboard

这样就成功开启监控页面了,接着我们需要让我们的服务连接到Sentinel控制台,老规矩,导入依赖:
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>然后在配置文件中添加Sentinel相关信息(实际上Sentinel是本地在进行管理,但是我们可以连接到监控页面,这样就可以图形化操作了):
spring:
application:
name: userservice
cloud:
nacos:
discovery:
server-addr: localhost:8848
sentinel:
transport:
# 添加监控页面地址即可
dashboard: localhost:8858现在启动我们的服务,然后访问一次服务,这样Sentinel中就会存在信息了(懒加载机制,不会一上来就加载):

现在我们就可以在Sentinel控制台中对我们的服务运行情况进行实时监控了,可以看到监控的内容非常的多,包括时间点、QPS(每秒查询率)、响应时间等数据。
按照上面的方式,我们将所有的服务全部连接到Sentinel管理面板中。
边栏推荐
- 拥塞控制,CDN,端到端
- Detailed guide to compare two tables using natural full join in SQL
- The magic of SQL MERGE statement (detailed instructions)
- 新款现代帕里斯帝预售开启,安全、舒适一个不落
- MySQL 23道经典面试吊打面试官
- 【Pytorch】torch.argmax()用法
- Shell script classic case: detecting whether a batch of hosts is alive
- The recently popular domestic interface artifact Apipost experience
- 1-hour live broadcast recruitment order: industry leaders share dry goods, and enterprise registration is open丨qubit · point of view
- 技能大赛训练题:交换机的远程管理
猜你喜欢

五个维度着手MySQL的优化

3.爬虫之Scrapy框架1安装与使用

Analysis of the startup source code of hyperf (2) - how the request reaches the controller

Redis 】 【 publish and subscribe message

MySQL has played to such a degree, no wonder the big manufacturers are rushing to ask for it!

Redis与分布式:主从复制

技能大赛训练题:交换机的远程管理

1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点

百度网盘安装在c盘显示系统权限限制的解决方法

纸质说明书秒变3D动画,斯坦福大学吴佳俊最新研究,入选ECCV 2022
随机推荐
[QNX Hypervisor 2.2 User Manual] 9.13 rom
20.nn.Module
Asynchronous processing business using CompletableFuture
ECCV 2022 | Robotic Interaction Perception and Object Manipulation
Buffer 与 拥塞控制
Open Inventor 10.12 Major Improvements - Harmony Edition
AI cocoa AI frontier introduction (7.31)
Shell script classic case: detecting whether a batch of hosts is alive
为什么 wireguard-go 高尚而 boringtun 孬种
[Blue Bridge Cup Trial Question 46] Scratch Magnet Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation
OAuth2:单点登陆客户端
BigDecimal 简介,常用方法
Controller层代码这么写,简洁又优雅!
C# control ToolStripProgressBar usage
49. The copy constructor and overloaded 】
Usage of += in C#
ML、DL、CV常见的问题整理
小试牛刀:Go 反射帮我把 Excel 转成 Struct
leetcode: 485. Maximum number of consecutive 1s
[QNX Hypervisor 2.2用户手册]9.14 safety