I’m storing alarms from a machine in Influx and then visualizing them in Grafana. When the machine unexpectedly stops, the “Unknown” alarm is triggered.
I want to be able to change the cause of the alarm from “Unknown” to, for example, “No material”.
When I tried the following Flux query, the original value didn’t change. Instead, a new table was created with the new “Cause”.
I also tried to change the _value for a point/row which worked. The original value changed and no new table was created. If I were able to do the same with the Cause column, I would be pleased.
Hello @alexTingvalla,
You can’t upsert tag values.
To upsert in influxdb you need to be writing the same series with different field values. Different tag values will be interpreted as a new series and therefore you’ll always be writing these new data points.
I have tried to update/modify the _field strings instead of the tags. I experiences the same problem as before. The values do not update, instead it seems like new tables are created.
A solution may be to have all of this data in one table, namely all the points have same value in the table column.
Hello @alexTingvalla,
You can only update the field value no the field itself and expect an upsert. creating a new field No material is adding a new series so you wont replace the old one. To understand series better please read:
Or maybe even
I hope that helps.
You’ll have to delete those series you don’t want with the delete functionality