Relevant telegraf.conf:
[[outputs.azure_monitor]]
namespace_prefix = ""
# For debugging
[[outputs.file]]
data_format = "influx"
files = ["stdout"]
System info:
Telegraf 1.15.3
Steps to reproduce:
- Run telegraf with the above configuration
Expected behavior:
Metrics are emitted to azure monitor in the AZM namespace which matches the field name.
Actual behavior:
Metrics are emitted to azure monitor in the AZM namespace telegraf/{fieldName}.
Additional info:
This seems to be the suspect part of the code. Can it be compared to nil instead of the empty string?
As a side note, the regex processor may be a better solution to add namespace prefixes.
ATTN: @ danielnelson
Relevant telegraf.conf:
System info:
Telegraf 1.15.3
Steps to reproduce:
Expected behavior:
Metrics are emitted to azure monitor in the AZM namespace which matches the field name.
Actual behavior:
Metrics are emitted to azure monitor in the AZM namespace
telegraf/{fieldName}.Additional info:
This seems to be the suspect part of the code. Can it be compared to
nilinstead of the empty string?As a side note, the regex processor may be a better solution to add namespace prefixes.
ATTN: @ danielnelson