VictoriaMetrics/lib/promutils
Aliaksandr Valialkin 21170e558c
lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function
This should prevent from bugs similar to https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5801 in the future

This is a follow-up for ce3ec3ff2e
2024-02-23 01:21:42 +02:00
..
duration.go lib/promutils, app/vmalert-tool/unittest: move promutils.Duration.ParseTime() to app/vmalert-tool/unittest.durationToTime() 2023-10-16 14:23:41 +02:00
duration_test.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
labels.go all: consistently clear prompbmarshal.Label by assigning an empty struct instead of zeroing Name and Value individually 2024-01-22 01:11:59 +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
time.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 01:21:42 +02:00
time_test.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 01:21:42 +02:00