我可以在将 JMXFetch 推送到 DataDog 之前更改 JMX 属性名称吗?
Can I change JMX attribute name in JMXFetch before pushing it to DataDog?
是否可以在 JMXFetch 中更改 JMX 属性名称,以便在 DataDog 中显示不同的名称?
我目前有:
- include:
domain: data
attribute:
- success
- error
这将在 DataDog 中报告两个指标:
jmx.data.success
jmx.data.error
是否可以在 yaml 脚本中将其重命名为更类似的名称:
jmx.com.abc.reporting.successCount
jmx.com.abc.reporting.errorCount
原始名称从未出现在 DataDog 中?
很有可能,只需使用 attribute 过滤器的别名 属性:
- include:
domain: data
attribute:
success:
alias: jmx.com.abc.reporting.successCount
error:
alias: jmx.com.abc.reporting.errorCount