-
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: got empty metric-name for response on Nokia SRLinux #12931
Comments
@srebhan thoughts on this one as well? |
In the error the returned message shows an origin
origin = "srl_nokia-interfaces" in the config and see if this fixes your issue!? |
Hi @srebhan
In current gNMI versions, path origins are used to disambiguate which schema the path belongs, most commonly two origins are used
I presume what is happening, is that telegraf's gnmi input parses the output which is formed in JSON_IETF encoding and carves out the part before Here is a raw textproto response of a similar subscribe request done with gnmic:
As you can see, path origin is not present in the response. |
@protonmarco can you please test the binary built in PR #13304 and let me know if this fixes your issue? |
Looks like it fixed the issue, thanks :) |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.26, Nokia SR Linux v22.11.2
Docker
The problem can be reproduced with containerlab on the lab created with this repo.
Once everything is up, it can be seen with
docker logs clab-collectors-telegraf
.Steps to reproduce
Expected behavior
No such logs.
Actual behavior
Empty metric-name logs are present.
Additional info
No response
The text was updated successfully, but these errors were encountered: