HTTP default checks and policies
Summarize
Summary of HTTP default checks and policies
Agent Client Collector offers predefined policies for HTTP health monitoring, enabling ServiceNow customers to track the availability, responsiveness, and performance of HTTP endpoints. These policies include specific checks designed to verify HTTP behavior, response times, and collect detailed HTTP metrics.
Show less
HTTP Entry Point Events Policy
This policy contains checks that monitor HTTP endpoint behaviors and trigger events based on the results.
- Check: util.check-http-follow-redirect
- Verifies the ability to follow HTTP redirects up to a specified number.
- Supports authentication options, AWS credentials for fetching config JSON from S3, and customizable URL monitoring.
- Typical use case: Confirm that redirects are followed correctly to ensure endpoint reachability.
- Example command:check-head-redirect.rb -R 10 -u 'https://servicenow.com'
- Output: Generates an OK event if redirects are successfully followed. - Check: util.check-http-response
- Measures HTTP response time and raises WARNING or CRITICAL events if thresholds are exceeded.
- Allows configuration of warning and critical timeout thresholds in milliseconds.
- Example command:check-head-redirect.rb -R 10 -u 'https://servicenow.com' -w 3000 -c 5000
- Output: Generates events indicating response time status (OK, WARNING, CRITICAL).
HTTP Entry Point Metrics Policy
This policy focuses on gathering detailed HTTP performance metrics using curl, requiring a proxy agent.
- Check: util.metrics-http-curl
- Retrieves granular metrics such as total time, DNS lookup time, connection time, redirect time, start transfer time, and HTTP status code.
- Supports passing additional curl arguments and custom metric naming schemes.
- Example command:metrics-curl.rb -u myURL.com -a -Lk
- Output: Provides precise timing values and HTTP status codes for performance analysis.
Practical Benefits for ServiceNow Customers
- Facilitates proactive HTTP endpoint health monitoring with configurable thresholds and authentication options.
- Enables detection of redirect failures and slow responses that may impact service availability.
- Delivers detailed performance metrics to analyze HTTP request lifecycle stages and identify bottlenecks.
- Supports integration with AWS S3 for dynamic configuration management, enhancing flexibility in cloud environments.
- Outputs standardized events and metrics compatible with ServiceNow’s monitoring workflows for streamlined incident management.
Agent Client Collector provides the following policies for HTTP health monitoring. Policies come with the checks specified in the tables below.
| Type | Check | Description | Usage and Usage Example | Output |
|---|---|---|---|---|
| Event | util.check-http-follow-redirect | Verifies that redirection links can be followed in a set number of requests. | Usage check-head-redirect.rb (options):
Usage example: |
Check Head Redirect OK |
| Event | util.check-http-response | Verifies URL response time and raises a CRITICAL/WARNING event if elapsed time exceeds provided CRITICAL/WARNING thresholds. Otherwise, it raises an OK event. | Usage: check-head-redirect.rb (options)
Usage example: |
Check Head Redirect OK |
| Type | Check | Description | Usage and Usage Example | Output |
|---|---|---|---|---|
| Metric | util.metrics-http-curl | Retrieves metrics on HTTP endpoints using curl. This check requires a proxy agent. |
Usage:
Usage example: |
Check run successfully. Output: ws10.curl_timings.time_total 0.219622 1642749209 ws10.curl_timings.time_namelookup 0.145494 1642749209 ws10.curl_timings.time_connect 0.151103 1642749209 ws10.curl_timings.time_pretransfer 0.168569 1642749209 ws10.curl_timings.time_redirect 0.095899 1642749209 ws10.curl_timings.time_starttransfer 0.219351 1642749209 ws10.curl_timings.http_code 200 1642749209 |