feat: add prometheus.getSilence ,prometheus.query and prometheus.queryRange action components#3229
Merged
forestileao merged 6 commits intosuperplanehq:mainfrom Feb 23, 2026
Merged
Conversation
Signed-off-by: Akinniranye Samuel Tomiwa <benneu40@gmail.com>
Contributor
Author
|
@AleksandarCole @forestileao the final part of the components |
forestileao
reviewed
Feb 23, 2026
…zation Signed-off-by: Akinniranye Samuel Tomiwa <benneu40@gmail.com>
Contributor
Author
|
@forestileao Refactored
|
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Collaborator
|
@samuel-asleep I applied some minor fixes:
|
Collaborator
Collaborator
|
@samuel-asleep Thanks for the contribution. Feel free to claim your bounty. cc: @AleksandarCole |
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.

Adds three new action components to the Prometheus integration:
getSilence,query, andqueryRange.Backend (
pkg/integrations/prometheus/)client.go: ExtendedAlertmanagerSilencewith full Alertmanager v2 fields (Matchers,StartsAt,EndsAt,CreatedBy,Comment,UpdatedAt); addedGetSilence(silenceID string)(GET /api/v2/silence/{id}) andQueryRange(query, start, end, step string)(GET /api/v1/query_range) methodsget_silence.go: Fetches a silence by ID, emitsprometheus.silencepayload, storesGetSilenceNodeMetadata{SilenceID}query.go: Executes instant PromQL query, emitsprometheus.querypayload, storesQueryNodeMetadata{Query}query_range.go: Executes range PromQL query (requiresquery,start,end,step), emitsprometheus.queryRangepayload, storesQueryRangeNodeMetadata{Query}prometheus.go: Registered all three components inComponents()example.go: Embedded example output JSON for all three; addedExampleOutput()methodsFrontend (
web_src/src/pages/workflowv2/mappers/prometheus/)get_silence.ts: Canvas metadata shows silence ID (bell-off); execution details show status, matchers, start/end, creator, commentquery.ts/query_range.ts: Canvas metadata shows PromQL expression (search); execution details show query params, result type, and result counttypes.ts: Added typed interfaces for all three components' configuration, node metadata, and payloadindex.ts: Registered new mappers and event state entries (retrieved/queried)closes #3083
video
2026-02-23.16-22-20.mp4