grafana/public/app
Brendan O'Handley eedcd7d5b1
Prometheus Datasource: Improve Prom query variable editor (#58292)
* add prom query var editor with tests and migrations

* fix migration, now query not expr

* fix label_values migration

* remove comments

* fix label_values() variables order

* update UI and use more clear language

* fix tests

* use null coalescing operators

* allow users to query label values with label and metric if they have not set there flavor and version

* use enums instead of numbers for readability

* fix label&metrics switch

* update type in qv editor

* reuse datasource function to get all label names, getLabelNames(), prev named getTagKeys()

* use getLabelNames in the query var editor

* make label_values() variables label and metric more readable in the migration

* fix tooltip for label_values to remove API reference

* clean up tooltips and allow newlines in query_result function

* change function wording and exprType to query type/qryType for readability

* update prometheus query variable docs

* Update public/app/plugins/datasource/prometheus/components/VariableQueryEditor.tsx

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>

---------

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2023-02-09 15:35:36 -05:00
..
angular Query Caching: Add per-panel query caching TTL (#61968) 2023-02-02 23:39:54 -05:00
core Navigation: add a link to starred dashboards in the megamenu (#62685) 2023-02-08 15:18:13 +00:00
features K8S: cleanup and consolidate feature toggles (#63212) 2023-02-09 09:54:00 -08:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Prometheus Datasource: Improve Prom query variable editor (#58292) 2023-02-09 15:35:36 -05:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes K8S: cleanup and consolidate feature toggles (#63212) 2023-02-09 09:54:00 -08:00
store PublicDashboard: Add RTK Query with loading and error state. Add MSW dependency for testing. (#55518) 2022-09-22 09:35:04 -03:00
types Auth: Refactoring of frontend skipOrgRoleSync logic to backend (#62921) 2023-02-08 20:11:46 +00:00
app.ts Navigation: Ensure command palette is correctly translated (#61103) 2023-02-08 13:15:37 +00:00
AppWrapper.tsx Plugins: Case-sensitive routes for standalone pages (#62779) 2023-02-03 09:01:34 +01:00
dev.ts Chore: Make "why-did-you-render" a dynamic import (#53121) 2022-08-08 15:33:49 +01:00
index.ts Type window.nonce (#51200) 2022-06-22 09:28:05 +01:00