This is an annotation firing class.
You need to have InfluxDB setup to receive UDP connections.
An example config for influx is this:
[[udp]]
enabled = true
bind-address = ":8089"
database = "events"
precision = "s"
Feel free to change any of these values, but reflect them in the class above.
Usage:
new Annotation("Annotation Title");
You are required to passa title, but may optionally pass a message, which can contain HTML, an array of tags (which should not contain spaces), and a unix timestamp.
By default, the timestamp will be now; and no message or tags will be sent through.
Example:
new Annotation("Release v3.1.11", 'View the <a href="http://google.com/">Changelog</a>', ['Bug-Fix', 'Performance']);
In grafana it will appear like this:
I will look into turning this into a simple composer package at some point, but for now this works well, Just add your own namespace and IP to the class.