-
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
GNMI plugin missing measurement name when when writing to influxdb #8783
Comments
This error is only seen when using json encoding (device capabilities reports both json and proto support)
After switching to proto, the problem went away. Please close this if it seems like vendor or user error. |
I have the same issue. It appears that the output/processor plugins used do not matter. If I dump raw metrics at the processor stage or outputs stage, they both produce an empty string for "name". Telegraf versions tried: 1.17.3, 1.18.0 |
@veorlo Does your issue persist as well with just |
The issue still exists even if we use proto. |
@sjwang90 I do not experience the issue for the YANG model I'm working with while using That said, I've been working with Cisco to determine why some data from that YANG model is missing in the metric fields the gNMI plugin produces while using proto encoding. Using JSON, I get the missing data, but some branches within the specified path are inexplicably joined by underscores and with added list indices (e.g. I hope this info can help despite being quite vague :) |
I'm closing this issue as the problem is likely fixed with PR #12258. If the problem still persists, please feel free to reopen the issue or to create a new one. |
Hi, I was not seeing GNMI metric data being sent to influxdb, so I instead enabled the file output plugin with data_format="influx". I am seeing similar error to #6391
Relevant telegraf.conf:
If I set file output plugin to json, I can see name is empty in the output ("name":"")
Per the other defect mentioned, if I configure
name_override
, then the measurement successfully written and given the configured name.System info:
Steps to reproduce:
Expected behavior:
Influxdb measurement is successfully written without error
Actual behavior:
Receive "Could not serialize metric: invalid name" error msg
This error seems to occur for any path given, not just the one mentioned.
The text was updated successfully, but these errors were encountered: