当前位置:网站首页>Alibaba data source Druid visual monitoring configuration
Alibaba data source Druid visual monitoring configuration
2022-07-06 19:40:00 【Wandering hunter】
1、 Introduce dependent jar file gav
1-1、druid Visual monitoring service start
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.11</version>
</dependency>
1-2、 data source druid rely on jar file gav introduce
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.4</version>
<scope>compile</scope>
</dependency>
1-3、 Configuration file attribute configuration
spring:
datasource:
druid:
web-stat-filter:
exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico'
enabled: true
stat-view-servlet:
url-pattern: /druid/* # Allow implicit access addresses
login-username: admin # Customize druid User name of visual interface
login-password: ******* # Customize druid Visual interface password
enabled: true # Open or not druid Visual monitoring
allow: localhost # Allow yourself access druid( visit druid Prompt on the back page Sorry, you are not permitted to view this page Configuring this property can solve )
max-active: 20
initial-size: 5
min-idle: 3
max-wait: 3000
time-between-eviction-runs-millis: 100000
filters: stat #druid But chemical monitoring stat: Monitoring statistics 、log4j: logging 、wall: defense sql Inject (SQL Monitoring required )
driver-class-name: com.mysql.cj.jdbc.Driver # Connect to the database driver
type: com.alibaba.druid.pool.DruidDataSource # Indicate the data source type ( The default is com.zaxxer.hikari.HikariDataSource)
边栏推荐
- 凤凰架构2——访问远程服务
- [infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
- Sanmian ant financial successfully got the offer, and has experience in Android development agency recruitment and interview
- MySql必知必会学习
- How to do smoke test
- MATLAB中deg2rad和rad2deg函数的使用
- In depth analysis, Android interview real problem analysis is popular all over the network
- Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
- Spark foundation -scala
- Mysql Information Schema 学习(二)--Innodb表
猜你喜欢
【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
Leetcode 30. Concatenate substrings of all words
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
Mysql Information Schema 学习(一)--通用表
Blue Bridge Cup microbial proliferation C language
Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
打家劫舍III[后序遍历与回溯+动态规划]
zabbix 代理服务器 与 zabbix-snmp 监控
Using clip path to draw irregular graphics
A popular explanation will help you get started
随机推荐
今日直播 | “人玑协同 未来已来”2022弘玑生态伙伴大会蓄势待发
反射及在运用过程中出现的IllegalAccessException异常
Druid 数据库连接池 详解
Mysql Information Schema 学习(二)--Innodb表
Zero foundation entry polardb-x: build a highly available system and link the big data screen
ZABBIX proxy server and ZABBIX SNMP monitoring
Problems encountered in using RT thread component fish
JDBC详解
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
Tensorflow2.0 自定义训练的方式求解函数系数
121. 买卖股票的最佳时机
The slave i/o thread stops because master and slave have equal MySQL serv
How to do smoke test
C language daily practice - day 22: Zero foundation learning dynamic planning
Blue Bridge Cup microbial proliferation C language
MySQL information schema learning (II) -- InnoDB table
How can my Haskell program or library find its version number- How can my Haskell program or library find its version number?
Translation D28 (with AC code POJ 26:the nearest number)
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
零基础入门PolarDB-X:搭建高可用系统并联动数据大屏