Skip to content

feat: support value based label filtering #131

@acpana

Description

@acpana

Overview

Hopefully this is not a "holding it wrong" kinda thing.

Today, go-metrics supports named based label filtering. For instance:

https://github.com/armon/go-metrics/blob/master/metrics_test.go#L465

It'd be useful to support "value" based label filtering. For instance, between two metrics with labels:

notOkLabel := Label{Name: "ok_label", Value: "bad_value"}
okLabel := Label{Name: "ok_label", Value: "good_value"}

not allowing the metric that has a label value equal to bad_value can be useful in cases where I care for some of the label values but not all.

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