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

Zookeeper plugin #262

Closed
wants to merge 4 commits into from
Closed

Zookeeper plugin #262

wants to merge 4 commits into from

Conversation

jrxFive
Copy link
Contributor

@jrxFive jrxFive commented Oct 13, 2015

Created a zookeeper plugin that fetches from the ‘mntr’ command will
output measurements that are int and string based

Created a zookeeper plugin that fetches from the ‘mntr’ command will
output measurements that are int and string based
"github.com/stretchr/testify/require"
)

func TestMemcachedGeneratesMetrics(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name of this function shouldn't be memcached?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops will fix that was basing the test file based off memcached test plugin.

@sparrc
Copy link
Contributor

sparrc commented Oct 13, 2015

Your method of unit testing requires that you add a zookeeper docker image to the scripts/docker-compose.yml file

@sparrc
Copy link
Contributor

sparrc commented Oct 13, 2015

please write a README detailing all measurements that will be output, you can use the CPU_README.md file in the plugins/system directory as an example

err := z.Gather(&acc)
require.NoError(t, err)

intMetrics := []string{"zookeeper_avg_latency", "zookeeper_packets_sent", "zookeeper_znode_count", "zookeeper_open_file_descriptor_count", "zookeeper_max_file_descriptor_count"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line length ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please limit to 80 chars

@sparrc
Copy link
Contributor

sparrc commented Oct 14, 2015

thank you @jrxFive! Just address the comments I made and I can merge 👍

@sparrc sparrc closed this in 2f7d781 Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants