Skip to content

[QUESTION] Is it possible to set global tag for all metrics / plugs? #263

@elvanja

Description

@elvanja

Given deployments to different production environments, ideally it would be possible to distinguish metrics from those environments. E.g. same app deployed to :cluster_a would have separate ecto metrics from same app in :cluster_b. Those separate metrics could be used to create separate dashboards or add filter to existing dashboards for that environment.

Was thinking of something akin to https://hexdocs.pm/telemetry_metrics/1.0.0/Telemetry.Metrics.html#module-breaking-down-metric-values-by-tags, but configurable at PromEx (or plugin) level. We already do similar thing for our OTEL traces, via https://opentelemetry.io/docs/languages/js/resources.

I see that current plugins support metric_prefix. But that was not really what I was aiming for. Metric names would remain the same in this case.

Thank you for your time 🙇🏼

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions