Skip to content

How to fix single incorrect samples in a time series #12588

Answered by easimon
easimon asked this question in Q&A
Discussion options

You must be logged in to vote

I might have found kind of a solution myself, so I leave it here for others.

I was not able to modify samples, also not to delete single samples, but at least I could delete only a small time interval of a time series (the one including the incorrectly decreased values) which is good enough.

Caveat: There seems to be a discrepancy in the samples with timestamps returned in /query vs /range_query, which made it hard for me to figure out the correct start and end timestamp, and this still puzzles me a bit... In the end I deleted a few minutes more before and after the "wrong" data, which is still better than eternally incorrect metrics.

#!/usr/bin/env bash

set -euo pipefail

# Must be GNU …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by easimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant