Merge pull request #17423 from geogrego/main

docs: Fix typos
This commit is contained in:
Björn Rabenstein 2025-10-30 16:56:48 +01:00 committed by GitHub
commit 84d2007a08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -179,7 +179,7 @@ global:
# 1, but the resulting classic histogram or NHCB only has a sole bucket, the # 1, but the resulting classic histogram or NHCB only has a sole bucket, the
# +Inf bucket. If scrape_native_histograms is true, however, the histogram is # +Inf bucket. If scrape_native_histograms is true, however, the histogram is
# recognized as a pure native histogram and ingested as such. There will be # recognized as a pure native histogram and ingested as such. There will be
# no classic histgram ingested, no matter what # no classic histogram ingested, no matter what
# always_scrape_classic_histograms is set to, and there will be no # always_scrape_classic_histograms is set to, and there will be no
# conversion to an NHCB, no matter what convert_classic_histograms_to_nhcb # conversion to an NHCB, no matter what convert_classic_histograms_to_nhcb
# is set to. # is set to.

View File

@ -169,7 +169,7 @@ eval instant at 110s increase(metric[1m] smoothed)
eval instant at 125s increase(metric[1m] smoothed) eval instant at 125s increase(metric[1m] smoothed)
{} 4.666666666 {} 4.666666666
# Test that inverval is left-open. # Test that interval is left-open.
clear clear
load 1m load 1m

View File

@ -1580,7 +1580,7 @@ eval instant at 5m metric - 0.5 * metric
{id="1"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}} {id="1"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}}
{id="2"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}} {id="2"} {{count:2 sum:2 counter_reset_hint:gauge buckets:[0.5 1 0.5]}}
# Subtraction results in gauges, now with actually negtive result. # Subtraction results in gauges, now with actually negative result.
eval instant at 5m metric - 2 * metric eval instant at 5m metric - 2 * metric
expect no_warn expect no_warn
expect no_info expect no_info

View File

@ -389,7 +389,7 @@ type SeriesSet interface {
Next() bool Next() bool
// At returns full series. Returned series should be iterable even after Next is called. // At returns full series. Returned series should be iterable even after Next is called.
At() Series At() Series
// The error that iteration as failed with. // The error that iteration has failed with.
// When an error occurs, set cannot continue to iterate. // When an error occurs, set cannot continue to iterate.
Err() error Err() error
// A collection of warnings for the whole set. // A collection of warnings for the whole set.

View File

@ -353,7 +353,7 @@ func (in Intervals) Add(n Interval) Intervals {
return append(in, n) return append(in, n)
} }
// Find min and max indexes of intervals that overlap with the new interval. // Find min and max indexes of intervals that overlap with the new interval.
// Intervals are closed [t1, t2] and t is discreet, so if neighbour intervals are 1 step difference // Intervals are closed [t1, t2] and t is discrete, so if neighbour intervals are 1 step difference
// to the new one, we can merge those together. // to the new one, we can merge those together.
mini := 0 mini := 0
if n.Mint != math.MinInt64 { // Avoid overflow. if n.Mint != math.MinInt64 { // Avoid overflow.