Commit Graph
41222 Commits
Author SHA1 Message Date
Gilles De Mey 020b1adf79 UI: Fix tab href race condition (#78458)
prevent tab clicking from activating the anchor's href

This prevents a very rare race condition when switching tabs very fast or when switching between tabs that update shortly after initial render.
2023-11-21 14:01:29 +02:00
Jean-Philippe Quéméner 670291e8a8 [v9.4.x] fix(alerting): fallback to dashboard to get the full targets PART5 (#78406) 2023-11-20 18:48:15 +01:00
Jean-Philippe Quéméner 7299e24f6e [v9.4.x] fix(alerting): fallback to dashboard to get the full targets PART4 (#78277) 2023-11-16 15:43:22 +01:00
Jean-Philippe Quéméner 974850e81a [v9.4.x] fix(alerting): fallback to dashboard to get the full targets PART 3 (#78240)
[v9.4.x] fix(alerting): fallback to dashboard to get the full targets PART3
2023-11-16 10:37:35 +01:00
Jean-Philippe Quéméner d5bdc3e90d [v9.4.x] fix(alerting): fallback to dashboard to get the full targets… (#77779)
[v9.4.x] fix(alerting): fallback to dashboard to get the full targets PART2
2023-11-07 12:07:21 +01:00
Jean-Philippe Quéméner bf2e034e49 [v9.4.x] fix(alerting): fallback to dashboard to get the full targets (#77693)
* [v9.4.x] fix(alerting): fallback to dashboard to get the full targets

* fix unit test

* fix more tests

* fix go lint
2023-11-06 14:06:59 +01:00
Matthew Jacobson 087cf5a877 [v9.4.x] Alerting: During legacy migration do not create one silence per rule (#77642)
* Alerting: During legacy migration do not create one silence per rule

During legacy migration every migrated rule is given a label rule_uid=<uid>.
This is used to silence migrated alerts if they were:

- Paused in legacy alerting.
- Had Error state set to keep last state.
- Had NoData state set to keep last state.

This can potentially create a large amount of silences and a high cardinality
label. Both of these scenarios have poor outcomes for CPU load and latency in
unified alerting.

Instead, this change opts to create one or more of three labels on each
migrated alert rule as well as three silence rules:

- migration_paused = true
- migration_keep_last_state_error = true
- migration_keep_last_state_nodata = true

 This will drastically reduce the number of created silence rules in most cases
 as well as not create the potentially high cardinalty label `rule_uid`.
2023-11-03 15:12:52 -04:00
grafana-delivery-bot[bot]andYuri Tseretyan a6610343c9 [v9.4.x] Alerting: Fix state manager to not keep datasource_uid and ref_id labels in state after Error (#77392)
* Alerting: Fix state manager to not keep datasource_uid and ref_id labels in state after Error (#72216)

(cherry picked from commit 78fc3bcdf4)

* user QueryError

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2023-11-03 12:05:36 -04:00
Kevin Minehart 4ff3b3e9b8 [v9.4.x] CI: Fix race condition when building docker on main (#77507)
CI: Fix race condition when building docker on main (#77504)

* build docker after packages are updated

* use my branch for main pipelines for testing

* use my branch for main pipelines for testing

* use main instead now

* formatting

(cherry picked from commit f6d3238505)
2023-11-01 18:54:24 +02:00
Kevin Minehart 2972ee8a22 [v9.4.x] CI: Update RGM steps to use the artifacts command (#77474)
CI: Update RGM steps to use the artifacts command (#77470)

* update rgm steps to use artifacts subcmd

* format-drone

* make drone

(cherry picked from commit 8a5d4c4c6e)
2023-10-31 15:40:17 -07:00
Ricky Whitaker 5730aa95bb [v9.4.x] Security Patch CI: Update to newest pr-patch-check.yml. (#77170) 2023-10-25 14:52:36 -05:00
Guilherme Caulada 0f5b0489bb [v9.4.x] CI: Rename scripts that build artifacts to use _build_ (#77015)
CI: Rename scripts that build artifacts to use _build_ (#77005)

Rename scripts that build artifacts to use _build_

(cherry picked from commit 442e533803)
2023-10-24 03:04:53 +03:00
Guilherme Caulada 2b54a169b2 [v9.4.x] CI: Update CI/CD tooling and pipelines from main (#76881)
* CI: Update CI/CD tooling and pipelines from main (#76814)

* CI: Update CI/CD tooling and pipelines from main

* Update Makefile

* Comment out validate_openapi_spec_step

* Update broken frontend tests

* Fix validate-npm-packages regex to work without suffix

* Fix cypress image version

(cherry picked from commit 03ecb1db39)

* Fix path for ./pkg/kindsys/report.go on Makefile

* Re-add ./pkg/cmd/grafana-cli/runner to make gen-go
2023-10-20 12:19:18 -03:00
Dimitris Sotirakis 6365037e69 [v9.4.x] CI: Remove 0.0.0-test tag event (#76666)
CI: Remove `0.0.0-test` tag event (#76662)

Remove 0.0.0-test tag event

(cherry picked from commit faa22b8f20)

# Conflicts:
#	.drone.yml
#	scripts/drone/pipelines/build.star
#	scripts/drone/steps/lib.star
2023-10-17 09:18:55 +01:00
grafana-delivery-bot[bot]andgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> 58b38800a9 [v9.4.x] Changelog: Updated changelog for 9.4.17 (#76454)
Changelog: Updated changelog for 9.4.17 (#76453)

Co-authored-by: grafanabot <bot@grafana.com>
(cherry picked from commit cfc33c12d1)

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 16:24:43 +03:00
Horst Gutmannandgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> 45813b1d3b [v9.4.x] Changelog: Updated changelog for 9.4.17 (#76412)
Changelog: Updated changelog for 9.4.17 (#76409)

Co-authored-by: grafanabot <bot@grafana.com>
(cherry picked from commit a9f7cb00e6)

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 07:21:32 -04:00
grafana-delivery-bot[bot]andgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> a7a2cca9be Release: Bump version to 9.4.18 (#76413)
"Release: Updated versions in package to 9.4.18"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 12:55:48 +03:00
Horst Gutmann 10e4fb4cf2 [v9.4.x] Chore: Upgrade Go to 1.20.10 (#76370)
Chore: Upgrade Go to 1.20.10 (#76355)

* [v10.1.x] Chore: Upgrade Go to 1.20.10

* Rebuild .drone.yml

(cherry picked from commit 4287686420)
2023-10-11 18:03:42 +03:00
Horst Gutmann f6b68f9bf4 [v9.4.x] Building: Remove dependency to urw-fonts in RPM packages (#76223)
Building: Remove dependency to urw-fonts in RPM packages (#76198)

(cherry picked from commit 1355660313)
2023-10-10 09:51:52 +03:00
Ricky Whitaker 76b9390707 [v9.4.x] Adding .github/workflows/create-security-patch-from-security-mirror.yml (#75996)
Adding .github/workflows/create-security-patch-from-security-mirror.yml (#75850)

* Adding .github/workflows/create-security-patch-from-security-mirror.yml

* Added .github/workflows/create-security-patch-from-security-mirror.yml to CODEOWNERS

(cherry picked from commit 6842cc63ec)
2023-10-05 10:53:39 -05:00
grafana-delivery-bot[bot]andJack Baldry e9825f1769 [v9.4.x] [v10.1.x] Docs: Remove duplicate "Legend values" heading (#75891)
[v10.1.x] Docs: Remove duplicate "Legend values" heading (#75800)

Docs: Remove duplicate "Legend values" heading (#75692)

* Replaced legends shared content with text

* Copy and structuring edits

* Removed redundant link

* Prettier

---------

(cherry picked from commit 61b856c7dc)

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit c629e3b09c)

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-10-03 10:26:43 -04:00
Jack Baldry 4d64abd286 Actually remove plugins docs from v9.4.x now that all the links are redirected to https://grafana.com/developers/ (#75612)
* Update `make docs` procedure

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Actually remove the plugins docs now that all the links are redirected to https://grafana.com/developers/

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-28 17:27:20 +01:00
Jack Baldryandbrendamuir 0b51015dc9 fix links (#75524) (#75607)
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-09-28 09:06:03 +01:00
Jack Baldry 4cfad6b007 [v9.4.x] Remove plugins (#75582)
* Delete plugins files comprehensively

* Fix all links to "Sign a plugin" pages

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* [publish_dashboards]

* Fix metadata links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* [publish-technical-documentation-next] Publish from grafana/agent:main/docs/sources

* Fix data-frames redirect

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* add collapse shortcode (#15422)

* Add note about missing rewrites

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix all data-frames links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix links to "plugins"

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix "plugin-sdk-go" links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix backend links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix "Add query editor help" links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix some remaining links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* [publish_plugins]

* [publish-technical-documentation-release] Publish from grafana/grafana:v9.4.x/docs/sources

* Add missing redirects and fix a couple more links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-27 18:23:14 +01:00
brendamuir be49ccde9f fix links (#75524) 2023-09-27 14:22:02 +02:00
grafana-delivery-bot[bot]andgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> a5a8208b2d Release: Bump version to 9.4.16 (#75050)
"Release: Updated versions in package to 9.4.16"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-19 08:53:45 +03:00
Horst Gutmannandgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> b6d733e755 [v9.4.x] Changelog: Updated changelog for 9.4.15 (#75051)
Changelog: Updated changelog for 9.4.15 (#75049)

Co-authored-by: grafanabot <bot@grafana.com>
(cherry picked from commit bc02197f06)

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-19 06:52:35 +01:00
Horst Gutmann 78ec819807 [v9.4.x] Chore: Upgrade Alpine base image to 3.18.3 (#74996)
Chore: Upgrade Alpine base image to 3.18.3 (#74984)

(cherry picked from commit 85abf2bebd)
2023-09-18 13:28:43 +03:00
Horst Gutmann 0ceb86a4c4 [v9.4.x] Chore: Upgrade Go to 1.20.8 (#74981)
Chore: Upgrade Go to 1.20.8 (#74978)

chore: Update to Go 1.20.8
(cherry picked from commit 39dbd98458)
2023-09-18 11:48:43 +03:00
Yuri Tseretyan 6d1747ff16 [v9.4.x] SSE: Fix DSNode to not panic when response has empty response (#74870)
Fix DSNode to not panic when response has empty response (#74866)
2023-09-13 15:17:07 -04:00
grafana-delivery-bot[bot]andbrendamuir d442068cdc [v9.4.x] Alerting docs: adds roll back warning to config grafana (#74828)
Alerting docs: adds roll back warning to config grafana (#74785)

(cherry picked from commit 38c3483594)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-09-13 15:35:54 +03:00
Josh Hunt a86847aff2 [v9.4.x] BrowseDashboards: Only remember the most recent expanded folder (#74812)
BrowseDashboards: Only remember the most recent expanded folder (#74617)

* BrowseDashboards: Only remember the most recent expanded folder

* set to null

* cleanup

* only clear removed folder if it was the most recently opened

* comments + variable

(cherry picked from commit 5cb7eb5884)
2023-09-13 10:55:53 +00:00
grafana-delivery-bot[bot]andJack Baldry ff961d322e [v9.4.x] Fix absolute aliases in contact points page (#74803)
Fix absolute aliases in contact points page (#74672)

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit 5ff999bdae)

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-13 10:40:22 +01:00
Dimitris Sotirakis d868da883e [v9.4.x] Chore: Remove unused secret enterprise2-cdn-path - Nightlies: Push windows artifacts to GCS on main builds (#74789)
* Nightlies: Push windows artifacts to GCS on main builds (#74709)

* Push windows artifacts to gcs

* Lint starlark

* Sign drone

(cherry picked from commit 02f617a20d)

# Conflicts:
#	.drone.yml

* Chore: Remove unused secret `enterprise2-cdn-path` (#74741)

Remove unused secret

# Conflicts:
#	.drone.yml

(cherry picked from commit 49165d35ad)

# Conflicts:
#	.drone.yml
2023-09-13 10:19:24 +02:00
Dimitris Sotirakis a55a38d191 [v9.4.x] Nightlies: Bring back windows installers for main builds (#74705)
Bring back windows installers for main builds (#74698)

(cherry picked from commit 36728dd671)

# Conflicts:
#	.drone.yml
2023-09-12 12:00:50 +03:00
Ieva c37cebb26f [v9.4.x] Search: Improvements for starred dashboard search (#74662)
* fix merge conflicts

* fix test
2023-09-11 16:54:51 +03:00
ismail simsek aa758499ea [v9.4.x] Prometheus: Handle the response with different field key order (#74623)
Prometheus: Handle the response with different field key order (#74567)

* Handle the response with different field key order

* More unit tests to cover edge cases

* Cover more edge cases

* make it simpler

* Better test inputs

(cherry picked from commit 3107459e57)
2023-09-11 13:41:29 +02:00
Yuri Tseretyan 82ac2432d4 SSE: DSNode to update result with names to make each value identifiable by labels (only Graphite and TestData) (#74615)
SSE: DSNode to update result with names to make each value identifiable by labels (only Graphite and TestData) (#73642)

* SSE: DSNode to update result with names to make each value identifiable by labels (only Graphite and TestData) (#71246)

* introduce a function checkIfSeriesNeedToBeFixed to scan all value fields in the response and provide a function that updates Series so they can be uniquely identifiable. Only Graphite and TestData are checked.

* update `DSNode.Execute` to run this function and provide it to WideToMany
* update WideToMany to run the fix function if it is not nil
2023-09-08 15:04:24 -04:00
grafana-delivery-bot[bot]andVictor Marin 0f6c2b6954 [v9.4.x] SQL Datasources: Fix variable throwing error if query returns no data (#74609)
SQL Datasources: Fix variable throwing error if query returns no data (#65937)

* Fix SQL query variable throwing error if query returns no data

* Tests to verify that metricFindQuery returns properly and doesn't throw error

* Fix all codepaths that might throw errors because of undefined backendSrv response

(cherry picked from commit 02a8bc76d2)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
2023-09-08 18:06:45 +03:00
Julien Duchesne 56a1bf85ea [v9.4.x] CI: Get Github Token and Docker username/password from Vault (#74570)
CI: Get Github Token and Docker username/password from Vault (#74555)

CI: Get Docker username/password from Vault
Not Drone secrets

(cherry picked from commit 566215c22c)
2023-09-08 08:31:35 +03:00
Horst Gutmann b887f7eca6 [v9.4.x] CI: Run auto-milestone workflow also on reopened pull-requests (#74524)
CI: Run auto-milestone workflow also on reopened pull-requests (#74390)

(cherry picked from commit 94c9bee181)
2023-09-07 14:40:23 +03:00
grafana-delivery-bot[bot]andDavid Allen cc532753be [v9.4.x] Documentation linting on library_element docs (#74481)
Documentation linting on library_element docs (#74407)

* vale lint documentation changes

* run prettier

---------

Co-authored-by: unknown <antonio.caleromerello@grafana.com>
(cherry picked from commit b0715816d8)

Co-authored-by: David Allen <david.allen@grafana.com>
2023-09-06 22:30:41 +02:00
Christopher MoyerandJack Baldry 0eb06914bd Docs: updates relref (#74413)
* updates relref

* Update docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-06 08:49:37 -05:00
Horst Gutmannandgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> 8562a9732c [v9.4.x] Changelog: Updated changelog for 9.4.14 (#74369)
Changelog: Updated changelog for 9.4.14 (#74367)

Co-authored-by: grafanabot <bot@grafana.com>
(cherry picked from commit c8c9b6b767)

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-05 15:11:22 +03:00
grafana-delivery-bot[bot]andgrafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> 7911bfe2d0 Release: Bump version to 9.4.15 (#74370)
"Release: Updated versions in package to 9.4.15"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-05 14:18:43 +03:00
Gabriel MABILLE 49d3cf745f [v9.4.x] LDAP: Fix user disabling (#74318)
* [LDAP] Disable removed users on login (#74016)

* manual backport of #74016 on legacy code

* LDAP: Fix active sync with large quantities of users (#73834)

* Fix authenticate user test
v9.4.14
2023-09-04 16:14:20 +02:00
grafana-delivery-bot[bot]andIsabel 1e00f2e0ab [v9.4.x] Docs: Fix broken link (#74185)
Docs: Fix broken link (#74141)

* Replaced partial URL with relref

* Changed link path

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit a45d292bf6)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-08-31 13:29:46 -04:00
Jack Baldry ac29b6662d [v9.4.x] Update docs/shared shortcode usage to use keyword argument interface (#73765)
* Update all use of docs/shared in Grafana to use keyword arguments

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Add version inference to remaining Grafana docs/shared usage

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-08-31 11:06:43 +01:00
grafana-delivery-bot[bot]andgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fa6ddc2fba [v9.4.x] Update make docs procedure (#74158)
Update `make docs` procedure (#74152)

Co-authored-by: grafanabot <bot@grafana.com>
(cherry picked from commit 485f07cb7d)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-31 10:20:55 +01:00
grafana-delivery-bot[bot]andKevin Minehart e04c22c3b7 [v9.4.x] Docker: Add musl as a ubuntu dependency (#74130)
Docker: Add musl as a ubuntu dependency (#74127)

Add musl as a ubuntu dependency

(cherry picked from commit 364ca3daa0)

Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2023-08-30 22:02:54 +03:00