You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `smoothed` modifier applies linear interpolation at time `t` using the nearest datapoints before and after that time. This creates a continuous estimation of values at range boundaries, resulting in smoother transitions between samples.
288
+
The `smoothed` modifiers apply to:
289
+
-**Range selectors**: `[10m] smoothed`
290
+
-**Instant selectors**: `metric smoothed`
301
291
302
-
The `anchored` modifier uses actual samples at range boundaries rather than interpolated values. It effectively ignores staleness markers, continuing to use the last known value within the lookback window even if the metric has gone stale. This provides more accurate calculations for counter metrics by using real observed values.
292
+
The `smoothed` modifier applies linear interpolation at time `t` using the nearest datapoints before and after that time. This creates a continuous estimation of values at range boundaries, resulting in smoother transitions between samples. This is basically smoothing gauges with linear interpolation.
303
293
304
294
### Applications to other functions
305
295
@@ -393,7 +383,7 @@ temporary outages.
393
383
## Implementation Plan
394
384
395
385
1. Implement the `anchored` and `smoothed` modifier behind the `promql-extended-range-selectors` feature flag for range floats.
396
-
2. Implement `anchored` and `smoothed` for instant floats.
386
+
2. Implement `smoothed` for instant floats.
397
387
3. Implement `anchored` for range histograms and instant histograms.
398
388
4. Implement `smoothed` for range histograms and smoothed histograms.
0 commit comments