Skip to content

Commit 776eb4c

Browse files
committed
3
1 parent 4e0a61c commit 776eb4c

File tree

5 files changed

+3358
-67
lines changed

5 files changed

+3358
-67
lines changed

components/ide-metrics-api/go/config/config.go

+19-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,25 @@ import (
1010

1111
type ServiceConfiguration struct {
1212
Server struct {
13-
Port int `json:"port"`
14-
RateLimits map[string]grpc.RateLimit `json:"ratelimits"`
13+
Port int `json:"port"`
14+
RateLimits map[string]grpc.RateLimit `json:"ratelimits"`
15+
CounterMetrics []struct {
16+
Name string `json:"name"`
17+
Help string `json:"help"`
18+
Labels []struct {
19+
Name string `json:"name"`
20+
AllowValues []string `json:"allowValues"`
21+
}
22+
} `json:"counterMetrics"`
23+
HistogramMetrics []struct {
24+
Name string `json:"name"`
25+
Help string `json:"help"`
26+
Labels []struct {
27+
Name string `json:"name"`
28+
AllowValues []string `json:"allowValues"`
29+
}
30+
Buckets []float64 `json:"buckets"`
31+
} `json:"histogramMetrics"`
1532
} `json:"server"`
1633

1734
PProf struct {

components/ide-metrics-api/go/metrics.pb.go

+54-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)