Skip to content

feat: PromQL-first with full Code-mode feature parity#51

Open
praveen5959 wants to merge 4 commits intomainfrom
alerting
Open

feat: PromQL-first with full Code-mode feature parity#51
praveen5959 wants to merge 4 commits intomainfrom
alerting

Conversation

@praveen5959
Copy link
Copy Markdown
Contributor

No description provided.

  Add end-to-end PromQL support across Explore, Dashboards and Unified
  Alerting, mirroring Grafana's native Prometheus plugin in Code mode.

  - Go backend (pkg/plugin): new /prometheus/api/v1/query{,_range} path
    used by Unified Alerting, with matrix/vector/scalar decoding,
    RFC3339+unix timestamp support, and a URL builder that preserves
    RawQuery (fixes 404s caused by JoinPath escaping `?`).
  - Frontend datasource: PromQL range/instant dispatch, metadata helpers
    (labels, label values, series, metadata, metric names), and typed
    variable queries (label_names, label_values, metrics, query_result).
  - QueryEditor: Monaco-based PromQL editor with tokenizer, context-aware
    completion (metrics + scoped labels/values via /series and /labels
    match[]), signature help, hover docs, Lezer-backed error squiggles,
    per-datasource query history. UTF-8 metric names (`process.cpu.time`)
    are treated as one word for filtering.
  - Alerting: metrics datasets always evaluate as PromQL; non-metrics
    streams keep SQL with a default backfill so /eval never fires empty.
  - Run queries button surfaces in Dashboard and Alerting; Explore keeps
    Grafana's top-bar Run. Blur commits text without auto-running.
  - Dataset terminology: listStreams → listDatasets (via /api/prism/v1/home),
    filtered to metrics-type datasets in PromQL mode.
  - Local-dev: add alertmanager service to docker-compose for alert
    delivery testing (not included in the release bundle).
@praveen5959 praveen5959 changed the title Added alerting UX & sidebar to explore data feat: PromQL-first with full Code-mode feature parity Apr 23, 2026
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.

1 participant