Skip to content

Instantly share code, notes, and snippets.

@boyney123
Created February 27, 2020 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boyney123/51cea57ad0e376890ccb8c8cbe508957 to your computer and use it in GitHub Desktop.
Save boyney123/51cea57ad0e376890ccb8c8cbe508957 to your computer and use it in GitHub Desktop.
# Add annotations in grafana
curl -X POST \
https://{YOUR_URL}/api/annotations \
-H "authorization: Bearer $GRAFANA_API_TOKEN" \
-H 'content-type: application/json' \
-d "{
\"text\": \"Hello world!\",
\"tags\": [ \"deployment\", \"env:dev}\", \"application:my-application\", \"commit: commit-sha-example}\"]
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment