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/bosun: Add metric stats to host API #1405

Merged
merged 2 commits into from
Oct 22, 2015
Merged

cmd/bosun: Add metric stats to host API #1405

merged 2 commits into from
Oct 22, 2015

Conversation

kylebrandt
Copy link
Member

No description provided.

@@ -0,0 +1,809 @@
package sched // import "bosun.org/cmd/bosun/sched"
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for making a new file :)

slog.Error(err)
}
processHostIncidents(host, states, silences)
for _, ts := range icmpTimeOutTags {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a lot of iteration. I each iteration over hosts, you iterate over all tags for a lot of metrics. Perhaps we can turn those arrays into maps by host before we enter the main loop.

and additional fixes from code review
kylebrandt added a commit that referenced this pull request Oct 22, 2015
cmd/bosun: Add metric stats to host API
@kylebrandt kylebrandt merged commit a2c15b7 into master Oct 22, 2015
@kylebrandt kylebrandt deleted the hostVitals branch October 22, 2015 21:45
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