3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Commit Graph

22764 Commits

Author SHA1 Message Date
Josh Hunt
32232e44d2 E2C: Get Cloud Token status ()
* E2C: Get Cloud Token status

* remove console.log
2024-07-18 09:48:06 +01:00
Andrew Hackmann
41ae376aa4 Influxdb: Fix toMetricFindValue function ()
Improved toMetricFindValue to be quicker
2024-07-18 01:16:07 +03:00
Kristina
044380493e Revert "Explore: Pass the dataframes along with the time range of the data" ()
Revert "Explore: Pass the dataframes along with the time range of the data (#…"

This reverts commit 58285e37a2.
2024-07-17 12:58:07 -05:00
Kristina
6eb695b258 Explore: Add setting for default time offset ()
* Add setting for explore for a different time offset

* fix linter

* Add validation for duration value
2024-07-17 11:47:49 -05:00
Ivan Ortega Alba
bc2cdd82dc DataSourcePicker: Create new data source does not work for subpath () 2024-07-17 19:23:08 +03:00
Tom Ratcliffe
79df1b1e10 Alerting: Remove some unused mock server methods ()
Remove some unused mock server methods
2024-07-17 16:50:25 +02:00
Tom Ratcliffe
919bc47dba Alerting: Move alertmanager warning to consistent place within notification policies ()
Move alertmanager warning to consistent place within notification policies
2024-07-17 16:46:00 +02:00
Sonia Aguilar
42c29cac0b Alerting: Use Runbook URL label everywhere and add validation in the alert rule… ()
* Use Runbook URL label everywhere and add validation in the alert rule form for it

* remove validation in alert rule form and render link on detail view only when its a valid url
2024-07-17 16:40:17 +02:00
Andreas Christou
2616366a0a Prometheus: Reintroduce Azure audience override feature flag ()
* Re-add feature flag with deprecation note

* Hide the field in frontend if ff disabled

* Block scope overriding if ff is disabled in backend

- Update promlib to forward logger to extendOptions
- Add warning
- Update tests

* Default toggle to true for now

* Update description

* Update prom tests

* Fix lint
2024-07-17 15:09:55 +01:00
Ashley Harrison
334657e1cb Navigation: Move scroll behaviour to body ()
* initial attempt at body scrolling

* fix login layout

* minor fixes

* "fix" some fixed position stuff

* remember scroll position in dashboard page

* fix unit tests

* expose chrome header height in runtime and fix connections sticky header

* fix panel edit in scenes

* fix unit tests

* make useChromeHeaderHeight backwards compatible, fix plugin details double scrollbar

* fix sticky behaviour in explore metrics

* handle when undefined

* deprecate scrollRef/scrollTop

* fix extra overflow on firefox
2024-07-17 13:48:47 +01:00
Alex Khomenko
ad6cf2ce4d Restore dashboards: Design review ()
* Update singular case

* More copy & count fixes

* Translate success messages

* Update message

* Split no-deleted message
2024-07-17 15:00:46 +03:00
Ivan Ortega Alba
3559c5c297 Revert "Frontend: Use safe stringifier in parseBody" ()
Revert "Frontend: Use safe stringifier in parseBody ()"

This reverts commit 434f386982.
2024-07-17 14:00:01 +03:00
Piotr Jamróz
58285e37a2 Explore: Pass the dataframes along with the time range of the data ()
* Use data time range for rendering instead of selected range from the picker

* Update CustomContainer to use data time range

* Update test
2024-07-17 11:05:09 +02:00
Joey
995425f022 Tempo: Only generate query for query history if there are filters ()
* Only generate query if there are filters

* Move check
2024-07-17 09:15:41 +01:00
Isabel Matwawana
c13002ee8c Docs: make heading fix in content.ts file () 2024-07-16 18:25:29 -07:00
Adela Almasan
200eb4f774 Canvas: Fix data links migration () 2024-07-16 15:56:21 -05:00
Andrew Hackmann
319a874033 MSSQL: Password auth for Azure AD ()
* Password auth for Azure AD

* rename auth fields

* add azure flag for client password cred enabled

* prettier

* rename flag

* Update go.mod

* Update public/app/plugins/datasource/mssql/azureauth/AzureCredentialsForm.tsx

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Apply suggestions from code review

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* update package

* go mod

* prettier

* remove password

* gowork

* remove unused env test

* linter

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-07-16 14:08:51 -05:00
Ryan McKinley
f3f9cc2e92 Scopes: Avoid dots in example names () 2024-07-16 18:30:36 +03:00
kay delaney
e7f9d592f0 Revert "Scenes: Fixes issue with panel repeat height calculation ()" ()
This reverts commit 5cab595f45.
2024-07-16 17:19:51 +02:00
Lucy Chen
1c031277af Share Drawer: Make adding menu items dynamic ()
make menu dynamic
2024-07-16 10:20:26 -04:00
Kat Yang
881d9c0b83 Fix: Display unit in Overview Tab ()
* fix: display metric name suffix instead of unknown

* chore: add documentation comment; remove unecessary text

* fix: create helper function getUnitFromMetric()

* refactor: make getUnitFromMetric() not use getUnit, return null if unable to identify unit

* test: add test for getUnitFromMetric()

* chore: add documentation comments to functions that get unit

* chore: add comment for tests

* chore: fix imports

* fix: display  if unable to determine metric

* Update public/app/features/trails/ActionTabs/MetricOverviewScene.tsx

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* fix: update the translation files for drone

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-07-16 09:16:55 -04:00
Haris Rozajac
51afb2e484 Make content outline visible and in expanded mode by default ()
* Make content outline visible and in expanded mode by default

* Clean up unused args

* Save content outline visibility in local storage

* Add test

* Expanded state relies on local storage;
2024-07-16 07:15:30 -06:00
Piotr Jamróz
f14ba32ea6 Query Library: Use current namespace when calling API ()
* Use the current namespace

* Enable PeakQ API

* Enable PeakQ API when Query API is enabled

* Enable PeakQ API when Query API & Query Library are enabled
2024-07-16 11:50:38 +02:00
Piotr Jamróz
6750e881e3 Query History: Use a search index on new queries to filter in mixed data sources ()
* Add search index table

* Stab a test

* Add more tests

* Add basic index

* Switch to UID and add a test for the index

* Improve tests coverage

* Remove redundant whitespaces

* Load all data source APIs when query history is loaded

* Fix column type

* Fix migration

* Clean-up the index

* Fix linting

* Fix migrations

* Fix migrations

* Fix migrations

* Rename index to details
2024-07-16 11:47:21 +02:00
Piotr Jamróz
6d9b8225aa Query Library: Use a tooltip to show full query ()
Use a tooltip to show full query
2024-07-16 09:58:31 +02:00
Tobias Skarhed
4c9cb63823 PanelShortcuts: Set attention onMouseEnter ()
Add onMouseEnter to PanelChrome
2024-07-16 09:03:38 +02:00
Haris Rozajac
118597d80f Explore-Query Library: Close drawer when clicking on Run query ()
Close drawer when clicking on Run query
2024-07-15 15:43:22 -06:00
Andriy
3c95f0d2a5 feat: add adobe analytics and cloudflare to the enterprise plugins list () 2024-07-15 18:57:56 +02:00
Darren Janeczek
698f8e2589 ExploreMetrics: disable route if disabled (or missing permissions) ()
* fix: ExploreMetrics require `datasources:explore`

* fix: don't allow routing to explore/metrics if not enabled
2024-07-15 17:35:20 +02:00
Josh Hunt
8f4b76a3de RestoreDashboards: Hide restore/delete actions when no items are selected ()
* RecentlyDeleted: Only show actions when items selected

* RestoreDashboards: Hide actions when no items are selected
2024-07-15 15:38:31 +01:00
Michael Mandrus
542a1bf3ac CloudMigrations: Query Grafana Migration Status for status while the snapshot is in the cloud ()
* implement querying gms for snapshot status

* add some documentation

* provide snapshot resources after snapshot is created

* add rate limiting to backend

* fix compilation error

* fix typo

* add unit tests

* finish merge

* lint

* swagger gen

* more testing

* remove duplicate test

* address a couple PR comments

* update switch statement to a map

* add timeouts to gms client through the http client

* remove extra whitespace

* put method back where it was so the PR is less confusing

* fix tests

* add todo

* fix final unit test
2024-07-15 09:22:57 -04:00
Joey
5beaae8561 FlameGraph: Remove flameGraphItemCollapsing feature toggle ()
Remove feature toggle
2024-07-15 13:45:41 +01:00
Laura Benz
29ac7fd3c4 RestoreDashboards: Improved Empty and Loading states ()
* fix: empty state blocking page completely

* refactor: replace epmty state implementation

* refactor: first step to fix flickering

* refactor: fix TS errors and add translations

* refactor

* tidy up search emptyState default value

* other wip

* clean up

* undo change we made to ssm

* remove log

* comment

* move empty state into seperate file

* remove log

* undo change:

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-07-15 13:45:33 +03:00
Laura Fernández
cd6f018c95 RestoreDashboards: Add event tracking () 2024-07-15 12:00:29 +02:00
Sonia Aguilar
73336362a8 Alerting: Fix silencing from policy instances ()
Fix silencing from policy instances
2024-07-15 11:27:46 +02:00
Andrej Ocenas
aabb4286e3 Correlations: Fix wrong target data source name in the form () 2024-07-15 11:27:32 +02:00
Ivan Ortega Alba
51fab9adf4 SoloPanel: Avoid fatal error when panelId correspond to a row () 2024-07-15 10:29:26 +02:00
Tom Ratcliffe
0547a9ed88 Alerting: Remove unneeded uses of setBackendSrv in alerting tests () 2024-07-15 09:09:24 +01:00
Haris Rozajac
e0416cc0f8 DashGPT: Disable GenAI title and description buttons for empty dashboards ()
* Disable genai title and description buttons when dashboard doesn't have at least one panel with a title or description

* Fix test

* Additional tooltip tests

* address pr feedback

* Fix test: Use const for panel title

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-07-12 11:49:12 -06:00
Adela Almasan
9bc68562d4 Canvas: Element level data links () 2024-07-12 12:02:49 -05:00
Tom Ratcliffe
5d8ca38b9b Alerting: Fix Recording Rules creation issues () 2024-07-12 15:52:45 +01:00
Gilles De Mey
e64ef2245c Alerting: Re-organise rule group hooks () 2024-07-12 16:33:37 +02:00
Brendan O'Handley
da2962418d Explore metrics: Use state for variables to fix labels loading bug ()
* use variable state for loading labels

* UI fix for missing metadata fields

* remove extra space

* add <Trans> for betterer

* import Trans from core, this will need to be addressed when we externalize explore metrics

* make i18n-extract for drone
2024-07-12 08:57:00 -05:00
Ashley Harrison
a6f9336ea1 Chore: SCSS cleanup ()
* migrate _type styles

* migrate queryEditor styles
2024-07-12 14:47:12 +01:00
Galen Kistler
1367d5d721 Logs: Add log line to content outline when clicking on datalinks ()
* feat: add bg color to pinned logs, pin logs when opening datalinks
2024-07-12 08:14:53 -05:00
Dominik Prokop
2d35b11323 DashboardScene: Add rows keyboard shortcuts ()
* DashboardScene: Add rows keyboard shortcuts

* e2e test
2024-07-12 15:13:22 +02:00
Ashley Harrison
8d858b1a82 Chore: Migrate more SCSS ()
* tidy up alerts scss

* clean up alerting page rules

* remove mixins
2024-07-12 13:49:59 +01:00
Ezequiel Victorero
d3a75a42a0 Chore: Update swagger docs () 2024-07-12 09:08:44 -03:00
Josh Hunt
03311f6c6c I18n: Memoize formatDate/formatDuration methods because they're prett… ()
I18n: Memoize formatDate/formatDuration methods because they're pretty slow!!
2024-07-12 10:38:47 +01:00
Ashley Harrison
b321dc7280 Chore: Migrate from react-beautiful-dnd to @hello-pangea/dnd ()
* migrate from react-beautiful-dnd to @hello-pangea/dnd

* revert comment
2024-07-12 10:23:29 +01:00