A simple Grafana annotations plugin that works with any datasource.
MIT License
This repository is seeking a maintainer. The plugin also needs to be updated to React in accordance with Issue 2. Please cut an issue if you are interested and put forward a PR to show your willingness. Thank you.
Frustrated with using a datasource that doesn't support annotations?
This is a simple annotation plugin for Grafana that works with any Datasource!
It works by using the dashboard.json
itself as the store for annotations -- this means that you can easily backup / save / share your annotations.
"annotations": {
"list": [
{
"datasource": "${DS_SIMPLE_ANNOTATION}",
"enable": true,
"hide": false,
"iconColor": "rgba(255, 96, 96, 1)",
"limit": 100,
"name": "Deployments",
"queries": [
{
"date": "2017-09-03T19:56:36.000Z",
"text": "First Deployment"
},
{
"date": "2017-09-03T20:56:53.000Z",
"text": "Second Deployment"
},
{
"date": "2017-09-03T21:56:56.000Z",
"text": "Third Deployment"
}
],
"showIn": 0,
"type": "alert"
}
]
},
mkdir grafana
export GOPATH=`pwd`
go get github.com/grafana/grafana
cd $GOPATH/src/github.com/grafana/grafana
go run build.go setup
go run build.go build
npm install
npm install -g grunt-cli
grunt
mkdir -p data/plugins
ln -s ~/Development/simple-annotations data/plugins/simple-annotations
./bin/grafana-server