> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Monitoring

> Monitor the health and performance of your event ingestion and processing pipeline

The Event Monitoring endpoint helps you track event ingestion and processing in real-time, allowing you to identify bottlenecks and ensure events are flowing correctly through your system.

## API Endpoint

```
GET https://api.cloud.flexprice.io/v1/events/monitoring
```

### Authentication

Include your API key in the request header:

```
x-api-key: <your_api_key>
```

### Request Parameters

This endpoint accepts no query parameters. It automatically monitors the last 24 hours of data for your tenant and environment.

### Response

```json theme={null}
{
  "total_count": 15432,
  "consumption_lag": 245,
  "post_processing_lag": 78
}
```

**Response Fields:**

* `total_count` - Total distinct events stored in ClickHouse in the last 24 hours
* `consumption_lag` - Kafka consumer lag for event processing (number of unprocessed messages)
* `post_processing_lag` - Kafka consumer lag for feature usage tracking (number of unprocessed messages)

## Related Documentation

* [Sending Events](/docs/event-ingestion/sending-events)
* [Event Debugger](/docs/event-ingestion/event-debugger)
* [Troubleshooting](/docs/event-ingestion/troubleshooting)
