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

redis slow log metrics #67

Closed
Colstuwjx opened this issue May 14, 2017 · 6 comments
Closed

redis slow log metrics #67

Colstuwjx opened this issue May 14, 2017 · 6 comments

Comments

@Colstuwjx
Copy link

Colstuwjx commented May 14, 2017

As redis has slow log metrics to show the slowest CMD, we should export these to prom. Thus, grafana could show the topK slow CMD, and makes redis ops feel happy.

@oliver006
Copy link
Owner

@Colstuwjx - what do you think would be useful to export for the slow log?

I could see the number of slow log entries being useful (e.g. export SLOWLOG LEN) but the slow log contents itself seems not really suitable for exporting.

Thoughts?

@Colstuwjx
Copy link
Author

Yes, I agree that. Instead collecting the detail slow log CMD as "metrics" into prometheus, I'd like to scrape them into Elastic.

Thanks a lot for your reply.

@mazzy89
Copy link

mazzy89 commented Sep 16, 2019

i'd need a slow queries view in Grafana maybe showing the last 10 slow query. My idea would be to have a metric that would look like this:

redis_slowlog_info{command='', id='', time=''} <execution_duration>

where the values are the result of the SLOWLOG query properly parsed.

wouldn't be hard to add this to the exporter. What do you think @oliver006 ? I'd prepare a PR for today

@oliver006
Copy link
Owner

I think that's something for log collection, not for metrics and therefor out of scope for the exporter.

@siwyd
Copy link

siwyd commented Mar 13, 2020

FYI, you can use Filebeat to export slow logs: https://www.elastic.co/blog/brewing-in-beats-read-redis-slow-logs-with-filebeat

@madhur
Copy link

madhur commented Dec 4, 2021

I think slow queries logs are really needed to be exported for prometheus. Atleast the top 10

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

5 participants