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

How to use redis datasource to collect a lot of redis #47

Closed
wangxin0529 opened this issue Aug 20, 2020 · 7 comments · Fixed by #49
Closed

How to use redis datasource to collect a lot of redis #47

wangxin0529 opened this issue Aug 20, 2020 · 7 comments · Fixed by #49
Assignees
Labels
question Further information is requested
Milestone

Comments

@wangxin0529
Copy link

wangxin0529 commented Aug 20, 2020

I have many redis.
How to collect these redis?
Do I have to add multiple data sources?
image
one by one?

@alex6058
Copy link

Hello @wangxin0529

Yes, you need to add an instance of Datasource for each Redis database you're using. After that, you can use multiple data sources in one dashboard and even in one panel in multiple query mode. Please also note, Grafana template variables support Datasource type, so you can automatically repeat panels and rows for all databases, which you defined.

Thank you

@mikhail-vl mikhail-vl added the question Further information is requested label Aug 20, 2020
@mikhail-vl mikhail-vl self-assigned this Aug 20, 2020
@mikhail-vl
Copy link
Contributor

@wangxin0529 you can add Data sources manually as @alex6058 explained or use Data source API to automate: https://grafana.com/docs/grafana/latest/http_api/data_source/

Please let us know if you have any questions.

@wangxin0529
Copy link
Author

wangxin0529 commented Aug 21, 2020

you can use multiple data sources in one dashboard and even in one panel in multiple query mode.

How to do this?
image
I add a template variables to import datasource,but dashboard is empty
image
@mikhailredis

@wangxin0529
Copy link
Author

OH, I get it, THANK YOU!

@mikhail-vl
Copy link
Contributor

mikhail-vl commented Aug 21, 2020

@wangxin0529, Unfortunately, this is a limitation of Grafana 7. We can't export the dashboard which supports multiple data sources and share it within datasource.

I have added a dashboard which supports multiple Redis instances and uploaded to repository: https://github.com/RedisTimeSeries/grafana-redis-datasource/blob/master/dashboards/redis.json

Do you want to try and let me know if it works for you?

@mikhail-vl mikhail-vl reopened this Aug 21, 2020
@mikhail-vl mikhail-vl added this to the Version 1.2 milestone Aug 21, 2020
@mikhail-vl
Copy link
Contributor

@wangxin0529 Please let me know if you had a chance to try multiple datasource dashboard or have any questions.

@wangxin0529
Copy link
Author

@mikhailredis I use multiple data sources in one dashboard ,and define a variable named server like this
image

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

Successfully merging a pull request may close this issue.

3 participants