Commit Graph

17 Commits

Author SHA1 Message Date
Forever杨 f4d1ac91cc Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard (#353)
- the wrong `isEmpty` check causes the rule cannot be deleted
2018-12-28 15:16:21 +08:00
leitao 8d5834d2d3 Translate some javadoc to English in MetricFetcher (#338) 2018-12-26 16:13:05 +08:00
Eric Zhao 8961927a12 Add dashboard logic for Sentinel cluster flow control
- Update SentinelApiClient to support new-added command APIs
- Add controller for cluster config
- Add flow controller v2 for global rule pulling / pushing
- Extract dynamic rule provider and publisher interface for customized extensions
- Add basic cluster config service
- Add basic Nacos integration (in test as an example)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 14:33:57 +08:00
Eric Zhao 257dde1d5e Some improvements for Sentinel dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-08 17:11:54 +08:00
Eric Zhao 3b6095899a Some improvements on Sentinel Dashboard
- Fixes #231: when resource name is too long in resource page, the name will jump out and cover other layout
- Hide `origin` input view in degrade rule dialog
- Refine style and color of buttons in dialogs
- Add support for exception count in degrade rule
- Other improvements

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-05 14:50:16 +08:00
xcaspar ef96b15f22 Improve log info and condition about fetching metrics (#219)
- Receiving "No metrics" response won't cause error log
- Improve log about fetching metrics
2018-11-01 14:16:11 +08:00
Eric Zhao eace8ab2ff Add support for adding param rule / authority rule in resource page of dashboard
- Decouple rule checking from controller (now in service)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 14:52:14 +08:00
Carpenter Lee bd0de9464c Avoid ConcurrentModificationException when getting machine map in AppInfo (#205)
- Avoid ConcurrentModificationException when `getMachines()` by deep clone the machine map
- Enhance the code to avoid potential ConcurrentModificationException
- Add test cases
2018-10-29 20:19:29 +08:00
Eric Zhao 0855809149
Add support for authority rule configuration in Sentinel Dashboard (#189)
- Update dashboard API client to support authority rule commands
- Add REST API and frontend page for authority rules

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-23 09:20:17 +08:00
Carpenter Lee aaf88b8a0a Rename ParamFlowRule.blockGrade to grade 2018-10-16 20:34:40 +08:00
Eric Zhao b06bb02b2c
Add rule configuration support for parameter flow control in Sentinel Dashboard (#176)
- Update dashboard API client to support authority and parameter flow commands
- Add REST API controller for parameter flow rules in dashboard
- Add pages for configuring parameter flow rules
- Update dependencies: upgrade Spring Boot to 2.x and remove unused dependencies
- Other refinements

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-12 16:15:13 +08:00
李豪 03922dbf6c
Enhancement/normalize metric field (#170)
normalize metric fields and methods:
- rename exception to exceptionQps;
- remove ed postfix of all fields and methods about metrics;
2018-10-11 09:28:43 +08:00
Eric Zhao 9e012d2e20 Refactor version representation and add client version to heartbeat
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-25 16:52:28 +08:00
Eric Zhao 02cf5e5639
Add MetricsRepository interface and reuse original in-memory implementation (#126)
- Abstract a universal `MetricsRepository` interface so that users can implement their own metrics persistence.
- Reuse original in-memory implementation (`InMemoryMetricsRepository`) as the default repository.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-06 18:59:31 +08:00
Eric Zhao 9a27f395e6 Some structure refactor for Sentinel Dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 19:09:19 +08:00
Eric Zhao 47d9070a4a
Fixes #9: Use named thread factory for identification (#10)
* Use named thread factory with all thread pools for identification

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-07-30 18:10:56 +08:00
Eric Zhao c92fea5d46 Welcome to the world, Sentinel 2018-07-27 16:34:30 +08:00