-
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
[plugin/input/leofs] Modified for LeoFS v1.4 #4044
[plugin/input/leofs] Modified for LeoFS v1.4 #4044
Conversation
Thank you for the pull request @yosukehara. When adding support for v1.4 we will need to be careful not to break 1.3 support. Inspecting this code it looks like it was not implemented in a fashion that will allow this trivially, and I believe this change will cause problems with backwards compatibility. I think we may want to switch this plugin to match based on the OID name instead of index, or maybe we can switch the plugin to use the snmp plugin under the hood. |
@danielnelson Thank you for your comment. I've tested this fix with LeoFS v1.3.8 and v1.4.1-dev. As the result below, there was no issue: LeoStorage v1.3.8$ ./telegraf --config ./plugins/inputs/leofs/leo_storage.conf --input-filter leofs --test
> leofs,host=storage_0,node=storage_0@127.0.0.1
allocated_memory=64522923,
allocated_memory_5min=64260779,
ets_memory_usage=4004781,
ets_memory_usage_5min=4017799,
mq_num_of_msg_rebalance=0,
mq_num_of_msg_replication=0,
mq_num_of_msg_sync_vnode=0,
num_of_active_objects=68,
num_of_deletes=0,
num_of_deletes_5min=0,
num_of_processes=580,
num_of_processes_5min=580,
num_of_reads=0,
num_of_reads_5min=0,
num_of_writes=0,
num_of_writes_5min=0,
processes_memory_usage=20461187,
processes_memory_usage_5min=20561825,
system_memory_usage=26198287,
system_memory_usage_5min=26206637,
total_memory_usage=46658415,
total_memory_usage_5min=46764434,
total_objects=69,
total_size=2,
total_size_of_active_objects=2,
used_allocated_memory=69,
used_allocated_memory_5min=69
1524445349000000000 LeoStorage v1.4.1-dev
|
plugins/inputs/leofs/leofs.go
Outdated
"num_of_rebalance_messages", | ||
"mq_num_of_msg_replication", | ||
"mq_num_of_msg_sync_vnode", | ||
"mq_num_of_msg_rebalance", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to stay with the original names, or we could report it under both names if you think this is an important rename.
Thanks! |
Required for all PRs: