Prometheus: Support new info function in code editor (#97850)

* first attempt to have info function

* unit test for query modeller

* enable info function in devenv

* fix unit test

* add unit test for info function

* throw error when trying to visualize the info function

* remove visual query support

* Update packages/grafana-prometheus/src/promql.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update packages/grafana-prometheus/src/querybuilder/parsing.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* update info function detail

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
ismail simsek
2025-04-04 13:50:54 +02:00
committed by GitHub
parent 2c0255a72e
commit 1a988df143
7 changed files with 71 additions and 1 deletions

View File

@ -97,6 +97,7 @@ const functions = [
'hour',
'idelta',
'increase',
'info',
'irate',
'label_join',
'label_replace',