Prometheus: Fix timestamp truncation (#46302)
* avoid truncation to seconding by using time.Time directly * update test coverage
This commit is contained in:
+6
-6
@@ -11,9 +11,9 @@
|
||||
"job": "prometheus"
|
||||
},
|
||||
"values": [
|
||||
[1641889530, "21"],
|
||||
[1641889531, "32"],
|
||||
[1641889532, "43"]
|
||||
[1641889530.123, "21"],
|
||||
[1641889531.123, "32"],
|
||||
[1641889532.123, "43"]
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24,9 +24,9 @@
|
||||
"job": "prometheus"
|
||||
},
|
||||
"values": [
|
||||
[1641889530, "54"],
|
||||
[1641889531, "65"],
|
||||
[1641889532, "76"]
|
||||
[1641889530.123, "54"],
|
||||
[1641889531.123, "65"],
|
||||
[1641889532.123, "76"]
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user