grafana/examples/datasource-plugin-genericdatasource
2016-03-04 13:11:05 +01:00
..
src docs(datasource): add request objects to docs 2016-03-04 08:45:46 +01:00
.jscs.json feat(examples): add datasource plugin example 2016-03-02 10:43:41 +01:00
.jshintrc feat(examples): add datasource plugin example 2016-03-02 10:43:41 +01:00
Gruntfile.js feat(examples): add datasource plugin example 2016-03-02 10:43:41 +01:00
package.json feat(examples): add datasource plugin example 2016-03-02 10:43:41 +01:00
plugin.json docs(plugins): update readme to link to docs 2016-03-04 13:11:05 +01:00
README.md docs(plugins): update readme to link to docs 2016-03-04 13:11:05 +01:00

#Generic backend datasource#

More documentation about datasource plugins can be found in the Docs

Your backend need implement 4 urls

  • "/" Should return 200 ok. Used for "Test connection" on the datasource config page.
  • "/search" Used by the find metric options on the query tab in panels
  • "/query" Should return metrics based on input
  • "/annotations" should return annotations

Example backend implementation

https://gist.github.com/bergquist/bc4aa5baface3cffa109