zentol opened a new pull request #10466: [FLINK-15510][metrics] Support 
variable exclusion
URL: https://github.com/apache/flink/pull/10466
 
 
   Adds a per-reporter config option to exclude specific variables from being 
processed.
   
   For example, configuring `metrics.reporter.foo.scope.variables.excludes: 
task_id;job_id` results in `<job_id`> and `<task_id>` being excluded from the 
variables map returned by `MetricGroup#getAllVariables()`.
   This setting applies to all reporters by virtue of handling this via the 
`FrontMetricGroup`, which injects reporter-specific behaviors irrespective of 
the reporter implementation.
   
   This allows users to exclude unwanted variables, reducing noise / storage 
costs and also acts as an emergency workaround to cardinality explosions (see 
FLINK-13418).
   
   Similar to scope strings the result of `MetricGroup#getAllVariables()` is 
cached per reporter; with some optimizations in case no exclusion were defined 
(in which case a shared cache is used).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to