mongo_proxy: support configurable command list for metrics#13494
Conversation
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
32becca to
22721a0
Compare
mattklein123
left a comment
There was a problem hiding this comment.
Looks great, thanks! Just a few small comments.
/wait
There was a problem hiding this comment.
v2 is locked/deprecated, so please remove these changes.
There was a problem hiding this comment.
Hm, so I originally didn't include v2 in this change but I got test failures locally.
There was a problem hiding this comment.
Specifically, a segfault in what looked to be an attempt to convert v3 into v2 config.
There was a problem hiding this comment.
Anyway, removed, hopefully CI passes.
There was a problem hiding this comment.
Looks good, I think I might have been testing this change internally on an older git commit.
There was a problem hiding this comment.
Please add a release note.
There was a problem hiding this comment.
I don't see a release note? Please also ref link to this field. You will need to merge main to pick up the CI change for docs also.
/wait
There was a problem hiding this comment.
Sorry, should be there now.
Fixes envoyproxy#13448 Signed-off-by: David Bartley <bartle@stripe.com>
909674e to
ad9cdee
Compare
|
(Friendly request to please never force push. It makes reviews much more difficult. Thank you!) |
Signed-off-by: David Bartley <bartle@stripe.com>
Signed-off-by: David Bartley <bartle@stripe.com>
dce2228 to
fd09ca3
Compare
|
@bartle-stripe please stop force pushing! Thanks! |
|
Sorry, the instructions on the DCO check told me to force push my last commit because I didn't include |
mattklein123
left a comment
There was a problem hiding this comment.
LGTM with small nit, thanks!
/wait
| if (proto_config.commands_size() > 0) { | ||
| commands = | ||
| std::vector<std::string>(proto_config.commands().begin(), proto_config.commands().end()); | ||
| ; |
There was a problem hiding this comment.
Good catch, fixed!
Signed-off-by: David Bartley <bartle@stripe.com>
|
Apologies this will need another main merge. /wait |
…configurable-commands
Signed-off-by: David Bartley <bartle@stripe.com>
* master: (22 commits) http: using CONNECT_ERROR for HTTP/2 (envoyproxy#13519) listener: respect address.pipe.mode (it didn't work) (envoyproxy#13493) examples: Fix more deprecations/warnings in configs (envoyproxy#13529) overload: tcp connection refusal overload action (envoyproxy#13311) tcp: towards pluggable upstreams (envoyproxy#13331) conn_pool: fixing comments (envoyproxy#13520) Prevent SEGFAULT when disabling listener (envoyproxy#13515) Convert overload manager config literals to YAML (envoyproxy#13518) Fix runtime feature variable name (envoyproxy#13533) dependencies: refactor repository location schema utils, cleanups. (envoyproxy#13452) router: fix an invalid ASSERT when encoding metadata frames in the router. (envoyproxy#13511) http2: Proactively disconnect connections flooded when resetting stream (envoyproxy#13482) ci use azp to sync filter example (envoyproxy#13501) mongo_proxy: support configurable command list for metrics (envoyproxy#13494) http local rate limit: note token bucket is shared (envoyproxy#13525) wasm/extensions: Wasm extension policy. (envoyproxy#13526) http: removing envoy.reloadable_features.http1_flood_protection (envoyproxy#13508) build: update ppc64le CI build status shield (envoyproxy#13521) dependencies: enforce dependency shepherd sign-off via RepoKitteh. (envoyproxy#13522) Add no_traffic_healthy_interval (envoyproxy#13336) ... Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Commit Message: mongo_proxy: support configurable command list for metrics
Additional Description:
queryfrom the default list of commands, since that's not actually a MongoDB command. I'm not sure why it was ever added, but we never see anyquerycommand metrics (not be to be confused with the separatequerynamespace).findandmodify=>findAndModify, etc...) seems reasonable, and doesn't make sense to be configurable, because these aliases only exist for historical reasons, and newer MongoDB commands (afaik) don't have such aliases.Risk Level: Low
Testing: Updated tests and tested internally at Stripe.
Docs Changes: Updated
mongo_proxyconfig docs to mention newcommandsfield.Release Notes: mongo_proxy: the list of commands to produce metrics for is now configurable.
Fixes #13448