"grafannotate" - A command line tool to create annotations in Grafana

A CLI tool to add annotations to Grafana, written in Python and available from PyPI.

Installation

pip install grafannotate

Synopsis

# Add an annotation for current time
grafannotate --uri http://user:password@grafana:3000/api/annotations --tag my_tag --title "Event Title"

# Add an annotation for a time range
grafannotate --uri http://user:password@grafana:3000/api/annotations --tag my_tag --title "Event Title" --start 1557222057 --end 1557222259

# Add an annotation with an extended description
grafannotate --uri http://user:password@grafana:3000/api/annotations --tag my_tag --title "Event Title" --description "Some longer description<br />with newlines<br />and <a href=\"https://something.com/\">links</a>"

About