Merged
Conversation
Contributor
Author
|
/build |
53c1a87 to
1666b2c
Compare
Contributor
Author
|
/run-integration-tests |
ff74c62 to
3e34604
Compare
3e34604 to
ad0e8d3
Compare
Contributor
Author
|
/run-integration-tests |
ilovesoup
suggested changes
Jan 27, 2020
|
|
||
| auto pos = metricsAddr.find(':', 0); | ||
| auto host = metricsAddr.substr(0, pos); | ||
| auto port = metricsAddr.substr(pos + 1, metricsAddr.size()); |
Contributor
There was a problem hiding this comment.
Malformat on this crashes without useful information?
| if (metricsInterval > 0 && registry != nullptr) | ||
| break; | ||
|
|
||
| if (cond.wait_until(lock, get_next_time(5), [this] { return quit; })) |
Contributor
There was a problem hiding this comment.
Not sure if a Poco::Timer suits you better here? At least it is simpler.
https://pocoproject.org/docs/Poco.Util.Timer.html
|
|
||
| if (gateway != nullptr) | ||
| { | ||
| auto returnCode = gateway->Push(); |
Contributor
There was a problem hiding this comment.
returnCode Var name style?
8b645c2 to
be03297
Compare
Contributor
Author
|
/run-integration-tests |
be03297 to
a164c00
Compare
ilovesoup
reviewed
Jan 28, 2020
| metrics_interval = conf.getInt(status_metrics_interval, 15); | ||
| if (metrics_interval < 5 || metrics_interval > 120) | ||
| { | ||
| metrics_interval = 15; |
Contributor
There was a problem hiding this comment.
Usually capping should be to its closest number?
Contributor
There was a problem hiding this comment.
Also capping might should print a log.
60e5adb to
b2f3860
Compare
Contributor
Author
|
/build |
1 similar comment
Contributor
Author
|
/build |
Contributor
Author
|
/run-integration-tests |
2 similar comments
Contributor
Author
|
/run-integration-tests |
Contributor
Author
|
/run-integration-tests |
12 tasks
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what this PR does
prometheus-cppas a third-party librarysystem.metrics,system.eventsandsystem.asynchronous_metricstables to prometheuspullmode andpushmodepull mode
add the following config to enable pull mode
push mode
add the following config to enable pull mode
how to add new metrics
how to get tiflash metrics (pull mode)
http://127.0.0.1:8234/metrics
how to start prometheus
Grafana
http://127.0.0.1:3000/
Prometheus
http://127.0.0.1:9090/
Pushgateway
http://127.0.0.1:9091/
get tiflash metrics on Prometheus
get tiflash metrics on Grafana