* LibraryPanels: Fixes update issues related to library panels in rows (#38963)
(cherry picked from commit 17f9bc138e)
* Tests: fixes broken test because of feature not yet backported
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Fix region annotations not displayed correctly when returning timeend column
as epoch timestamp and by that making sure that the returned data frame field
named timeend is treated as time type.
Fixes#38533
(cherry picked from commit fbdaf56a84)
* Alerting: Fix alert flapping in the alertmanager
fixes a bug that caused Alerts that are evaluated at low intervals (sub 1 minute), to flap in the Alertmanager.
Mostly due to a combination of `EndsAt` and resend delay.
The Alertmanager uses `EndsAt` as a heuristic to know whenever it should resolve a firing alert, in the case that it hasn't heard
back from the alert generation system.
Because grafana sent the alert with an `EndsAt` which is equal to the `For` of the alert itself,
and we had a hard-coded 1 minute re-send delay (only applicable to firing alerts) this meant that a firing alert would resolve in the Alertmanager before we re-notify that it still firing.
This commit, increases the `EndsAt` by 3x the the resend delay or alert interval (depending on which one is higher). The resendDelay has been decreased to 30 seconds.
(cherry picked from commit dd502f22eb)
Co-authored-by: gotjosh <josue@grafana.com>
* Add check if the vector is empty
* Use Rows() instead of Len() on field
* Remove redundant condition
(cherry picked from commit 568549e810)
Co-authored-by: idafurjes <36131195+idafurjes@users.noreply.github.com>
* Export fieldName to var
* Add empty string as frame name
(cherry picked from commit 12320dda3c)
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* Provide correct link for AGPL license
* Change LicenseURL to point go Grafana OSS page
* Keep utm_source query parameter
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
(cherry picked from commit 65501cbad3)
Co-authored-by: Witek Bedyk <wbedyk@suse.com>
* Convert tag values returned as numbers to string
This is a bug in Graphite <= 1.1.7. Since 1.1.8 all values are converted to strings.
* Simplify type conversions
* Fix linting errors
(cherry picked from commit f7501ff77f)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Since the datasource settings are configured by the user, the health check error could be a client error. A 506 error may be sufficient as well.
(cherry picked from commit db2e0d46b7)
Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
* Alerting: Refactor `Run` of the scheduler
A bit of a refactor to make the diff easier to read for supporting
external Alertmanagers.
We'll introduce another routine that checks the database for
configuration and spawns other routines accordingly.
* Block the wait.
* Fix test
(cherry picked from commit 442a6677fc)
Co-authored-by: gotjosh <josue@grafana.com>
* simplify toggle + add link to server admin
* feat(catalog): org admins can configure plugin apps, cannot install/uninstall plugins
* fix(catalog): dont show buttons if user doesn't have install permissions
* feat(catalog): cater for accessing catalog via /plugins and /admin/plugins
* feat(catalog): use location for list links and match.url to define breadcrumb links
* test(catalog): mock isGrafanaAdmin for PluginDetails tests
* test(catalog): preserve default bootdata in PluginDetails mock
* refactor(catalog): move orgAdmin check out of state and make easier to reason with
Co-authored-by: Will Browne <will.browne@grafana.com>
(cherry picked from commit cdcccfcc53)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
* only uninstall if update is possible
* add .
* update lingo for clarity
(cherry picked from commit 08a73a5291)
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
* Refactor resample logic
* Adjust test to have one more timestamp out of range
* adjust test + ensure filling
* revert flag flip
* Undo logic - should be timeseries only
* change data calculation based on previous interval
* fix the logics
* fix typo
* fix resample start time, to reuse what sql api returned
* calculate the start point with from truncate by interval
Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Ying WANG <ying.wang@grafana.com>
(cherry picked from commit 180b1973e0)
Co-authored-by: idafurjes <36131195+idafurjes@users.noreply.github.com>
* initial attempt at automatic removal of stale states
* test case, need espected states
* finish unit test
* PR feedback
* still multiply by time.second
* pr feedback
(cherry picked from commit b5f464412d)
Co-authored-by: David Parrott <stomp.box.yo@gmail.com>
This commit makes it possible to use the value string in
annotations and labels for alerts with "{{ $value }}"
(cherry picked from commit 2f4c893cf3)
Co-authored-by: George Robinson <85952834+gerobinson@users.noreply.github.com>
* Azure middleware in HttpClientProxy
* Azure authentication under feature flag
* Minor fixes
* Add prefixes to not clash with JsonData
* Return error if JsonData cannot be parsed
* Return original string if URL invalid
* Tests for datasource_cache
(cherry picked from commit c1963024ec)
Co-authored-by: Sergey Kostrukov <sergey@kostrukov.com>