Skip to content

wph95/aliyun-log-grafana-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

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, __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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published