Skip to main content

Monitoring API Reference

Monitor your applications and infrastructure with real-time metrics, logs, and healthchecks through the Monitoring API. Provides comprehensive observability across your entire deployment.

Endpoints Overview

Log Management

Get Application Logs

Request Body (JSON):
Response:

Create Log Stream

Request Body (JSON):
Response:

Metrics Collection

Get Metrics Snapshot

Request Body (JSON):
Response:

Create Metrics Stream

Request Body (JSON):
Response:

Terminate All Metrics Processes

Request Body (JSON):
Response:

Healthcheck Management

Get Healthchecks

Query Parameters:
  • host (optional): Filter by host
  • application (optional): Filter by application
  • type (optional): Filter by type
Response:

Create Healthcheck

Request Body (JSON):
Response:

Run Healthcheck

Response:

System Information

Get Available Inventory

Response:

Get Uptime Information

Response:

Background Monitoring

Register Application for Background Collection

Request Body (JSON):
Response:

Unregister Application

Request Body (JSON):
Response:

WebSocket Streams

Monitoring API provides real-time streaming capabilities via WebSocket connections:

Log Stream Format

Metrics Stream Format

Error Responses

Best Practices

Log Management

  • Use structured logging with proper levels
  • Implement log rotation and retention policies
  • Set up log aggregation for distributed systems
  • Monitor log patterns for anomalies

Metrics Collection

  • Collect metrics at appropriate intervals
  • Use consistent metric naming conventions
  • Implement metric aggregation and rollup
  • Set up alerting on critical metrics

Healthcheck Design

  • Design healthchecks to test critical functionality
  • Use appropriate timeouts and intervals
  • Implement circuit breaker patterns
  • Monitor healthcheck failures and trends

Performance Optimization

  • Use appropriate sampling rates for metrics
  • Implement caching for frequent queries
  • Optimize database queries and indexes
  • Monitor API performance and resource usage
For detailed schema definitions, refer to the OpenAPI specification published alongside the backend service.