-
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
Could not serialize metric: invalid name from gnmi input plugin with Sonic switch #12257
Labels
area/gnmi
bug
unexpected problem or unintended behavior
plugin/input
1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Comments
3 tasks
here are more debugs related to the case, d0c7391
These test were run with following config
|
I tested this also with Arista (ceos:4.28.2F) which seem to work fine, 5416cae
|
logs with 8ef9b46 config
|
logs with 8ef9b46 & Arista ceos:4.28.2F config
Logs
|
srebhan
added a commit
to srebhan/telegraf
that referenced
this issue
Nov 18, 2022
srebhan
added
area/gnmi
plugin/input
1. Request for new input plugins 2. Issues/PRs that are related to input plugins
labels
Nov 18, 2022
based on the initial tests, #12258 fixes the issue
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/gnmi
bug
unexpected problem or unintended behavior
plugin/input
1. Request for new input plugins 2. Issues/PRs that are related to input plugins
Relevant telegraf.conf
Logs from Telegraf
System info
Docker image telegraf:1.23.4-alpine
Docker
No response
Steps to reproduce
Expected behavior
Expecting the data to be written to the file and the metric name as stated on the configuration file, in this case 'temperature'.
Actual behavior
Plugin is not able to get the name from the configuration, the name is left empty (as shown on the logs)
Additional info
This issue looks similar to #6391
Here's a log file which shows the data written to file in json format. Here you can see that the name of the metric is ""
Write to file works if the data is stored in prometheus data format
but the metric name becomes ‘openconfig_platform:components_component_state_temperature_current’ instead of 'temperature' which was stated in the config file.
The text was updated successfully, but these errors were encountered: