bergquist d86cb92a94 docs(plugins): update readme to link to docs 9 سال پیش
..
src c21a210198 docs(datasource): add request objects to docs 9 سال پیش
.jscs.json 3435df8b9c feat(examples): add datasource plugin example 9 سال پیش
.jshintrc 3435df8b9c feat(examples): add datasource plugin example 9 سال پیش
Gruntfile.js 3435df8b9c feat(examples): add datasource plugin example 9 سال پیش
README.md d86cb92a94 docs(plugins): update readme to link to docs 9 سال پیش
package.json 3435df8b9c feat(examples): add datasource plugin example 9 سال پیش
plugin.json d86cb92a94 docs(plugins): update readme to link to docs 9 سال پیش

README.md

#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