Skip to content

mangqin-hy/aliyun-log-grafana-datasource-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun log service Datasource

More documentation about datasource plugins can be found in the Docs.

Install

clone this project into grafana plugin directory , then restart grafana

in mac the plugin directory is /usr/local/var/lib/grafana/plugins

after install the plugin ,restart grafana

brew services start grafana

Add datasource

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 dashboard

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,count(1)/2 as c1, __time__- __time__%60  as t  group by t limit 10000

the X column ,insert t the Y column , insert c,c1

save the dashboard

Contributors

@WPH95 made a great contribution to this project.

Thanks for the excellent work by @WPH95.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.1%
  • HTML 29.8%
  • CSS 0.1%