Skip to content

HTTP Sensor

Overview

The HTTP Sensor in Onagre allows users to monitor the availability and response of an HTTP endpoint. It can be configured to send requests at regular intervals, analyze the response, and trigger alerts based on predefined conditions. This sensor is ideal for ensuring that web applications, APIs, and other HTTP-based services are functioning correctly.

Configuration Options

When setting up an HTTP Sensor, the following parameters can be configured:

  • URL: The target endpoint that will be monitored.
  • HTTP Method: The request method to use (GET, POST, PUT, DELETE, etc.).
  • Request Payload (optional): Data to send with POST or PUT requests.
  • Headers (optional): Custom headers to include in the request.
  • Timeout: Maximum time to wait for a response before considering the request as failed.
  • Expected HTTP Status Codes: Define acceptable response codes (e.g., 200 OK, 201 Created).
  • Authentication (optional): Supports Basic Authentication and Bearer Token authentication.
  • Check Interval: Defines how often the request should be sent (e.g., every minute, every five minutes).

Alerts and Notifications

If the sensor detects an anomaly (e.g., timeout, unexpected status code), it can trigger alerts via:

  • Slack, Microsoft Teams, Discord, Google Chat, Webhooks, Pushover
  • Email Notifications
  • Onagre’s Dashboard for Incident Tracking

Use Cases

  • Monitoring the availability of public-facing web applications.
  • Verifying authentication and authorization mechanisms.
  • Tracking response times and performance over time.

Deployment

The HTTP Sensor can be used with both public and private resources. For internal monitoring, Onagre’s private agent can be deployed to securely monitor endpoints that are not accessible from the internet.

Summary

The HTTP Sensor is a powerful tool for monitoring web services, providing real-time insights and alerts to help teams maintain service reliability. With flexible configuration options and integration with modern communication tools, it ensures proactive monitoring of critical web resources.