grafana-annotation: Post graphite annotation to grafana
go get -d "github.com/contentsquare/grafana-annotation"
Will work with a configuration file (default to ~/.grafana-anotation-poster.yml
)
grafanaUri: https://some-grafana-host.tld
bearerToken: BearerTokenFromGrafana
go build
Usage of grafana-annotation:
-config-file string
Configuration File (default "~/.grafana-anotation-poster.yml")
-data string
Additional data.
-tag value
Tags. may be repeated multiple times
-verbose
Be Verbose.
-what string
The What item to post. (default "$(hostname)")
~$ grafana-annotation -data "Details on this event" -tag foo \
-tag bar -what "Something happened on system foo with bar event"