More documentation about datasource plugins can be found in the Docs.
clone this project into grafana plugin directory , then restart grafana
in datasource management panel, add a datasource with the type "LogService"
in Http settings, set Url = http://${Project}.${log_service_endpoint} . e.g. Your projectName is accesslog in qingdao region, then the url is http://accesslog.cn-qingdao.log.aliyuncs.com
Access : select "proxy"
log service details:
set Project and logstore
AccessId and AccessKey : it is better to use a sub user accessId and accessKey
Add a panel, in the datasource option, choose the log service datasource that is just created.
in the query : insert your query , e.g.
*|select count(1) as c, __time__- __time__%60 as t group by __time__- __time__%60 limit 10000
the X column ,insert t the Y column , insert c
save the dashboard