VictoriaMetrics/lib/promutils
Roman Khavronenko d5d143f849
lib/promutils: move time-related funcs from promutils to timeutil ()
Since funcs `ParseDuration` and `ParseTimeMsec` are used in vlogs,
vmalert, victoriametrics and other components, importing promutils only
for this reason makes them to export irrelevant
`vm_rows_invalid_total{type="prometheus"}` metric.

This change removes `vm_rows_invalid_total{type="prometheus"}` metric
from /metrics page for these components.

### Describe Your Changes

Please provide a brief description of the changes you made. Be as
specific as possible to help others understand the purpose and impact of
your modifications.

### Checklist

The following checks are **mandatory**:

- [ ] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 63f6ac3ff8)
2025-03-03 10:28:07 +01:00
..
duration.go lib/promutils: move time-related funcs from promutils to timeutil () 2025-03-03 10:28:07 +01:00
duration_test.go lib/promutils: move time-related funcs from promutils to timeutil () 2025-03-03 10:28:07 +01:00
labels.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
labels_test.go lib/promutils: properly return error when incorrect Prometheus label names are passed to NewLabelsFromString() 2023-05-12 17:02:06 -07:00
labels_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
labelscompressor.go stream aggregation: fix possible duplicated aggregation results () 2024-09-30 14:30:34 +02:00
labelscompressor_test.go stream aggregation: fix possible duplicated aggregation results () 2024-09-30 14:30:34 +02:00
labelscompressor_timing_test.go lib/streamaggr: huge pile of changes 2024-03-02 03:15:43 +02:00