-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server, statistics: support dump history stats #10291
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10291 +/- ##
================================================
- Coverage 77.3234% 77.3089% -0.0146%
================================================
Files 412 412
Lines 85542 85571 +29
================================================
+ Hits 66144 66154 +10
- Misses 14383 14391 +8
- Partials 5015 5026 +11 |
/run-all-tests |
/rebuild |
20495fe
to
42d045d
Compare
server/statistics_handler.go
Outdated
store, ok := s.driver.(*TiDBDriver) | ||
if !ok { | ||
panic("Illegal driver") | ||
h.err = errors.New(fmt.Sprintf("illegal driver, excepted TiDBDriver, but got %T", s.driver)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors.Errorf()
ac928d3
to
a913b80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
support dump history statistics
What is changed and how it works?
Add a new http-api
tidb_ip/status_port/stats/dump/time_str
to fetch history statistics specified bytime_str
.e.g.
tidb_ip/status_port/stats/dump/20190428173900
will fetch the statistics in2019-04-28 17:39:00
.Check List
Tests
Code changes
Side effects
N/A
Related changes