当前位置:网站首页>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管理面板中。
边栏推荐
- Save and load numpy matrices and vectors, and use the saved vectors for similarity calculation
- 为什么 wireguard-go 高尚而 boringtun 孬种
- endnote引用
- Shang Silicon Valley-JVM-Memory and Garbage Collection (P1~P203)
- 【Pytorch】torch.argmax()用法
- 百度网盘安装在c盘显示系统权限限制的解决方法
- jOOQ 3.14 released - SQL/XML and SQL/JSON support
- Uniapp WeChat small application reference standard components
- Shell script classic case: backup of files
- CodeIgniter 打开错误日志
猜你喜欢
AI cocoa AI frontier introduction (7.31)
为什么要分库分表?
hyperf的启动源码分析(二)——请求如何到达控制器
ICML2022 | Fully Granular Self-Semantic Propagation for Self-Supervised Graph Representation Learning
技能大赛训练题:交换机的远程管理
C# using ComboBox control
Comparison of Optical Motion Capture and UWB Positioning Technology in Multi-agent Cooperative Control Research
推荐系统-召回阶段-2013:DSSM(双塔模型)【Embedding(语义向量)召回】【微软】
尚硅谷-JVM-内存和垃圾回收篇(P1~P203)
Node version switching management using NVM
随机推荐
技能大赛训练题:域用户和组织单元的创建
The latest complete code: Incremental training using the word2vec pre-training model (two loading methods corresponding to two saving methods) applicable to various versions of gensim
Miller_Rabin Miller Rabin probability sieve [template]
Linux bash: redis-server: 未找到命令
OAuth2:微服务权限校验Session共享
endnote引用
Shell script classic case: backup of files
Redis与分布式:哨兵模式
C# List Usage List Introduction
[Pytorch] torch.argmax() usage
Text similarity calculation (Chinese and English) detailed explanation of actual combat
In the future, the interviewer asks you why it is not recommended to use Select *, please answer him out loud!
jOOQ 3.14 released - SQL/XML and SQL/JSON support
以后面试官问你 为啥不建议使用Select *,请你大声回答他!
BigDecimal 简介,常用方法
csdn发文助手问题
Redis与分布式:集群搭建
redhat/openssl generates a self-signed ca certificate and uses it
Save and load numpy matrices and vectors, and use the saved vectors for similarity calculation
An article makes it clear!What is the difference and connection between database and data warehouse?