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: Monitoring teams interfaces #1280

Merged
merged 1 commit into from
Aug 28, 2015
Merged

Conversation

kylebrandt
Copy link
Member

Currently we monitor bonding which works with CentOS 6, but by default CentOS 7 is using teaming and we want to monitor that as well.

@kylebrandt kylebrandt changed the title cmd/scollector: WIP Monitoring teams interfaces cmd/scollector: Monitoring teams interfaces Aug 27, 2015
func c_if_bond_linux() (opentsdb.MultiDataPoint, error) {
var md opentsdb.MultiDataPoint
const bondingPath = "/proc/net/bonding"
bondDevices, _ := ioutil.ReadDir(bondingPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

unchecked errors are bad. Especially in a case like this where the path might not exist.

Currently we monitor bonding which works with CentOS 6, but by default CentOS 7 is using teaming and we want to monitor that as well. Also moved bonding monitoring to the ifstat collector and out of procstat.
kylebrandt added a commit that referenced this pull request Aug 28, 2015
cmd/scollector: Monitoring teams interfaces
@kylebrandt kylebrandt merged commit e71b23c into master Aug 28, 2015
@gbrayut gbrayut deleted the linuxInterfaceTeam branch September 9, 2015 20:06
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.

2 participants