Skip to content
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

Merged
merged 3 commits into from
Apr 24, 2018

Conversation

yosukehara
Copy link
Contributor

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson
Copy link
Contributor

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 danielnelson added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin area/snmp labels Apr 20, 2018
@yosukehara
Copy link
Contributor Author

yosukehara commented Apr 23, 2018

@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

$ ./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=61988864,
  allocated_memory_5min=61230680,
  comp_last_end_datetime=0,
  comp_last_start_datetime=0,
  comp_num_of_ongoing_targets=0,
  comp_num_of_out_of_targets=0,
  comp_num_of_pending_targets=8,
  comp_state=0,
  ets_memory_usage=4017023,
  ets_memory_usage_5min=3967321,
  mq_mdcr_num_of_msg_req_comp_metadata=0,
  mq_mdcr_num_of_msg_req_sync_obj=0,
  mq_num_of_msg_async_deletion_dir=0,
  mq_num_of_msg_deletion_dir=0,
  mq_num_of_msg_rebalance=0,
  mq_num_of_msg_recovery_node=0,
  mq_num_of_msg_replication=0,
  mq_num_of_msg_req_deletion_dir=0,
  mq_num_of_msg_sync_vnode=0,
  num_of_active_objects=70,
  num_of_deletes=0,
  num_of_deletes_5min=0,
  num_of_processes=577,
  num_of_processes_5min=577,
  num_of_reads=0,
  num_of_reads_5min=1,
  num_of_writes=0,
  num_of_writes_5min=70,
  processes_memory_usage=19919351,
  processes_memory_usage_5min=19911790,
  system_memory_usage=26201096,
  system_memory_usage_5min=26138654,
  total_memory_usage=46120232,
  total_memory_usage_5min=46048588,
  total_objects=70,
  total_size=2,
  total_size_of_active_objects=2,
  used_allocated_memory=70,
  used_allocated_memory_5min=71
  1524448593000000000

"num_of_rebalance_messages",
"mq_num_of_msg_replication",
"mq_num_of_msg_sync_vnode",
"mq_num_of_msg_rebalance",
Copy link
Contributor

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.

@danielnelson danielnelson added this to the 1.7.0 milestone Apr 24, 2018
@danielnelson danielnelson merged commit b8d5df2 into influxdata:master Apr 24, 2018
@danielnelson
Copy link
Contributor

Thanks!

@yosukehara yosukehara deleted the leofs-plugin-20180419 branch April 25, 2018 00:19
arkady-emelyanov pushed a commit to arkady-emelyanov/telegraf that referenced this pull request May 18, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants