-
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
Zookeeper plugin #262
Zookeeper plugin #262
Conversation
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) { |
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.
name of this function shouldn't be memcached?
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.
Whoops will fix that was basing the test file based off memcached test plugin.
Your method of unit testing requires that you add a zookeeper docker image to the |
please write a README detailing all measurements that will be output, you can use the CPU_README.md file in the |
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"} |
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.
Line length ;-)
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.
please limit to 80 chars
thank you @jrxFive! Just address the comments I made and I can merge 👍 |
since spotify/kafka docker image already exposes zookeeper
Created a zookeeper plugin that fetches from the ‘mntr’ command will
output measurements that are int and string based