-
Notifications
You must be signed in to change notification settings - Fork 875
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
Added metrics to display the last 10 slow log commands name , command duration and the execution time #807
Conversation
Thanks for the PR, I'll try to get to reviewing it soon! |
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.
Thanks for the PR!
This can be a useful feature but should be behind a command-line option that's off by default. Putting the commands in a label can 1) drastically blow up the cardinality of metrics (why the timestamp? I don't think that's a good idea) and 2) can be undesired from a privacy/security perspective.
Also, this needs some tests (see slowlog_test.go for inspiration)
Please find the response to your quries
Also , i am aware that slow log contents itself seems not really suitable for exporting. but some clients are having usecase for that . Example: #67 . It will be very helpful in the case where we want to observe the redis cpu spike and the slowlog details in the same place.
|
Added slowlog-history-enabled option to make slowslog history metrics as a optional
That's different though. Those commands only record the general command like The tests are failing on go formatting - can you run |
I thought about this a bit more and I came to the conclusion this doesn't belong in the exporter, this belongs into a log collection system (loki or whatever you use for logs). |
Bad. This is good feature :( |
No description provided.