Mongo proxy

    Every configured MongoDB proxy filter has statistics rooted at mongo.. with the following statistics:

    Envoy defines a scatter get as any query that does not use an _id field as a query parameter. Envoy looks in both the top level document as well as within a $query field for _id.

    Multi gets

    Envoy defines a multi get as any query that does use an _id field as a query parameter, but where _id is not a scalar value (i.e., a document or an array). Envoy looks in both the top level document as well as within a $query field for _id.

    If a query has a top level $comment field (typically in addition to a $query field), Envoy will parse it as JSON and look for the following structure:

    callingFunction

    (required, string) the function that made the query. If available, the function will be used in callsite query statistics.

    Per command statistics

    The MongoDB filter will gather statistics for commands in the mongo..cmd.. namespace.

    The MongoDB filter will gather statistics for queries in the mongo..collection..query. namespace.

    Per collection and callsite query statistics

    If the application provides the in the $comment field, Envoy will generate per callsite statistics. These statistics match the per collection statistics but are found in the mongo..collection..callsite..query. namespace.

    mongo.connection_logging_enabled

    % of connections that will have logging enabled. Defaults to 100. This allows only a % of connections to have logging, but for all messages on those connections to be logged.

    mongo.proxy_enabled

    % of connections that will have the proxy enabled at all. Defaults to 100.

    mongo.logging_enabled

    % of messages that will be logged. Defaults to 100. If less than 100, queries may be logged without replies, etc.

    mongo.mongo.drain_close_enabled

    % of connections that will be drain closed if the server is draining and would otherwise attempt a drain close. Defaults to 100.

    mongo.fault.fixed_delay.percent

    mongo.fault.fixed_delay.duration_ms

    The delay duration in milliseconds. Defaults to the duration_ms specified in the config.

    The access log format is not customizable and has the following layout:

    time

    System time that complete message was parsed, including milliseconds.

    message

    Textual expansion of the message. Whether the message is fully expanded depends on the context. Sometimes summary data is presented to avoid extremely large log sizes.

    upstream_host

    The upstream host that the connection is proxying to, if available. This is populated if the filter is used along with the .