[SLO] Add AI-powered auto-discover SLOs feature#253278
Open
drewpost wants to merge 4 commits intoelastic:mainfrom
Open
[SLO] Add AI-powered auto-discover SLOs feature#253278drewpost wants to merge 4 commits intoelastic:mainfrom
drewpost wants to merge 4 commits intoelastic:mainfrom
Conversation
|
💚 CLA has been signed |
Contributor
|
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
eaa47b4 to
592f135
Compare
Adds a new "Auto-discover" creation mode that scans cluster data (APM services, synthetics monitors, log streams, metric sources) and uses AI to propose user-centric SLOs. Users review proposals and create them with one click. Bulk creation uses client-side batching (5 SLOs per batch) with progress tracking to avoid transform startup timeouts on large clusters. Co-authored-by: Cursor <cursoragent@cursor.com>
90f611d to
dedd61e
Compare
Contributor
💔 Build Failed
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Auto-discover creation mode to the SLO creation page that scans the user's cluster data and uses AI to propose user-centric SLOs following SRE best practices.
New API endpoints
POST /internal/slo/ai/discoverPOST /internal/slo/ai/bulk-createPOST /internal/slo/ai/generatePOST /internal/slo/ai/suggestUser flow
/app/slos/create)Files changed
18 files changed (~2,970 lines added)
Server (6 new files):
server/services/ai/slo_generation_prompt.ts— System prompts and output schemas for generate, suggest, and discoverserver/services/ai/get_default_connector.ts— Default AI connector resolution (UI settings → inference plugin EIS fallback)server/routes/slo/ai_discover_slos.ts— Discovery route with cluster scanning + LLM proposalsserver/routes/slo/ai_bulk_create_slos.ts— Bulk create route using createSLOParamsSchemaserver/routes/slo/ai_generate_slo.ts— NL generation routeserver/routes/slo/ai_suggest_slo.ts— Suggestion routeClient (10 new files, 2 modified):
public/hooks/use_discover_slos.ts— React Query mutation for discoverypublic/hooks/use_bulk_create_slos.ts— React Query mutation for bulk createpublic/hooks/use_generate_slo.ts— React Query mutation for NL generationpublic/hooks/use_suggest_slo.ts— React Query mutation for suggestionspublic/pages/slo_edit/components/nl_slo/creation_mode_toggle.tsx— Three-way togglepublic/pages/slo_edit/components/nl_slo/slo_discover_form.tsx— Main auto-discover UIpublic/pages/slo_edit/components/nl_slo/discovered_slo_card.tsx— Individual proposal cardpublic/pages/slo_edit/components/nl_slo/nl_slo_form.tsx— NL generation formpublic/pages/slo_edit/components/nl_slo/slo_preview.tsx— SLO definition previewpublic/pages/slo_edit/components/nl_slo/slo_suggestions.tsx— AI suggestions displaypublic/pages/slo_edit/slo_edit.tsx— Integrated all creation modesserver/routes/slo/route.ts— Registered all AI routesDependencies
inferenceplugin (optional dependency)Test plan
/app/slos/createand verify the three-way toggle appearsMade with Cursor