* Alerting API: Restrict access to Alertmanager configuration to viewers
(cherry picked from commit fc90d47863)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Return 409 Conflict when trying to post folder that already exists
* Fix tests
* Update documentation for new error message in folders api
(cherry picked from commit a18d3007a7)
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* CloudwatchLogs: send error down to client
* Move error handling down to startLiveQuery
(cherry picked from commit 0ae8a85828)
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
* Allow to whitelabeling loading logo
* Add loading_logo to documentation
* Change loading_logo to loading_logo_url
(cherry picked from commit ef05596e07)
Co-authored-by: Selene <selenepinillos@gmail.com>
* Add IsFolder field into models.GetDashboardQuery
* Reverted folderId - return dummy success when calling get folder with id 0
* Moved condition to upper level - add test
(cherry picked from commit 084c9c8746)
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* live: add allowed_origins option (#36318)
(cherry picked from commit 483418dbb0)
* Profile: Fix failing FE reducer test (#36331)
(cherry picked from commit 4434eeaf59)
* update option description to only commit to wilcard symbol for now
* Chore: dummy change to trigger Drone sync
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Fixes bug when switching from Timeseries to Table view when viewing Azure Monitor Metrics Data.
(cherry picked from commit 493d35ccc6)
Co-authored-by: Sarah Zinger <sarahzinger@users.noreply.github.com>
* Alerting: Allow __value__ label in notifications
was being removed by removePrivateItems
discoverd in #36020, but issue is not about that specifically
* __value__ label to __value_string__ annotation
and .ValueString extended property for notifications
(cherry picked from commit 19f764739b)
Co-authored-by: Kyle Brandt <kyle@grafana.com>
* rename strategy
* Update pkg/tsdb/sqleng/sql_engine.go
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
* more strict constraints
* Fixed so that it works on multi series results
* only apply the logic when original query returns 3 fields
* removed part of comment
* Update mysql test
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
(cherry picked from commit 1d6e99bc95)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* setEndsAt
* one more test case
* add should clause to tests
(cherry picked from commit 4732f832f7)
Co-authored-by: David Parrott <stomp.box.yo@gmail.com>
* Alerting: Fix alert permissions migration
for MySQL >= 5.7 and PostgreSQL
* Do not use import struct
(cherry picked from commit 5e534d212c)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Includes panel and dashboard id in alert
extractor errors.
Logs all non-400 dashboard errors.
Fixes#35751
(cherry picked from commit 477d4197fb)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Fix deleting labels and annotations
* Add test
* Keep no data and error start if not provided
* Allow setting interval and for to zero during rule updates
(cherry picked from commit e5a5b8e3fe)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Alerting: Fix alert migration RefID generation
if the alert has more than 26 conditions
* Remove TODO comment
* Make similar change under pkg/expr
(cherry picked from commit c997f646cc)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Allow configuring dataproxy.max_conns_per_host for HTTP data sources.
Ref #35519
Ref #35257
(cherry picked from commit 6531424c72)
Co-authored-by: Javier Palomo <javier.palomo@grafana.com>
Fixes panic/fatal error concurrent map writes in SQL data sources when multiple
queries are executed concurrently and you interpolate SQL query before executing it.
Fixes#35469
(cherry picked from commit 0611207f3b)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* only recurse a symbolic link if it is a directory
* added test for detecting valid plugins using lib dirs with symbolic links in them (like oracle)
* fix linting errors
* added extra checks as per code-review
(cherry picked from commit 83f26e9ce2)
Co-authored-by: Stephanie Closson <srclosson@gmail.com>
#31871 introduced support for configuring timeout in seconds
for HTTP data sources. That had a bug where backend expected
a numeric timeout value where it was actually stored as a
string. This should resolve this by requiring input to be
numbers, storing input as numeric and falling back to string
value if there's no numeric value.
Ref #31871
(cherry picked from commit d15d87db8a)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* make sure queries are only ran once
* test aliases
* use correct dates
(cherry picked from commit eff2410bae)
Co-authored-by: Erik Sundell <erik.sundell@grafana.com>
* Introduce go-conntrack into http client provider
* Fixes according to reviewer's comments
* Fixes according to reviewer's comments
(cherry picked from commit 7cdf8b3705)
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
* fix sql annotation parsing for empty responses
* fix backend when no data returned
* add back frontend changes
Co-authored-by: Ying WANG <ying.wang@grafana.com>
(cherry picked from commit 9a5e10e6fb)
Co-authored-by: Marc Bachmann <marc.brookman@gmail.com>
* Alerting: Allow rules with same title across folders
* Add test
(cherry picked from commit 8cda1f5153)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Fix dashboard alert and nootifier migration for MySQL
* Fix POSTing Alertmanager configuration if no current configuration exists
in case the default configuration has not be stored yet
or has failed to get stored
* Change CreatedAt field type
(cherry picked from commit 15c55b0115)
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>