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

cmd/scollector: negative -f filters and total_time metric for httpunit collector #1630

Merged
merged 4 commits into from
Mar 2, 2016

Conversation

gbrayut
Copy link
Contributor

@gbrayut gbrayut commented Mar 1, 2016

Updated version of #1263 rebased on current master and with more documentation

anders-at-spark and others added 3 commits February 29, 2016 17:12
Negative filter patterns ("-" prefix),
Added time_total metric to httpunit collector,
Freq setting for HTTPUnit collectors.
also add a log message when metrics are being filtered since I spent 20 minutes trying to figure out why my -p and -f tests were not working

closes #1263
return nil
}

func HTTPUnitPlans(name string, plans *httpunit.Plans) {
func HTTPUnitPlans(name string, plans *httpunit.Plans, freq time.Duration) {
if freq < time.Second {
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems a bit odd to me. If they didn't set it, and it was zero, I would understand. But if they set 15 expecting it to be seconds or minutes or who knows what, 5 mins is an odd default. Maybe error with a helpful message?

@captncraig
Copy link
Contributor

Other than craig being confused about timings, it looks good to me.

@gbrayut
Copy link
Contributor Author

gbrayut commented Mar 1, 2016

@captncraig I changed it to use a duration string... will be clearer in the config files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants