-
Notifications
You must be signed in to change notification settings - Fork 10
Hi is there a way to delete some data from tsdb? I did try to do:
$CURL -XPOST "http://$HOST:$PORT/api/admin?cmd=delete --start 2024年11月29日 18:00 --stop 2024年11月29日 18:01"
It did not failed, but did not deleted the data. Am I missing something?
All reactions
Replies: 1 comment 2 replies
Reason: At one point "18:00" there was a sensor mulfunction and temp collected was about -17° (which is a way wrong) this is disrupting the stats.
All reactions
2 replies
TT doesn't have API to support delete data explicitly. We should have failed the API. Nevertheless you can do two things to delete data:
- You can override data points with new values. TT will take the latest values instead of averaging them.
- Delete whole TSDB folders (1 TSDB per day). That's probably the last thing you want to do.
All reactions
Be careful that you must insert the same data point with the same timestamp in the same time series. Otherwise it will be considered as a new data point.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment