Skip to content
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

Implement metrics logging from Hikari #48

Open
xxgreg opened this issue Nov 11, 2014 · 5 comments
Open

Implement metrics logging from Hikari #48

xxgreg opened this issue Nov 11, 2014 · 5 comments

Comments

@xxgreg
Copy link
Owner

xxgreg commented Nov 11, 2014

https://github.com/brettwooldridge/HikariCP/wiki/Codahale-Metrics

@xxgreg
Copy link
Owner Author

xxgreg commented Nov 11, 2014

@xxgreg
Copy link
Owner Author

xxgreg commented Nov 11, 2014

@pisabev
Copy link
Contributor

pisabev commented Nov 11, 2014

If I get it clear we have this "MetricRegistry" and everything is logged there(nothing to the console), and we fetch it on demand ?

@xxgreg
Copy link
Owner Author

xxgreg commented Nov 11, 2014

Not sure yet. This is ticket is a note to self for me to do some research.

Perhaps I will do something like this:

Adding this to pool:

 Stream<Metric> metrics;

class Metric {
  String name;
  num value;
  DateTime time;
}

Another library can then be used to push these metrics into collectd, graphite or observatory. Standard system monitory tools can then be used to view realtime graphs, and set up alert emails/sms if connection times reach some threshold.

@xxgreg
Copy link
Owner Author

xxgreg commented Dec 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants