Skip to content

Comments

feat: Implement Prometheus integration#3122

Draft
cursor[bot] wants to merge 3 commits intomainfrom
cursor/agent-b7170375
Draft

feat: Implement Prometheus integration#3122
cursor[bot] wants to merge 3 commits intomainfrom
cursor/agent-b7170375

Conversation

@cursor
Copy link

@cursor cursor bot commented Feb 15, 2026

feat: Implement Prometheus integration #3083 by adding Alertmanager silence management and advanced query components.


Open in Cursor Open in Web

…ry Range components for Prometheus integration

Implements the five new components for the Prometheus integration:
- prometheus.createSilence: Create a silence in Alertmanager
- prometheus.expireSilence: Expire (delete) a silence in Alertmanager
- prometheus.getSilence: Get a silence by ID from Alertmanager
- prometheus.query: Execute an instant PromQL query
- prometheus.queryRange: Execute a range PromQL query

Includes:
- Extended client with Alertmanager silence APIs and query range support
- Comprehensive unit tests for all new components
- Example output JSON files for each component
- Documentation strings for all components

Closes #3083
Add component mappers, types, and state registries for:
- createSilence: Shows duration and matchers metadata
- expireSilence: Shows silence ID metadata
- getSilence: Shows silence ID metadata with full details
- query: Shows PromQL query metadata
- queryRange: Shows PromQL query and step metadata

Each mapper includes:
- Node display with relevant metadata
- Execution details with component-specific output fields
- Proper state registries (created, expired, retrieved, queried)
@cursor
Copy link
Author

cursor bot commented Feb 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@shiroyasha shiroyasha changed the title Integration 3083 feat: Implement Prometheus integration Feb 15, 2026
@shiroyasha
Copy link
Collaborator

@cursoragent don't forget to run make gen.component.docs.

@cursor
Copy link
Author

cursor bot commented Feb 15, 2026

Done -- I ran make gen.components.docs (via go run scripts/generate_components_docs.go) which regenerated docs/components/Prometheus.mdx with documentation for all five new components: Create Silence, Expire Silence, Get Silence, Query, and Query Range. Also fixed a small typo in the Create Silence example output JSON. Changes are committed and pushed.

Open in Cursor Open in Web

Run make gen.components.docs to generate documentation for:
- Create Silence
- Expire Silence
- Get Silence
- Query
- Query Range

Also fix typo in create silence example output JSON.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 15, 2026

Deploying superplane with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0046de
Status: ✅  Deploy successful!
Preview URL: https://8bb07463.superplane.pages.dev
Branch Preview URL: https://cursor-agent-b7170375.superplane.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants