Skip to content

[Metrics] Example for filtering which metrics we want to export #1500

@bsarden

Description

@bsarden

I'm trying to build a user application that exposes which metrics we want to export via regex. For example:

# Export all metrics under the foo.bar namespace
$ ./my-application --metrics_filter="foo\.bar.*"

Is this possible to do? IIUC, the InstrumentSelector, MetricSelector, and Predicate classes indicate that this functionality is achievable. However, I can't find any pointers into how we expose the ability to configure which metrics to export to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions