Skip to content

Use promql-builder for queries #88

@saswatamcode

Description

@saswatamcode

Currently, we maintain all the PromQL queries and strings, and the label matcher methods have to parse and then re-serialize on label matcher additions.

This is a little fragile, plus any global matcher config needs to be a string concat for certain things.

Given we maintain all this in Go, we can use https://github.com/perses/promql-builder/tree/main

The additional benefit to something like this, is that we can probably expose this somehow on dashboard methods, so that downstream users can use the same dashboard "structure" but different queries based on their own exotic setups.

cc: @Nexucis @nicolastakashi

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions