-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[azure_monitor] Cannot use empty string as the nampspace prefix #8256
Comments
I would have preferred not having a default set. Options for a fix are: that's all I can think of. For a fix I'd probably try e, then d. |
Update: I've crossed out the options that don't make sense. I think the only reasonable option is e, which I'm like 98% sure will just work properly as a one-line fix, and then we can remove the |
…t plugin (influxdata#8282) * Fix using empty string as the namespace prefix Fixes influxdata#8256 * Test using empty string as the namespace prefix
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
nil
instead of the empty string?As a side note, the regex processor may be a better solution to add namespace prefixes.
ATTN: @ danielnelsonThe text was updated successfully, but these errors were encountered: