metrics cardinality for ghalistener (#3671)

Co-authored-by: Bassem Dghaidi <[email protected]>
Co-authored-by: Nikola Jokic <[email protected]>
This commit is contained in:
Chris Johnston
2025-02-26 15:34:17 +01:00
committed by GitHub
co-authored by Bassem Dghaidi Nikola Jokic
parent 7ccc177b84
commit ddc872d3ee
2 changed files with 56 additions and 68 deletions
+47 -49
View File
@@ -21,55 +21,53 @@ func init() {
)
}
var (
runtimeBuckets []float64 = []float64{
0.01,
0.05,
0.1,
0.5,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
12,
15,
18,
20,
25,
30,
40,
50,
60,
70,
80,
90,
100,
110,
120,
150,
180,
210,
240,
300,
360,
420,
480,
540,
600,
900,
1200,
1800,
2400,
3000,
3600,
}
)
var runtimeBuckets []float64 = []float64{
0.01,
0.05,
0.1,
0.5,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
12,
15,
18,
20,
25,
30,
40,
50,
60,
70,
80,
90,
100,
110,
120,
150,
180,
210,
240,
300,
360,
420,
480,
540,
600,
900,
1200,
1800,
2400,
3000,
3600,
}
func metricLabels(extras ...string) []string {
return append(append([]string{}, commonLabels...), extras...)