Sentinel provides a simple stand-alone dashboard, on which you can monitor your applications, and configure the rules in real time. It includes the following features:
You can download the latest Sentinel Dashboard jar from the release page.
You can also build from code:
dashboard/en
branch to build English version);mvn clean package
;Use the following command to start the dashboard:
java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard.jar
-Dserver.port=8080
is the HTTP port of the Sentinel Dashboard.Perform the following 2 steps to connect your application to the dashboard.
If your project is a Maven project, add the following dependency in your pom.xml
. Otherwise, please download it from Maven.
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-transport-simple-http</artifactId>
<version>x.y.z</version>
</dependency>
Add dashboard IP address when starting the application: -Dcsp.sentinel.dashboard.server=consoleIp:port
.
In addition to JVM parameters, you can also do this by configuring property files. For more details, see Configuration.
After the above steps are completed, if any resource is called, your application will start to send its heartbeat to the dashboard. You can check the following information on the dashboard:
Machine List page:
Note: Resources displayed in "Resource Chain" are stored in memory.
Note: "Monitoring" will only record metrics in 5 minutes. If you need to persist these data, please refer to Metrics.
If any information is missed please check your configuration and troubleshoot via record.log
and metricStat.log.pid<Pid No>.<Date>
. For details please refer to logs.
Sentinel Dashboard provides rules management as well.
Rule page in Sentinel Dashboard:
You can also query rules on the dashboard via HTTP commands exposed by client site. For details please refer to HTTP API for rules.
You can add or edit rules in rule pages.
You can also modify rules on the dashboard in real-time via HTTP API for rules.
Note: All these rules are stored in memory by default.
We recommend you to use dynamic rule configuration to customize your own rule configuration logic.