-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: add stats_matcher for envoy's stats #1761
api: add stats_matcher for envoy's stats #1761
Conversation
71ed779
to
21d1e0e
Compare
Codecov Report
@@ Coverage Diff @@
## main #1761 +/- ##
==========================================
+ Coverage 65.22% 65.27% +0.04%
==========================================
Files 86 86
Lines 12318 12318
==========================================
+ Hits 8034 8040 +6
+ Misses 3772 3766 -6
Partials 512 512 |
please add api first |
21d1e0e
to
5c148d1
Compare
5c148d1
to
2f6f0b7
Compare
done |
3e4dfa3
to
6cf8fa7
Compare
/retest |
Signed-off-by: zhaonan <[email protected]>
Signed-off-by: zhaonan <[email protected]>
Signed-off-by: zhaonan <[email protected]>
Signed-off-by: zhaonan <[email protected]>
e5da312
to
45bc763
Compare
Signed-off-by: zhaonan <[email protected]>
Signed-off-by: zhaonan <[email protected]>
Signed-off-by: zhaonan <[email protected]>
thanks for incorporating the suggestions @tmsnan, had some more minor suggestions around comments and doc string, overall LGTM |
Signed-off-by: zhaonan <[email protected]>
api/config/v1alpha1/metric_types.go
Outdated
@@ -10,6 +10,14 @@ type ProxyMetrics struct { | |||
Prometheus *PrometheusProvider `json:"prometheus,omitempty"` | |||
// Sinks defines the metric sinks where metrics are sent to. | |||
Sinks []MetricSink `json:"sinks,omitempty"` | |||
// Matches defines configuration for selecting specific metrics instead of generating all metrics stats | |||
// that are enabled by default. This helps reduce CPU and memory overhead in Envoy. | |||
// When Matches is nil(not set), gateway by default create and expose only a subset of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lines 15-19 can be removed, imo
also because its hard to define in docs what exactly the default stats are, for e.g. we currently also output http
stats
Signed-off-by: zhaonan <[email protected]>
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
api: add stats_matcher for envoy's stats
Relates to #1669