Skip to content

Commit

Permalink
chore: adjust promql/ as a commit was missing from v3.0.1, see promet…
Browse files Browse the repository at this point in the history
  • Loading branch information
machine424 committed Dec 18, 2024
1 parent f2348ca commit a377671
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions promql/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,6 @@ func funcRound(vals []parser.Value, args parser.Expressions, enh *EvalNodeHelper
continue
}
f := math.Floor(el.F*toNearestInverse+0.5) / toNearestInverse
if !enh.enableDelayedNameRemoval {
el.Metric = el.Metric.DropMetricName()
}
enh.Out = append(enh.Out, Sample{
Metric: el.Metric,
F: f,
Expand Down
4 changes: 0 additions & 4 deletions promql/promqltest/testdata/name_label_dropping.test
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ eval instant at 10m metric * 2
eval instant at 10m clamp(metric, 0, 100)
{env="1"} 100

# Drops __name__ for round function
eval instant at 15m round(metric)
{env="1"} 120

# Drops __name__ for range-vector functions
eval instant at 10m rate(metric{env="1"}[10m])
{env="1"} 0.2
Expand Down

0 comments on commit a377671

Please sign in to comment.