Skip to content

Document PromQL source command in ES|QL editor#5458

Draft
florent-leborgne wants to merge 1 commit intomainfrom
docs/esql-promql-support
Draft

Document PromQL source command in ES|QL editor#5458
florent-leborgne wants to merge 1 commit intomainfrom
docs/esql-promql-support

Conversation

@florent-leborgne
Copy link
Contributor

Summary

  • Adds PROMQL to the source commands list on the ES|QL in Kibana page alongside FROM and TS.
  • Adds a new "PROMQL command" section documenting the command syntax, all 6 parameters (index, step, buckets, start, end, scrape_interval), and example queries.
  • Marked as preview for both stack 9.4 and serverless.
  • Notes Lens line chart suggestion behavior for PromQL time series queries.

Closes #4961

Critical availability check needed

In the Kibana codebase, the PROMQL command is currently hidden: true in production (visible only in test builds). This means the command does not appear in autocomplete or the command list for users. The comment says "TODO: Temporary until making it GA."

We must confirm with the ES|QL team when the hidden flag will be removed before merging this PR. If it remains hidden for 9.4, this PR should be held until the flag is removed.

Additionally, PromQL has seen very active development since the issue was filed (Feb 3), with 13+ PRs merged covering grammar updates, syntax highlighting, validation, pretty-printing, and aggregation support. The documented syntax and parameters reflect the latest code state.

Related Kibana PRs

Coordination needed

A PROMQL command reference page may also be needed in the Elasticsearch reference docs (similar to the existing FROM and TS pages). This should be coordinated with the Elasticsearch reference team.

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No
  1. If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).

Tool(s) and model(s) used: claude-4.6-opus-high in Cursor

Made with Cursor

Add PROMQL to the source commands list and a new section documenting
the PROMQL command syntax, parameters, and examples. Marked as
preview for both stack 9.4 and serverless.

Made-with: Cursor
@github-actions
Copy link
Contributor

✅ Vale Linting Results

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide.

To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions
Copy link
Contributor

🔍 Preview links for changed docs

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.

PromQL support in Kibana

1 participant