Skip to content

Tool to post graphite annotations to grafana

Notifications You must be signed in to change notification settings

ContentSquare/grafana-annotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grafana-annotation: Post annotation to Elastic Search

Install

go get -d "github.com/contentsquare/grafana-annotation"

Build

make build

Configure

Will work with a configuration file (default to ~/.grafana-anotation-poster.yml)

Configuration file

region: eu-west-1
env: dev
provider: aws
role: testproject
elasticsearch:
  bootstrap_servers:
    - http://localhost:9200
  index_name: "test_index.2006.02"

Example usage

~# grafana-annotation --config-file resources/config-test.yml post --tags systemd --tags stop --tags kafka service kafka is stopped
Using config file: resources/config-test.yml
[2020-12-10 13:27:29]  INFO Annotation successfully posted to elasticsearch. tags=[systemd stop kafka eu-west-1 testproject dev aws Vianneys-MacBook-Pro.local]
~#