Commit Graph

57 Commits

Author SHA1 Message Date
Darren Janeczek
7653da1870
datatrails: add ability to deselect currently metric (#84586)
* feat: ability to deselect currently metric
2024-03-20 21:51:47 -04:00
Darren Janeczek
d58e652cc3
datatrails: include description of related metrics tab (#84525)
* fix: include description of related metrics tab
2024-03-21 00:20:23 +02:00
Darren Janeczek
5d5e22ae11
datatrails: fix: position of new metric exploration button (#84844)
fix: position of new metric exploration button
2024-03-20 18:08:13 -04:00
Darren Janeczek
63e8753aa0
datatrails: integrate dashboard panels with metrics explore (#84521)
* feat: integrate dashboard panels with metrics explore

- add dashboard panel menu items (in non-scenes dashboard) to open
  `metric{filters}` entries detected from queries to launch
  "metrics explorer" drawers for the selected `metric{filter}`

* fix: remove OpenEmbeddedTrailEvent

* fix: use modal manager dismiss capabilities instead
2024-03-18 17:16:38 +01:00
Darren Janeczek
e96836d19e
datatrails: Remove prefix filter (#84661)
* fix: use cascader's clear button

* fix: remove the prefix filter from metric select

* fix: remove supporting code in metric select scene

- For the removed prefix filter

* fix: spacing
2024-03-18 11:00:31 -04:00
Darren Janeczek
767608f3a6
Data trails: use description of data source to shorten label (#84665)
fix: use description of data source to shorten label
2024-03-18 16:23:19 +02:00
Andre Pereira
6241386a96
Data Trails: Sticky main metric graph (#84389)
* WIP

* Refactor code a bit so we can sticky the main graph and tabs

* Make sure it works in Firefox. Avoid annoying warnings in breakdown tab. Update pin metrics graph label

* Small copy change

Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>

---------

Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>
2024-03-18 13:38:17 +02:00
Darren Janeczek
59baa7a4a4
fix: data trails ignore usage syntax (#84610) 2024-03-15 21:27:31 +02:00
Darren Janeczek
e93ba13f7a
datatrails: style: update buttons to secondary solid format (#84526)
* fix: secondary solid buttons for selecting metrics

* fix: secondary solid buttons for selecting labels

* fix: secondary solid buttons for adding filters
2024-03-15 11:00:05 -04:00
Darren Janeczek
73d96b6d1f
datatrails: fix: clearly identify unspecified label values (#84474)
fix: clearly identify unspecified label values
2024-03-14 10:39:01 -04:00
Leon Sorokin
1dc6014b10
Dashboard: Revert descending z-index changes (#83466)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-06 16:31:54 +02:00
Darren Janeczek
6e75584505
datatrails: improve label filter behavior (#83411) 2024-02-28 16:06:31 -05:00
Darren Janeczek
d6b1aa6575
datatrails: standardize loading and blocking message indicators (#83560)
fix: standardize loading and blocking message indicators
2024-02-28 16:05:22 -05:00
Darren Janeczek
fb324fc8ac
datatrails: fix: indicate __ignore_usage__ for preview queries (#82291)
* fix: indicate __ignore_usage__ for preview queries

* fix: further remove var that shouldn't be there

* refactor: move previewPanel code and add tests

* fix: use simpler `AdHocFiltersVariable` state

Co-authored-by: Andre Pereira <adrapereira@gmail.com>

---------

Co-authored-by: Andre Pereira <adrapereira@gmail.com>
2024-02-26 10:01:54 -05:00
Darren Janeczek
11ff4e7b8c
fix: datatrails: start step is "metric select" after reinitializing from URL (#83179)
fix: datatrails: start step is "metric select"

If restoring from a saved data trail, or URL,
the selection of metric becomes a second step.
The first step is always without a metric, and
displays the metric selection scene.
2024-02-25 12:54:10 -05:00
Darren Janeczek
18d1ced069
style: datatrails: indicate prometheus data source (#83199)
* style: indicate prometheus data source
2024-02-23 12:03:40 -05:00
Darren Janeczek
b3c0f69576
style: datatrails: use Tag on cards (#83198)
* style: datatrails: use Tag on cards
2024-02-23 12:03:10 -05:00
Torkel Ödegaard
ea8b3267e5
DataTrails: Sticky controls (#83286)
* DataTrails: Sticky controls

* Update
2024-02-23 16:22:34 +01:00
Darren Janeczek
83c01f9711
datatrails: detect if current trail state is bookmarked (#83283)
* fix: detect if current trail state is bookmarked
2024-02-23 17:00:10 +02:00
Torkel Ödegaard
086e60488f
DataTrails: Remove the adhoc filters label (#83237) 2024-02-22 20:11:09 +01:00
Darren Janeczek
db4b4c4b0a
datatrails: refactor: auto query generator, use more suitable queries (#82494)
* refactor: datatrails auto query generator

* fix: use "per-second rate" instead
2024-02-21 10:52:49 -05:00
Ivan Ortega Alba
3d86d101b7
Dashboards: Use auto and only use AdHocFiltersVariable to manage filters (#81318) 2024-02-13 22:38:26 +02:00
Darren Janeczek
cd09c36448
datatrails: fix: improve performance of related metrics sort (#82285)
fix: improve performance of related metrics sort
2024-02-12 09:52:44 -05:00
Darren Janeczek
a439ee46bf
datatrails: fix: propagate unit to breakdown graphs (#82176)
fix: propagate unit to breakdown graphs
2024-02-08 12:02:03 -05:00
Darren Janeczek
71497c98e8
datatrails: style: improve panel display (#82017)
* style: improve panel display

- Show summary text in hover legends (no queries)
- Show additional description in main panel title
2024-02-08 10:36:20 -05:00
Darren Janeczek
312f8f0f69
datatrails: debounce search and prefix filter (#81842)
fix: debounce search and prefix filter
2024-02-08 10:35:09 -05:00
Darren Janeczek
16df04e260
datatrails: improve width responsiveness for breakdown label selector (#81838)
* fix: make datatrails breakdown label selector responsive
2024-02-06 08:08:57 -05:00
Darren Janeczek
96772e1a32
datatrails: improve handling of error states and disable states (#81669)
* fix: Cascader: allow disabled state

* fix: datatrails metrics selection scene stability
  - clear panels and filter data when datasource changes
  - detect metric names loading / error state and disable components accordingly
  - put all scene variable dependencies together
  - reset metric names without clearing panels when time range changes
2024-02-05 09:45:47 -05:00
Darren Janeczek
bd0fd21852
fix: datatrails verify different time range before creating new history node (#81839)
fix: datatrails verify different time range
2024-02-03 10:20:04 -05:00
Andre Pereira
d0ecf863df
Datatrails: Metric as breadcrumb and style improvements (#81661)
* Fixed duplicate trails entry for first time users. Show header with description for first time users

* Renamed trail to history in History component

* Use metric name in breadcrumb

* Style tweaks around search field in metric select

* Address PR comments

* prettier
2024-02-01 13:01:24 +00:00
Darren Janeczek
7319a75110
feat: datatrails: include metric prefix filter (#81316)
* feat: datatrails: include metric prefix filter

* fix: remove current metric from related metrics list

* fix: Cascader issues

- handle empty items list when generating searchable options
- correct state management to ensure cascade shows cascade
  path of selection from search

* fix: remove custom value creation
2024-01-31 09:33:27 -05:00
Darren Janeczek
c8f47e0c54
datatrails: UI improvements (#81427)
* fix: datatrails: limit width of metric description

* fix: datatrails: use vertical radio list for long label list

* fix: datatrails: reduce spacing between header items

* fix: datatrails: reduce gap in lower toolbar

* fix: change to use Select component for longer lists
2024-01-31 09:27:44 -05:00
Andre Pereira
8440eadec2
Data trails: Homepage redesign (#81496)
* Rename trails and tweak styles in homepage

* Use design system card and update layout. Add createdAt date to trail

* Small style tweaks

* Move queryDef state to metricScene

* Date format update

* More style tweaks

* betterer update

* Use smaller padding on Card and use Badge istead of Tag

* Increase badge max width

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-01-30 13:51:31 +00:00
Darren Janeczek
24a6e6a1b4
fix: datatrails: show a warning when search yields empty results (#81444)
* fix: datatrails: show a warning when search yields empty results
2024-01-29 16:54:56 -05:00
Darren Janeczek
329440cb1e
fix: datatrails: hide graphs when previews disabled (#81423)
fix: datatrails: hide graph when previews disabled
2024-01-29 08:41:53 -05:00
Torkel Ödegaard
1d5edb2a18
DashboardScene: Saving (#81163)
* DashboardScene: First save works

* Updates

* version mismatch works

* Error handling

* save current time range working

* Progress on save as

* Save as works

* Progress

* First tests

* Add unit tests

* Minor tweak

* Update

* Update isDirty state when saving
2024-01-29 12:04:45 +01:00
Andre Pereira
2c7e95a680
Data Trails: Cleanup and explore+share buttons (#81062)
* Share button works now. Removed add to dashboard button for now

* WIP explore link

* Remove settings dropdown for now

* Use getExploreUrl to generate explore link

* Fix conflicts

* Update betterer

* Navigate to a new trail when the recent trails list is empty

* Address PR comments
2024-01-25 20:06:22 +00:00
Darren Janeczek
52550966af
datatrails: allow multiple search terms to help select metric names (#81032)
* datatrails: allow multiple search terms help select metric names
2024-01-23 09:54:19 -05:00
Torkel Ödegaard
5770828871
Scenes: Updates to scene v2.0 (#80953)
* Scenes: Updates to scene v2.0

* Update
2024-01-22 19:22:04 +01:00
Darren Janeczek
fcc11c9290
fix: datatrails: setRecentTrail: remove equivalent entries to new recent trail (#80932)
* fix: datatrails: setRecentTrail: remove equivalent entries

* fix: use lodash to simplify code
2024-01-22 10:07:47 -05:00
Darren Janeczek
2210ed50b4
fix: data-trails get data source name for display (#80922) 2024-01-22 09:42:07 -05:00
Andre Pereira
bb0fa4f99a
Data trails: Add datasource picker to Logs tab and disable it (#80892)
* wip

* Logs are now working

* Remove logs tab, for now?
2024-01-19 14:18:49 +00:00
Andre Pereira
ec18c51dfd
Data trails: Avoid setting state in MetricScene component (#80746)
* Move setting default action view to activate handler

* Update breakdown when adding label to filters
2024-01-18 13:51:56 +00:00
Torkel Ödegaard
c27bee567f
DataTrails: Fixes heatmap (#80706)
* DataTrails: Heatmap y axis fix

* Fix format
2024-01-17 17:05:24 +01:00
Andre Pereira
6b37a887d5
Data trails: Move and rename to explore metrics (#80649)
* Move data trails to /explore/metrics

* Fix breadcrumbs

* Fix label option link
2024-01-17 00:05:44 +02:00
Andre Pereira
d27e2fec88
Data Trails: Actions redesign and overview tab (#80216)
* Use last used datasource or default datasource when starting a trail

* Use tabs and move actions bar to same line when possible

* Added overview tab with description, type and labels

* Clickable labels in overview tab

* Show label value counts next to the label name

* Fix action bar zIndex

* Address PR comments

* Refactor

* Refactor getLabelOptions to utils

* Reuse language provider from state

* betterer

* testing some refactors

* Remove unreachable code

* Refactor GROUP_BY var to MetricScene

* Fix url by excluding var-groupby

* Fix conflicts

* Use <Text/> instead of custom styles

* Simplify setting overview as default tab

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-01-16 20:22:53 +02:00
Darren Janeczek
dbae7ccd3f
refactor: data trails auto query for buckets (#80170)
* refactor: data trails auto query for buckets

* refactor: vizBuilder function signature (#80178)

* fix: use closures for setting unit and title in vizBuilders
2024-01-16 12:46:12 -05:00
Andre Pereira
aa73dfa735
Data Trails: Sync cursor of all breakdown graphs with main metric graph (#80226)
* Sync cursor of all breakdown graphs with main metric graph

* Remove syncs from breakdown scene since they're not needed
2024-01-11 16:10:16 +00:00
Darren Janeczek
796ef05e97
fix: data trails auto query use general generator for unconventional metrics (#80301) 2024-01-10 18:23:41 +01:00
Darren Janeczek
890d6a960f
refactor: data-trails auto query logic (#79435)
* refactor: data-trails auto query logic for most currently identified metric suffixes (excluding `_bucket`)
2024-01-08 09:48:08 -05:00