From ff1d59c377a7df7b96772678e626b656220469cc Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Tue, 13 Oct 2020 21:58:15 +0000 Subject: [PATCH] mongo_proxy: support configurable command list for metrics (#13494) Signed-off-by: David Bartley Mirrored from https://github.com/envoyproxy/envoy @ 78578736a7d6a17cd1da3312a38e6c229e7f6523 --- .../filters/network/mongo_proxy/v3/mongo_proxy.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto b/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto index 93abc90b..ebdfb6f2 100644 --- a/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto +++ b/envoy/extensions/filters/network/mongo_proxy/v3/mongo_proxy.proto @@ -17,6 +17,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE; // MongoDB :ref:`configuration overview `. // [#extension: envoy.filters.network.mongo_proxy] +// [#next-free-field: 6] message MongoProxy { option (udpa.annotations.versioning).previous_message_type = "envoy.config.filter.network.mongo_proxy.v2.MongoProxy"; @@ -39,4 +40,9 @@ message MongoProxy { // Flag to specify whether :ref:`dynamic metadata // ` should be emitted. Defaults to false. bool emit_dynamic_metadata = 4; + + // List of commands to emit metrics for. Defaults to "delete", "insert", and "update". + // Note that metrics will not be emitted for "find" commands, since those are considered + // queries, and metrics for those are emitted under a dedicated "query" namespace. + repeated string commands = 5; }