novalabs / grafana-annotations-panel

Annotations panel for Grafana
Apache License 2.0
5 stars 7 forks source link

Annotation update/delete feature request #6

Closed Atrejoe closed 6 years ago

Atrejoe commented 7 years ago

It would be nice to be able to update / delete annotations in the UI

OverWorldD commented 6 years ago

I second this, how do I delete an annotation?

naiconovalabs commented 6 years ago

Hi! When you create an annotation, it is saved in your influxDB database as a single data point.

From InfluxDB documentation:

Deletes are a rare occurrence. When they do occur it is almost always against large ranges of old data that are cold for writes.

Pro: Restricting access to deletes allows for increased query and write performance. Con: Delete functionality is significantly restricted.

and this panel follow this design choice. When you store an annotation, you "register" an event that is surely happen. If you want to be able to delete frequently your annotations, I suggest you to use a different datasource, e.g.: sql, or to implement by yourself a slow query like:

DELETE WHERE time = 1496677645917952139

or to check new Grafana Annotation Support (build-in): link

At the moment, here, there is no support for this operation.

Greetings