-
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
inputs.cisco_telemetry_gnmi and wildcard in path - measurement name always empty #5983
Comments
FYI. I use this current workaround to solve my issue.
Now I sent influx metrics with the right measurement name: trafficstats,host=MUZTC840,path=/state/port/ethernet/statistics/ethernet-like-medium,port_id=2/1/1,source=nmtln201 ethernet_like_medium/frame_too_long="0" 1560361761044568011 |
You are correct I will provide patch in the coming days.
|
Thank you. I will test it. Otherwise, currently all is working fine with Nokia SROS. |
This is the only information I can find regarding telegraf in conjuntion with SROS & it was the answer I needed "path = "/state/port[port-id=*]/ethernet/statistics"", thanks! . Would be great if anyone has additional information to share. |
Relevant telegraf.conf:
System info:
Steps to reproduce:
I tried to use the inputs.cisco_telemetry_gnmi to collect telemetry data on Nokia SROS gNMI compliant router. But on Nokia we need to provide for some paths wildcard key for some elem :
"/state/port[port-id=*]/ethernet/statistics"
and therefore the measurement name is always empty because in line 346 :
name is never match /state/port[port-id=*]/ethernet/statistics because here name is just an instance for each port and finally aliasPath is empty and measurement name is empty which triggers issue when output encoding is influx.
if might be interesting in line 113:
Expected behavior:
Actual behavior:
Additional info:
The text was updated successfully, but these errors were encountered: