这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@anderejd
Copy link
Contributor

Can now disable collectors using filter patterns prefixed by "-", eg. scollector-windows-amd64.exe -p -d -l -f="network_windows,-tcp" on my dev. machine prints:
bosun.org/cmd/scollector/collectors.c_network_windows

(excluding c_network_windows_tcp)

I needed this specifically for disabling c_network_windows_tcp while keeping c_network_windows enabled, trying to find performance issues caused by one of the two collectors, or both. High CPU usage by WmiPrvSE.exe and blocked collectors seems to be the symptoms (have not solved the issue or confirmed the offending collector yet)
Edit: It was not one of the network collectors. Could be some WMI related issue. It seems like the issue mostly occurs when the machines are under heavy load.

@anderejd anderejd changed the title Compile error fixes + new feature: negative filter patterns Compile error fixes + negative filter patterns + total_time metric for httpunit collector Aug 21, 2015
@anderejd
Copy link
Contributor Author

Implemented another feature in this branch since I need the previous changes I made. BR /AR

@lemkepf
Copy link

lemkepf commented Aug 24, 2015

the negative filter patterns would be awesome. Example: I want to disable cassandra monitoring, but everything else should stay on.

Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't edit files in _third_party directly. Instead this feature will need to be a seperate pr to github.com/StackExchange/httpunit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I will look into that next week.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I merged over my changes to httpunit, I did not merge back the changes from httpunit here yet (some timeout improvements): StackExchange/httpunit#5

@anderejd
Copy link
Contributor Author

anderejd commented Sep 1, 2015

Yet another small feature in this fork, Freq setting for HTTPUnit collectors. The default Freq if missing in the toml file is the same as the previously hardcoded value, 5 minutes.

@captncraig
Copy link
Contributor

Sorry this has sat so long. Can you please squash and rebase to master?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like this documented. Is this seconds? minutes? something else? cmd/scollector/doc.go should have docs for this.

@anderejd
Copy link
Contributor Author

anderejd commented Nov 5, 2015

Squash rebase, sure np. Should I remove the windows build helper script? It's just a personal convenience thing to enable autocomplete from windows command line.

@gbrayut
Copy link
Contributor

gbrayut commented Nov 5, 2015

I would say remove the build.scollector_win.bat file, as our build scripts are usually based in go. You can keep it in your local repo and add it to a global ignore if you still want to use it.

Negative filter patterns ("-" prefix),
Added time_total metric to httpunit collector,
Freq setting for HTTPUnit collectors.
@anderejd
Copy link
Contributor Author

anderejd commented Nov 9, 2015

Rebased, squashed, added some info for Freq in cmd/scollector/doc.go.

@gbrayut
Copy link
Contributor

gbrayut commented Mar 2, 2016

Sorry for the delay. This was merged as part of #1630

@anderejd
Copy link
Contributor Author

anderejd commented Mar 2, 2016

Oh, cool. Thanks for the info.

tkrajca pushed a commit to RepositPower/bosun that referenced this pull request Mar 6, 2016
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 bosun-monitor#1263
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants