-
Notifications
You must be signed in to change notification settings - Fork 263
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
input.snmp 值映射 #919
Comments
translator 设置为 gosmi ,可以自动转换enum v0.3.64 |
能投提供个配置模板参考下,谢谢。 |
|
所以oid一定要文本型,不能数字型? |
对,依赖mib,不能自定义 |
自定义映射的方案,这块我们再讨论下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当前插件支持的是将字符映射成数字
但是有的场景是想要做到数值映射成字符,毕竟数值对应的意思还需要查文档,如果直接显示对应的字符就更清晰明了。
举例:
光模块类型,当前snmp读取到的是数字,那就需要翻译文档看每个数字对应的状态。
是不是可以让插件在采集的时候就把这个转换处理完成。
前提是这个oid作为标签而不是指标。
The text was updated successfully, but these errors were encountered: