简体   繁体   中英

Grafana for user authenticated data visualization

I've used Grafana many times before to show dashboard data to a Sysadmin. I like Grafana because it is very easy to use and shows nice looking graphs by default.

However, now I want to create a user facing screen which shows a specific user's data based on a user login. This means that the query result should be authenticated, and shown only to that specific user. For example: The balance in a bank account over time.

Unlike a system dashboard which has access to everything, a specific user can only see their specific stats.

Is there any way I can use a shared Grafana instance to display this kind of personal data?

Is there another tool that can do this?

Or do I need to go with a low level approach like: Google Charts coupled with my own backend service to handle the queries?

Generally: it depends on used datasource and implementation. Some Grafana datasources support Forward OAuth Identity feature:

Forward the user's upstream OAuth identity to the datasource (Their access token gets passed along).

在此处输入图片说明

So datasource may use this forwarded user identity to build proper customized response. It is OAuth access token, so identity can be verified and faked identity can be denied.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM