diff --git a/x-pack/plugins/observability_solution/observability/public/context/has_data_context/get_observability_alerts.ts b/x-pack/plugins/observability_solution/observability/public/context/has_data_context/get_observability_alerts.ts index 57cc6cec10c8..6fb1fa66731b 100644 --- a/x-pack/plugins/observability_solution/observability/public/context/has_data_context/get_observability_alerts.ts +++ b/x-pack/plugins/observability_solution/observability/public/context/has_data_context/get_observability_alerts.ts @@ -13,7 +13,7 @@ const allowedConsumers = ['apm', 'uptime', 'logs', 'infrastructure', 'alerts']; export async function getObservabilityAlerts({ http }: { http: HttpSetup }) { try { const { data = [] }: { data: Rule[] } = - (await http.get('/api/alerts/_find', { + (await http.get('/api/alerting/rules/_find', { query: { page: 1, per_page: 20,