Skip to content

[py] Add NetworkCheck class#381

Merged
olivielpeau merged 2 commits intomasterfrom
olivielpeau/network-checks
Jul 17, 2017
Merged

[py] Add NetworkCheck class#381
olivielpeau merged 2 commits intomasterfrom
olivielpeau/network-checks

Conversation

@olivielpeau
Copy link
Copy Markdown
Member

What does this PR do?

Adds a thin NetworkCheck class that allows running the integrations-core's
NetworkChecks out of the box.

Also, added the default_integration_http_timeout config parameter
and AgentCheck attribute that some checks use.

Motivation

Make NetworkChecks work

Additional Notes

  • I got rid of the handling of events (deprecated skip_event option) since that's been deprecated since agent 5.3
  • I've tested this with the http_check, and it works fine ; different instances can be run in parallel by multiple check runners
  • we should add some logic in the collector to determine a "good" number of check runners depending on the number of check instances configured. The need for this becomes clear when you have tens of http_check instances configured. I'll add that to our backlog

Thin class that allows running the integrations-core `NetworkCheck`s
out of the box.

Also, added the `default_integration_http_timeout` config parameter
and `AgentCheck` attribute that some checks use.
UP = "UP"


# Deprecated since we don't reporting statuses as events anymore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be "aren't" instead of "don't"

Copy link
Copy Markdown
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

LGTM!

@olivielpeau olivielpeau merged commit 82c2dfe into master Jul 17, 2017
@olivielpeau olivielpeau deleted the olivielpeau/network-checks branch July 17, 2017 15:45
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