ryantxu / ajax-panel

Ajax Panel Plugin for Grafana
MIT License
156 stars 154 forks source link

Usage for datasource option #8

Open h7kanna opened 6 years ago

h7kanna commented 6 years ago

Hi, very useful plugin. I am trying to figure out what is the use of datasource option for authentication. Can you provide any usage examples?

Thanks,

ryantxu commented 6 years ago

What datasource are you trying to connect to? The datasource option really just makes requests to the same base path as regular datasource requests, but gives you the response directly.

h7kanna commented 6 years ago

@ryantxu Hi, I figured out the usage. But thought if the list of examples has one with default 'testdata' datasource as an example. I can create a PR to add one.

Thanks for this plugin.

ryantxu commented 6 years ago

yes -- can you make a PR with example usage? As you can see there are LOTS of options!