grafana/docs/sources
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
..
administration Docs: corrects typo (#62954) 2023-02-06 09:35:13 -06:00
alerting Docs: Fix redaction error in notification policies docs (#63112) 2023-02-08 16:18:49 -03:00
copyright Lint: Fix lint-frontend step error (#60671) 2022-12-22 10:50:20 +00:00
dashboards docs: fix broken annotations link (#62834) 2023-02-06 10:48:42 -06:00
datasources Prometheus Datasource: Improve Prom query variable editor (#58292) 2023-02-09 15:35:36 -05:00
developers Geomap: Update to panelcfg (#63169) 2023-02-09 14:38:06 +02:00
explore Logs: Rename dedup to deduplication (#62944) 2023-02-07 16:17:10 +00:00
fundamentals Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
getting-started update adding new panel wording (#61817) 2023-01-19 13:45:07 -08:00
introduction Docs: removes Grafana Cloud CTA (#62827) 2023-02-03 12:36:46 -06:00
old-alerting Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
panels-visualizations Docs: Update canvas docs for 9.4 (#62923) 2023-02-08 17:11:25 -05:00
release-notes docs: upgrade guide refactor organizes releases into their own pages; moves upgrade guide to the root (#62402) 2023-02-06 22:01:30 +00:00
search Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
setup-grafana K8S: cleanup and consolidate feature toggles (#63212) 2023-02-09 09:54:00 -08:00
shared Docs: incorporates feedback from PR #62402 (#63065) 2023-02-08 08:23:32 -06:00
troubleshooting SupportBundles: Add LDAP bundle collector (#63128) 2023-02-09 16:31:31 +01:00
tutorials TestData: Remove references to TestData "DB" (#62603) 2023-01-31 16:40:00 +00:00
upgrade-guide Docs: incorporates feedback from PR #62402 (#63065) 2023-02-08 08:23:32 -06:00
whatsnew docs: adds what's new video (#63206) 2023-02-09 09:52:03 -06:00
_index.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
cli.md Use relative aliases for all non-current Grafana aliases (#60062) 2022-12-09 12:36:04 -04:00
menu.yaml Docs: library panel (#35272) 2021-06-04 20:13:56 +02:00