Skip to content

Allow exporting JetStream metadata as prometheus labels #317

Open
@jkraml-staffbase

Description

@jkraml-staffbase

What motivated this proposal?

We would like to route NATS-related alerts to responsible teams, but would not want teams to have to configure alert routing (complex and error prone). Instead, we'd like to enable them to add suitable metadata to JetStream streams/consumers (i.e. "team", "domain", "product", …) and have generic routing rules based on those.

What is the proposed change?

Provide configuration options to allow exporting select metadata values as Prometheus labels.

Who benefits from this change?

Anyone who'd like to group Prometheus metrics by some metadata like product/domain/etc. This is common based on e.g. k8s labels.

What alternatives have you evaluated?

  • Tedious manual config of alert routing
  • Building an additional tool visualize JetStream resource ownership (does not actually help with alert routing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions