Alias names for jmx attributes
pfouquet opened this issue · 1 comments
pfouquet commented
Hi,
it is possible to define an alias name for an attribute in the json configuration, for example:
{code}
{
"queries": [
{
"objectName": "ProductConnect:type=Statistic,name=shopResponseStatistic",
"resultAlias": "shopResponseStatistic",
"attributes": ["ResendCounter", "ResponseCodeRange200"],
"aliasNames": ["request.failed", "request.success"]
},
{code}
Kind regards
Peter
cyrille-leclerc commented
Is is possible but the syntax is slightly different:
{
"objectName": "java.lang:type=GarbageCollector,name=PS MarkSweep",
"resultAlias": "jvm.gc.ps-marksweep",
"attributes": [
{
"name": "CollectionCount",
"resultAlias": "collection-count"
},
{
"name": "CollectionTime",
"resultAlias": "collection-time"
}
]
}
I updated the docs: https://github.com/jmxtrans/embedded-jmxtrans/wiki/Configuration#expanded-style-with-attribute-alias