ignore Histogram for prometheus client v1.16.0

This commit is contained in:
Paco Xu 2023-06-21 09:38:05 +08:00
parent bbae445d17
commit 420fbd11e4
2 changed files with 2 additions and 0 deletions

View File

@ -201,5 +201,6 @@ func timelessSample(value interface{}) types.GomegaMatcher {
"Metric": gstruct.Ignore(),
"Value": gomega.BeNumerically("==", value),
"Timestamp": gstruct.Ignore(),
"Histogram": gstruct.Ignore(),
}))
}

View File

@ -174,5 +174,6 @@ func checkMetricValueGreaterThan(value interface{}) types.GomegaMatcher {
"Metric": gstruct.Ignore(),
"Value": gomega.BeNumerically(">", value),
"Timestamp": gstruct.Ignore(),
"Histogram": gstruct.Ignore(),
}))
}