mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
lib/protoparser/influx: accept precision=us
and precision=µ
according to https://docs.influxdata.com/influxdb/v1.8/tools/api/#write-http-endpoint
This commit is contained in:
parent
e3439a6cd0
commit
890cfe5b61
@ -38,7 +38,7 @@ func ParseStream(r io.Reader, isGzipped bool, precision, db string, callback fun
|
|||||||
switch precision {
|
switch precision {
|
||||||
case "ns":
|
case "ns":
|
||||||
tsMultiplier = 1e6
|
tsMultiplier = 1e6
|
||||||
case "u":
|
case "u", "us", "µ":
|
||||||
tsMultiplier = 1e3
|
tsMultiplier = 1e3
|
||||||
case "ms":
|
case "ms":
|
||||||
tsMultiplier = 1
|
tsMultiplier = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user