Prometheus: Fix timestamp truncation (#46302)

* avoid truncation to seconding by using time.Time directly

* update test coverage
This commit is contained in:
Todd Treece
2022-03-08 10:55:25 -05:00
committed by GitHub
parent f7894db99c
commit db5f480a8f
4 changed files with 34 additions and 32 deletions
+6 -6
View File
@@ -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"]
]
}
]