ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Bende <>
Subject Dynamic Metric Names
Date Thu, 13 Aug 2015 15:45:39 GMT

Is it possible to define metrics and have the name include some kind of
parameter that would be determined later?

For example "my.metric.{id}" where id would be based on a value from the
sending system that is not known until runtime.

There appears to be an example of this in the Kafka metrics.json:

"metrics/kafka/cluster/Partition/$1-UnderReplicated": {
              "metric": "kafka.cluster.Partition.(\\w+)-UnderReplicated",
              "pointInTime": true,
              "temporal": true

but how do you use this when adding a widget?



View raw message