diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 4abf0a598..b1823220d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -385,7 +385,7 @@ in front of VictoriaMetrics. [Contact us](mailto:sales@victoriametrics.com) if y See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/807 * BUGFIX: properly handle `inf` values during [background merge of LSM parts](https://medium.com/@valyala/how-victoriametrics-makes-instant-snapshots-for-multi-terabyte-time-series-data-e1f3fb0e0282). - Previously `Inf` values could result in `NaN` values for adjancent samples in time series. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/805 . + Previously `Inf` values could result in `NaN` values for adjacent samples in time series. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/805 . * BUGFIX: fill gaps on graphs for `range_*` and `running_*` functions. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/806 . * BUGFIX: make a copy of label with new name during relabeling with `action: labelmap` in the same way as Prometheus does. Previously the original label name has been replaced. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/812 . diff --git a/docs/MetricsQL.md b/docs/MetricsQL.md index dbf8dfd4c..b67cb4d3c 100644 --- a/docs/MetricsQL.md +++ b/docs/MetricsQL.md @@ -143,8 +143,8 @@ This functionality can be tried at [an editable Grafana dashboard](http://play-g - `first_over_time(m[d])` - returns the first value for `m` on the time range `d`. - `outliersk(N, q) by (group)` - returns up to `N` outlier time series for `q` in every `group`. Outlier time series have the highest deviation from the `median(q)`. This aggregate function is useful to detect anomalies across groups of similar time series. -- `ascent_over_time(m[d])` - returns the sum of positive deltas between adjancent data points in `m` over `d`. Useful for tracking height gains in GPS track. -- `descent_over_time(m[d])` - returns the absolute sum of negative deltas between adjancent data points in `m` over `d`. Useful for tracking height loss in GPS track. +- `ascent_over_time(m[d])` - returns the sum of positive deltas between adjacent data points in `m` over `d`. Useful for tracking height gains in GPS track. +- `descent_over_time(m[d])` - returns the absolute sum of negative deltas between adjacent data points in `m` over `d`. Useful for tracking height loss in GPS track. - `mode_over_time(m[d])` - returns [mode](https://en.wikipedia.org/wiki/Mode_(statistics)) for `m` values over `d`. It is expected that `m` values are discrete. - `mode(q) by (x)` - returns [mode](https://en.wikipedia.org/wiki/Mode_(statistics)) for each point in `q` grouped by `x`. It is expected that `q` points are discrete. - `rate_over_sum(m[d])` - returns rate over the sum of `m` values over `d` duration. diff --git a/lib/storage/block_stream_writer.go b/lib/storage/block_stream_writer.go index f80157b6b..5421a6656 100644 --- a/lib/storage/block_stream_writer.go +++ b/lib/storage/block_stream_writer.go @@ -42,7 +42,7 @@ type blockStreamWriter struct { // prevTimestamps* is used as an optimization for reducing disk space usage // when serially written blocks have identical timestamps. - // This is usually the case when adjancent blocks contain metrics scraped from the same target, + // This is usually the case when adjacent blocks contain metrics scraped from the same target, // since such metrics have identical timestamps. prevTimestampsData []byte prevTimestampsBlockOffset uint64 diff --git a/lib/storage/index_db.go b/lib/storage/index_db.go index 855f10a7f..9e7011ee1 100644 --- a/lib/storage/index_db.go +++ b/lib/storage/index_db.go @@ -3535,7 +3535,7 @@ func mergeTagToMetricIDsRowsInternal(data []byte, items []mergeset.Item, nsPrefi if len(item) == 0 || item[0] != nsPrefix || i == 0 || i == len(items)-1 { // Write rows not starting with nsPrefix as-is. // Additionally write the first and the last row as-is in order to preserve - // sort order for adjancent blocks. + // sort order for adjacent blocks. dstData, dstItems = tmm.flushPendingMetricIDs(dstData, dstItems, mpPrev) dstData = append(dstData, item...) dstItems = append(dstItems, mergeset.Item{ diff --git a/lib/storage/storage.go b/lib/storage/storage.go index c28a336d2..146310cee 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -1498,7 +1498,7 @@ func (s *Storage) add(rows []rawRow, mrs []MetricRow, precisionBits uint8) ([]ra rows = rows[:rowsLen+len(mrs)] j := 0 var ( - // These vars are used for speeding up bulk imports of multiple adjancent rows for the same metricName. + // These vars are used for speeding up bulk imports of multiple adjacent rows for the same metricName. prevTSID TSID prevMetricNameRaw []byte ) @@ -1712,7 +1712,7 @@ func (s *Storage) updatePerDateData(rows []rawRow) error { var hour uint64 var prevTimestamp int64 var ( - // These vars are used for speeding up bulk imports when multiple adjancent rows + // These vars are used for speeding up bulk imports when multiple adjacent rows // contain the same (metricID, date) pairs. prevDate uint64 prevMetricID uint64