Ivana Huckova
6838af5ce1
Explore/Prometheus: Update default query type option to "Both" ( #28935 )
...
* Update default option to 'both'
* Update public/app/plugins/datasource/prometheus/components/PromExploreExtraField.tsx
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Fix running of queries for both
* Update wording
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-11-20 12:08:10 +01:00
Kemal Akkoyun
0c70308870
Prometheus: Add time range parameters to labels API ( #27548 )
...
* Add time range parameters to labels API
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Fix minor issues
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Add range to explore component
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Add range to query component
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Cache metric names for time range
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* Remove unused method
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Only compare the ranges
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com >
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2020-09-29 11:05:57 +02:00
Ivana Huckova
d7e192a8fe
Prometheus/Explore: Update position of fields in editor ( #27816 )
...
* Update position of buttons
* Refactor, add tests
* Pass onKeydown func
* Update public/app/plugins/datasource/prometheus/components/PromQueryField.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-09-28 21:25:16 +02:00
Ivana Huckova
f6c91d1318
Explore: Remove not running query for collapsed elements ( #27026 )
...
* Make graph and table collapsing just a UI thing
* Remove showingGraph and showingTable, set them defaultly to true
* Remove collaapsing for panels in Explore
* UI toggle WiP
* WIP, add query type
* Refactor, clean up
* Update tests
* Clean uo
* Update rangeAll to range and instant
* Remove console logs
* Update packages/grafana-data/src/types/datasource.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Update public/app/core/utils/explore.ts
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
* Fix prettier error
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2020-09-22 17:31:42 +02:00
Torkel Ödegaard
7e8bd0c1b7
Chore: Fix typescript strict null errors from 674 -> 565 ( #26057 )
...
* Chore: Fix typescript strict null errors
* Added new limit
* Fixed ts issue
* fixed tests
* trying to fix type inference
* Fixing more ts errors
* Revert tsconfig option
* Fix
* Fixed code
* More fixes
* fix tests
* Updated snapshot
2020-07-06 21:16:27 +02:00
Andreas Opferkuch
7e85e4d096
Utils: Use 's' as default for unit-less intervals ( #23248 )
...
* Utils: Use 's' as default for unit-less intervals
If the user specifies a string that is a unit-less number, it is
assumed that they meant seconds.
Fixes #22362
* Rephrase tooltip for better line break position
2020-04-02 13:43:32 +02:00
Lukas Siatka
2693f44a03
Explore: removes handling onBlur action in Explore for Loki and Prometheus ( #22768 )
...
* Explore: turns off actions execution on blur for Loki
* Explore: turns off actions execution on blur for Prometheus
* Explore: updates snapshots for Loki & Prometheus after turning off onBlur
2020-03-13 12:00:02 +01:00
Lukas Siatka
2d3c5064e1
Datasource: updates PromExploreQueryEditor to prevent it from throwing error on edit ( #21605 )
...
* Datasource: updates PromExploreQueryEditor - rewrite to functional component
* Datasource: updates PromQueryField - moves an extra field from children to the separate prop
* Datasource: adds PromExploreExtraField
* Datasource: updates PromExploreQueryEditor - fixes typo
* Datasource: updates prometheus explore editor snapshots
* Datasource: updates PromExploreExtraField export
* Datasource: removes unnecessary div from PromExploreQueryEditor
* Datasource: adds basic PromExploreExtraField snapshot test
* Datasource: adds basic PromExploreQueryEditor test
* Datasource: updates PromExploreQueryEditor snapshot to fix timezone issues
* Datasource: updates PromExploreQueryEditor - onChangeQueryStep cleanup
* Datasource: updates PromExploreQueryEditor test to check ExtraFieldElement render
* Datasource: simplified PromExploreQueryEditor onStepChange method
* Datasource: updates Prometheus module import
* Datasource: updates PromExploreQueryEditor test
* Datasource: updates PromExploreQueryEditor tests
* Datasource: fixes PromExploreQueryEditor error on empty interval init
* Datasource: adds a tooltip to PromExploreExtraField mounted in PromExploreQueryEditor
* Datasource: updates PromExploreQueryEditor snapshots
2020-02-06 12:37:30 +00:00
Lukas Siatka
1de24cc929
Explore: adds PrometheusExploreQueryEditor ( #20195 )
...
* Explore: updates prom query field styles with flex-grow
* Explore: adds prometheus explore query editor
* Explore: updates step input width in prom explore query editor
* Explore: updates prom explore query editor step field input placeholder to auto
* Explore: updates prom explore query editor to include history
* Explore: updates prom explore query editor, removes unused lodash import
* Explore: updates step spacing in prom explore query editor
* Explore: updates prom explore query editor - moves logic to query field
* Explore: updates prom query field - adds step field with conditional rendering
* Explore: updates promql cheat sheet with step description
* Explore: updates prom cheat sheet step description
* Explore: updates styles - adds query row break class
* Explore: moves back step markup to PromExploreQueryEditor
2019-12-23 11:42:31 +01:00