Skip to content

Navigation Menu

Sign in
Sign up

Delete a data point #78

Unanswered
nonix asked this question in Q&A
Dec 1, 2024 · 1 comments · 2 replies
Discussion options

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?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

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.

You must be logged in to vote
2 replies
Comment options

ylin30 Dec 1, 2024
Collaborator

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:

  1. You can override data points with new values. TT will take the latest values instead of averaging them.
  2. Delete whole TSDB folders (1 TSDB per day). That's probably the last thing you want to do.
Comment options

ylin30 Dec 1, 2024
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /