0

We have a system with multiple tenants that adds a tag, which connects a specific metric to some tenant. Let's call it tenant_id.

According to micrometer documentation, https://micrometer.io/docs/concepts, section 3,JMX is hierarchical. This means that:

When publishing metrics to hierarchical systems, Micrometer flattens the set of tag key/value pairs and adds them to the name

I see in jconsole that micrometer will add said tenant_id to name like {metric_name_formatted_for_jmx}.tenant_id.{value_for_tenant_id}.

Is there a way to make the value for tenant_id to be an attribute for said MBean instead of part of its name?

0 Answers0