prometheus / prometheus/prometheus
Use Gen AI to generate PromQL queries
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 66.1k
- Forks
- 10.8k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 131
Description
Proposal
This is meant to be a place for us to discuss. I am not proposing how or what exactly we do.
The proposal is we add a way to give prompt within Prometheus UI to generate PromQL queries and could be extended for other use cases if this one is a success.
It can be purely a UI feature, or we do the gen AI API calls from the backend. It probably needs to be the latter to verify the correctness of the query. Prometheus can also optionally attach some helpful information with the prompt to generate better queries, like relevant label-values, but since can have privacy issues, it needs to be opt-in.
For starters, we can support 1-2 API standards. API tokens taken as a config option.
Out of scope / Non goals: Running any sort of model(s) within Prometheus.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Prometheus UI query workflow, PromQL handling, and existing configuration paths for API tokens. The issue is still a proposal covering multiple possible architectures, so a complete implementation plan and an agreed definition of done are needed before coding can begin.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100