Compare commits

..

341 Commits

Author SHA1 Message Date
Xavi Lacasa
47ca5cd934 Fix tests 2024-01-23 19:15:05 +01:00
Xavi Lacasa
26f2f0dd83 Add email verification when updating user email 2024-01-22 23:38:26 +01:00
grafana-delivery-bot[bot]
591c6e09c8 [v10.0.x] Alerting docs: updates eval group and provisioning topics for support (#81072)
Alerting docs: updates eval group and provisioning topics for support (#81066)

(cherry picked from commit f9486ad2ee)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-01-23 14:29:03 +01:00
Dimitris Sotirakis
0f304efaa7 [v10.0.x] : ImagePullSecrets: Add GAR secret to image_pull_secret in .drone.yml (#80916)
`ImagePullSecrets`: Add `GAR` secret to `image_pull_secret` in `.drone.yml` (#80912)

* Add GAR secret to image_pull_secret

* Fix starlark fmt

(cherry picked from commit 65104a7efa)
2024-01-19 19:53:54 +02:00
Alexander Weaver
0f4640dc74 [v10.0.x] Annotations: Split cleanup into separate queries and deletes to avoid deadlocks on MySQL (#80681)
* Annotations: Split cleanup into separate queries and deletes to avoid deadlocks on MySQL (#80329)

* Split subquery when cleaning annotations

* update comment

* Raise batch size, now that we pay attention to it

* Iterate in batches

* Separate cancellable batch implementation to allow for multi-statement callbacks, add overload for single-statement use

* Use split-out utility in outer batching loop so it respects context cancellation

* guard against empty queries

* Use SQL parameters

* Use same approach for tags

* drop unused function

* Work around parameter limit on sqlite for large batches

* Bulk insert test data in DB

* Refactor test to customise test data creation

* Add test for catching SQLITE_MAX_VARIABLE_NUMBER limit

* Turn annotation cleanup test to integration tests

* lint

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
(cherry picked from commit 81c45bfe44)

* Fix interval, logs per backport

* empty commit to kick actions
2024-01-17 11:36:18 -06:00
Alexander Weaver
c36d51c846 [v10.0.x] Chore: Use Github App credentials for pr-commands.yml workflow (#80740)
* manual backport

* Backport all changes from this file
2024-01-17 11:05:49 -06:00
Ashley Harrison
177dfd34b8 [v10.0.x] Release: Deprecate latest.json and replace with api call to grafana.com (#80606)
Release: Deprecate latest.json and replace with api call to grafana.com (#80537)

* remove latest.json and replace with api call to grafana.com

* remove latest.json

* Revert "remove latest.json"

This reverts commit bcff43d898.

* Revert "remove latest.json and replace with api call to grafana.com"

This reverts commit 02b867d84e.

* add deprecation message to latest.json

(cherry picked from commit 127decee1e)
2024-01-16 12:09:43 +00:00
grafana-delivery-bot[bot]
6436e57f1d [v10.0.x] Alerting docs: changes wrong label on configure alert state history doc (#80449)
Alerting docs: changes wrong label on configure alert state history doc (#80438)

(cherry picked from commit d50abe2ea2)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-01-12 16:33:43 +01:00
grafana-delivery-bot[bot]
a8adb7230e [v10.0.x] updated Grafana Open Source documentation (#80393)
updated Grafana Open Source documentation (#80357)

Added missing installation section to run Grafana on Kubernetes

(cherry picked from commit 4e6b0fd9ce)

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2024-01-11 10:15:29 -08:00
grafana-delivery-bot[bot]
f0744ff99c [v10.0.x] Docs: remove tooltip-mode information (#80042)
Docs: remove tooltip-mode information (#79985)

Removed tooltip-mode shared file link

(cherry picked from commit 6da0ce5e01)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-04 14:41:32 -05:00
grafana-delivery-bot[bot]
c75ebc758c [v10.0.x] Docs: adds docs on aggregation functions for alerting (#79741)
Docs: adds docs on aggregation functions for alerting (#78893)

* Docs: adds docs on aggregation functions for alerting

* ran prettier

(cherry picked from commit 524debbe53)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-01-02 12:26:06 +01:00
Andreas Christou
472eea6390 [v10.0.x] Chore: Update grabpl to v3.0.47 (#79788)
Chore: Update `grabpl` (#79758)

Update grabpl

(cherry picked from commit 7ba930b135)

# Conflicts:
#	.drone.yml

Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
2023-12-21 11:42:18 +00:00
grafana-delivery-bot[bot]
ece6a18b3c Release: Bump version to 10.0.11 (#79713)
"Release: Updated versions in package to 10.0.11"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-12-19 19:06:28 +02:00
Jev Forsberg
4df84bf181 [v10.0.x] Changelog: Updated changelog for 10.0.10 (#79706)
Changelog: Updated changelog for 10.0.10 (#79700)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-12-19 09:39:50 -07:00
grafana-delivery-bot[bot]
f70b206d79 [v10.0.x] Docs: Added data source requirement for built-in annotation query (#79655)
Docs: Added data source requirement for built-in annotation query (#78860)

* Docs: Added data source requirement for built-in annotation query

* Fixed wording

* Added more detailed explanation per feedback

(cherry picked from commit 11b2f41a15)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-12-18 11:26:05 -05:00
grafana-delivery-bot[bot]
34ab8a31b8 [v10.0.x] Docs: add description for refresh and regex options in templating (#79647)
Docs: add description for refresh and regex options in templating (#79441)

(cherry picked from commit e6f7ad143a)

Co-authored-by: Denis <7009699+someden@users.noreply.github.com>
2023-12-18 10:37:27 -05:00
Victor Marin
02c89fc38c [v10.0.x] Re-add arm32 builds (#79621)
Re-add arm32 builds (#79496)

* Re-add arm32 builds

* update grabpl version

* make drone

* make drone

* format drone

(cherry picked from commit 9dc015b595)
2023-12-18 10:56:38 +02:00
Timur Olzhabayev
7a570bbe9d [v10.0.x] Chore: Upgrade Go to 1.21.5 (#79562)
Chore: Upgrade Go to 1.21.5 (#79329)

* bumping grafanas go version to 1.21.5

* adding how to upgrade go doc

* removing the whole ci-build and corresponding pipelines

* clarifying that we have to run make drone

* fixing starlark linter and removing unused code

* Adding note about enterprise

* trying to change the underyling image to avoid musl issues

* only need to golang one

(cherry picked from commit 4991e71b85)
2023-12-15 12:46:34 +01:00
grafana-delivery-bot[bot]
035f50c24a [v10.0.x] Docs: Add more detail about mapping olhc values (#79336)
Docs: Add more detail about mapping olhc values (#78963)

(cherry picked from commit 3d5f7a5b22)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-12-11 18:54:55 +02:00
Karl Persson
a2ad77a3f2 [v10.0.x] Auth: id response header (#78882)
Auth: id response header (#77871)

* Add config options for identity id response header

* Add feature to add identity id response header to all responses

* Use util.SplitString

(cherry picked from commit 21f94c5b78)
2023-12-11 09:38:12 +01:00
gotjosh
af73a40d97 [v10.0.x] Alerting: Attempt to retry retryable errors (#79210)
Alerting: Attempt to retry retryable errors (#79161)

* Alerting: Attempt to retry retryable errors

Retrying has been broken for a good while now (at least since version 9.4) - this change attempts to re-introduce them in their simplest and safest form possible.

I first introduced #79095 to make sure we don't disrupt or put additional load on our customer's data sources with this change in a patch release. Paired with this change, retries can now work as expected.

There's two small differences between how retries work now and how they used to work in legacy alerting.

Retries only occur for valid alert definitions - if we suspect that that error comes from a malformed alert definition we skip retrying.
We have added a constant backoff of 1s in between retries.

---------

Signed-off-by: gotjosh <josue.abreu@gmail.com>
(cherry picked from commit c631261681)
2023-12-07 13:17:47 +00:00
grafana-delivery-bot[bot]
cb9f9a0bd7 [v10.0.x] Unified Alerting: Set max_attempts to 1 by default (#79101)
Unified Alerting: Set `max_attempts` to 1 by default (#79095)

* Unified Alerting: Set `max_attempts` to 1 by default

The retry logic for unified alerting has been broken as far as v9.4.x, rather than fixing it in one go and causing a headache to our users with rules putting extra load on their datasources - I think a better approach is to simply set 1 as a default and then let our users change it.

I see two cons with this approach:

- Configuration for legacy to unified alerting cannot be ported over automatically, users will have to manually set `max_attempts` to 3 when migrating.
- Users expecting to get any sort of retrying (as with legacy alerting) will not have it out of the box and will have to manually edit the configuration.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
---------

Signed-off-by: gotjosh <josue.abreu@gmail.com>
(cherry picked from commit 0c9356a3c7)

Co-authored-by: gotjosh <josue.abreu@gmail.com>
2023-12-05 18:57:37 +00:00
gotjosh
b6b8554c5e [v10.0.x] Alerting: Only warm alert state cache if execute_alerts=true. (#78943)
Alerting: Only warm alert state cache if execute_alerts=true. (#78895)

* Alerting: Only warm alert state cache if execute_alerts=true.

If the Grafana instance is not executing alerts, then Warm()-ing the state
manager is wasteful and could lead to misleading rule status queries, as the
status returned will be always based on the state loaded from the database at
startup, and not the most recent evaluation state.

* Move Warm() down to shared conditional.

(cherry picked from commit 520c927931)

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>
2023-12-01 14:23:17 +00:00
grafana-delivery-bot[bot]
5ae3e7efee [v10.0.x] Docs: adds docs on excluding labels (#78887)
Docs: adds docs on excluding labels (#78806)

* Docs: adds docs on excluding labels

* run prettier

* Update docs/sources/alerting/fundamentals/annotation-label/labels-and-label-matchers.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* adds table for display

* ran prettier

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
(cherry picked from commit 1b2a621533)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-11-30 10:33:14 +01:00
grafana-delivery-bot[bot]
af7044122f [v10.0.x] Fixed broken url link for applying annotation in this doc page (#78721)
Fixed broken url link for applying annotation in this doc page (#78673)

* Fixed broken url link

Fixed the incorrect link for applying annotation to the correct documentation page

* fixed the links using Shortcodes

fixed the [annotate visualizations] links using Shortcodes

* Prettier

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

---------

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

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2023-11-28 11:41:33 +02:00
grafana-delivery-bot[bot]
ac761ea9bf [v10.0.x] added youtube video link to the documentation (#78693)
added youtube video link to the documentation (#78680)

Added Grafana Office Hours video link to this documentation which covers more explanation on using Grafana with Docker

(cherry picked from commit 4e40da5554)

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2023-11-27 16:35:56 +02:00
Jack Baldry
3fa0b675bb [v10.0.x] Use latest grafana/docs-base image (#77311)
Use latest grafana/docs-base image (#77299)

* Use latest grafana/docs-base image

The pinned tag does not support recent shortcodes like `docs/public-preview`.

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

* Always pull the image

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit d8d7a40d13)
2023-11-27 11:12:38 +02:00
grafana-delivery-bot[bot]
4d590fe0f9 [v10.0.x] fix: ha_peer to ha_peers (#78397)
fix: ha_peer to ha_peers (#75724)

(cherry picked from commit b3bf38ad68)

Co-authored-by: Arkadip Bhattacharya <in2arkadipb13@gmail.com>
2023-11-20 14:35:39 +01:00
grafana-delivery-bot[bot]
e2b7d2dc8d [v10.0.x] Correcting availability of hashicorp vault integration (#78335)
Correcting availability of hashicorp vault integration (#78321)

Correcting availability

(cherry picked from commit 98cc57b00b)

Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
2023-11-17 09:31:53 -06:00
Horst Gutmann
0a70d1cd1d [v10.0.x] CI: Test backend on feature-toggles documentation changes (#78304)
CI: Test backend on feature-toggles documentation changes (#78177)

Run backend tests if the feature-toggles documentation changes

(cherry picked from commit d78b3fea2f)
2023-11-17 10:41:50 +02:00
grafana-delivery-bot[bot]
98c432ec37 [v10.0.x] Documentation: Update Hubot Integration documentation (#77566)
Documentation: Update Hubot Integration documentation (#76925)

* Update Hubot Integration documentation

The script package has improved over the years to allow for direct uploading to Slack, etc. This updates the documentation to reflect that.

* Apply suggestions from code review

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
(cherry picked from commit c73a2bde9c)

Co-authored-by: Stephen Yeargin <stephenyeargin@users.noreply.github.com>
2023-11-13 11:21:16 -06:00
grafana-delivery-bot[bot]
3e9d3b112d [v10.0.x] Fix incorrect example for PanelURL in template docs (#77769)
Fix incorrect example for PanelURL in template docs (#77755)

(cherry picked from commit f7c4909553)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-11-07 11:02:16 +02:00
Kevin Minehart
b19f02fa88 [v10.0.x] CI: Fix race condition when building docker on main (#77509)
* 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)

* make drone
2023-11-01 09:50:49 -07:00
Kevin Minehart
65b5a97601 [v10.0.x] CI: Update RGM steps to use the artifacts command (#77476)
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:38 -07:00
grafana-delivery-bot[bot]
97c65479dd [v10.0.x] Update configure-team-sync.md (#77226)
Update configure-team-sync.md (#76721)

Team Sync is a feature not available to Grafana Cloud Pro customers.

(cherry picked from commit a652eed287)

Co-authored-by: Ryan Crutchfield <30603182+rjcrutch@users.noreply.github.com>
2023-10-26 11:25:08 -05:00
grafana-delivery-bot[bot]
a430e0d9a9 [v10.0.x] Docs: copy edit (#77220)
Docs: copy edit (#76652)

* copy edit

* Update docs/sources/setup-grafana/configure-grafana/configure-custom-branding/index.md

* Update docs/sources/setup-grafana/configure-grafana/configure-custom-branding/index.md

* Apply suggestions from code review

(cherry picked from commit 4e782e04cf)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-10-26 10:58:22 -05:00
Ricky Whitaker
a127b5ddd3 [v10.0.x] Security Patch CI: Update to newest pr-patch-check.yml. (#77168) 2023-10-25 14:53:34 -05:00
grafana-delivery-bot[bot]
baaf271a1b [v10.0.x] Alerting: Fix confusion around what can and cannot be customized in notifications (#77037)
Alerting: Fix confusion around what can and cannot be customized in notifications (#77032)

* Alerting: Fix confusion around what can and cannot be customized in notifications

* Small fix

* Second small fix

(cherry picked from commit 1cb1d174fd)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-10-24 12:45:37 +01:00
Guilherme Caulada
0518582e0e [v10.0.x] CI: Rename scripts that build artifacts to use _build_ (#77013)
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 02:59:05 +03:00
grafana-delivery-bot[bot]
80a2f701bf [v10.0.x] Docs: Add missing step to install plugin doc (#76939)
* Docs: Add missing step to install plugin doc (#76853)

Add missing step to install plugin doc

(cherry picked from commit 03bf6d6ed4)

* Fix codespell issues

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Rob Whelan <github@jtheory.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-10-23 10:55:22 +03:00
Guilherme Caulada
913d99983f CI: Fix path for ./pkg/kindsys/report.go on Makefile (#76891) 2023-10-20 12:25:19 -03:00
Guilherme Caulada
438200c50d [v10.0.x] CI: Update CI/CD tooling and pipelines from main (#76874)
* 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)

* Comment out kindsysreport/codegen/report.go on Makefile

* Remove modfile step, since modowners doesn't exist

* Disable i18n step
2023-10-20 10:04:18 -03:00
Jack Baldry
67de1e5a1d [v10.0.x] Fix correlation links (#76797)
Fix correlation links (#76738)

* Change link arguments to ensure that they resolve correctly regardless of version

Presently, the links take users to "latest" even if they are in other versions of documentation.
Sometimes, the destination doesn't even exist in "latest".

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

* Make myself CODEOWNER so I can ensure correct linking in the future

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

* Apply suggestions from code review

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
(cherry picked from commit 87ca68540b)
2023-10-19 15:39:22 +01:00
Dimitris Sotirakis
5cc13f4ba7 [v10.0.x] CI: Remove 0.0.0-test tag event (#76668)
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 11:16:47 +03:00
grafana-delivery-bot[bot]
e0bcceaae2 [v10.0.x] Documentation: Clean up Docker installation docs (#76631)
Documentation: Clean up Docker installation docs (#76164)

* docs: fix minor inaccuracies

- give content on the type of data that needs persistence
- Use more precise terminology
  - persistent storage != Docker volumes
  - filesystem changes remains in a stopped container
      and only discard when container removed
  - 'directory' is more accurate than 'folder'
- fix typo: `grafana_data` should be `grafana-storage`

* docs: fix grammar and use 'directory' consistently

* docs: replace 'sqlite3' with 'SQLite version 3'

(cherry picked from commit 67656ebd06)

Co-authored-by: Daniel Li <dan@danyll.com>
2023-10-16 09:29:43 -05:00
grafana-delivery-bot[bot]
4385eb1840 [v10.0.x] Docs: Add a section about using multiple auth providers in Grafana (#74716)
Docs: Add a section about using multiple auth providers in Grafana (#74710)

* Docs: Add a section about using multiple auth providers in Grafana

* Prettier and feedback

(cherry picked from commit e3288834b3)

Co-authored-by: Vardan Torosyan <vardants@gmail.com>
2023-10-16 14:35:11 +02:00
grafana-delivery-bot[bot]
7f7b4dbd51 [v10.0.x] [Docs] Annotate visualizations update (#76464)
[Docs] Annotate visualizations update (#76395)

There is a sentence in the [Built-in query](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/annotate-visualizations/#built-in-query) section of the page that could use a "the" (emphasis added by me 😄) :
> When you copy a dashboard using the Save As feature it will get a new dashboard id, **so annotations created on source dashboard** will no longer be visible on the copy. You can still show them if you add a new Annotation Query and filter by tags. However, this only works if the annotations on the source dashboard had tags to filter by.

This PR adds "the" so the phrase reads "so annotations created on the source dashboard"

(cherry picked from commit 7562607319)

Co-authored-by: Leanna Shippy <11079957+lshippy@users.noreply.github.com>
2023-10-12 11:21:18 -04:00
grafana-delivery-bot[bot]
3734293990 [v10.0.x] Changelog: Updated changelog for 10.0.9 (#76449)
Changelog: Updated changelog for 10.0.9 (#76444)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 16:06:41 +03:00
grafana-delivery-bot[bot]
9c6c097572 Release: Bump version to 10.0.10 (#76427)
"Release: Updated versions in package to 10.0.10"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 14:16:04 +02:00
Horst Gutmann
e651f011b1 [v10.0.x] Changelog: Updated changelog for 10.0.9 (#76426)
Changelog: Updated changelog for 10.0.9 (#76425)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-10-12 14:24:22 +03:00
Horst Gutmann
64485061ba [v10.0.x] Chore: Upgrade Go to 1.20.10 (#76365)
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 17:45:57 +03:00
grafana-delivery-bot[bot]
917aa0aa49 [v10.0.x] fix: Verification typo (#76278)
fix: Verification typo (#73137)

* fix: Verification typo

* fix: change to verification

(cherry picked from commit d25163a645)

Co-authored-by: guangwu <guoguangwu@magic-shield.com>
2023-10-10 10:21:51 -05:00
grafana-delivery-bot[bot]
769a3cfdef [v10.0.x] improved the sentence to make it clear for entering admin in both the username and password (#76275)
improved the sentence to make it clear for entering admin in both the username and password (#76141)

* improved the sentence to make it clear for entering admin in both the username and password

* Update docs/sources/getting-started/build-first-dashboard.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit 186a9c2331)

Co-authored-by: Bilal Khan <64713734+ibilalkayy@users.noreply.github.com>
2023-10-10 10:06:52 -05:00
grafana-delivery-bot[bot]
b88de81001 [v10.0.x] Update Ansible Link in provision Doc (#76228)
Update Ansible Link in provision Doc (#76178)

(cherry picked from commit ecbe191a30)

Co-authored-by: Ishan Jain <51803183+ishanjainn@users.noreply.github.com>
2023-10-10 08:30:50 +01:00
grafana-delivery-bot[bot]
6283c154e1 [v10.0.x] Building: Remove dependency to urw-fonts in RPM packages (#76220)
Building: Remove dependency to urw-fonts in RPM packages (#76198)

(cherry picked from commit 1355660313)

Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-10-10 09:30:55 +03:00
grafana-delivery-bot[bot]
4cc18d2f64 [v10.0.x] Docs: adds K8s installation instructional video (#76149)
Docs: adds K8s installation instructional video (#76147)

adds video

(cherry picked from commit 6086a0916b)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-10-06 15:58:04 -05:00
Ricky Whitaker
6e96bc4b7e [v10.0.x] Adding .github/workflows/create-security-patch-from-security-mirror.yml (#75991)
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:00 -05:00
grafana-delivery-bot[bot]
b57fe8e856 [v10.0.x] TemplateSrv: Fix ad hoc filters not applying correctly when using datasource variables (#76021)
TemplateSrv: Fix ad hoc filters not applying correctly when using datasource variables (#75977)

(cherry picked from commit 374e2a68f6)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2023-10-05 13:56:29 +03:00
grafana-delivery-bot[bot]
b74f4eeaa9 [v10.0.x] Docs: update Grafana Play InfluxDB templated dashboard link (#75921)
Docs: update Grafana Play InfluxDB templated dashboard link (#75919)

Updated grafana play link

(cherry picked from commit 39747c808e)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-03 15:28:01 -04:00
Christopher Moyer
0ea9b81717 Docs: Manual backport - Update grafana configuration documentation (#75717) (#75914)
Docs: Update grafana configuration documentation (#75717)

* docs: Update grafana configuration documentation

* Update sentence

* convert to multiline

(cherry picked from commit 949164232e)

Co-authored-by: Priyanshu Raj <55045459+rpriyanshu9@users.noreply.github.com>
2023-10-03 14:09:27 -04:00
grafana-delivery-bot[bot]
a2ee1969f8 [v10.0.x] Docs: Fix link to developing plugins (#75899)
Docs: Fix link to developing plugins (#75816)

* Docs: Fix link to developing plugins (#75788)

* Update docs/sources/administration/data-source-management/index.md

* Update docs/sources/administration/data-source-management/index.md

* Apply suggestions from code review

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit 2b83d7a168)

Co-authored-by: shaviz2000 <100825441+shaviz2000@users.noreply.github.com>
2023-10-03 10:26:14 -05:00
grafana-delivery-bot[bot]
1425829ac1 [v10.0.x] [v10.1.x] Docs: Remove duplicate "Legend values" heading (#75893)
[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:29:14 -04:00
Jack Baldry
964be9af97 [v10.0.x] Docs: Remove old plugin docs, fix URLs to go to new dev portal (#75325) (#75718)
* Docs: Remove old plugin docs, fix URLs to go to new dev portal (#75325)

* Remove old plugin docs, add redirects to new dev portal

* Restore plugin.schema.json file

* Update docs/sources/administration/plugin-management/index.md

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

* More updates

* Cleanup links

* Update docs/sources/alerting/fundamentals/evaluate-grafana-alerts.md

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

* fix codeowners

* Change reference links to inline links to avoid 404s

* Update docs/sources/datasources/_index.md

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

* Update docs/sources/datasources/mysql/_index.md

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

* Update docs/sources/datasources/postgres/_index.md

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

* Update docs/sources/fundamentals/timeseries-dimensions/index.md

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

* Update docs/sources/fundamentals/dashboards-overview/index.md

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

* Update docs/sources/fundamentals/dashboards-overview/index.md

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

* Update docs/sources/panels-visualizations/configure-standard-options/index.md

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

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

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

* Remove grafana.com from 2 URLs

* Fix 1 more reference link

* Prettier fix

---------

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

* Fix incorrect content

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/evaluate-grafana-alerts.md

* Update docs/sources/administration/data-source-management/index.md

* Update .changelog-archive/CHANGELOG.7.md

* Update docs/sources/datasources/_index.md

* Update docs/sources/developers/_index.md

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-02 19:37:04 +03:00
Guilherme Caulada
542f5f6dd7 Docs: fix CHANGELOG.md 2023-09-29 17:47:16 -03:00
grafana-delivery-bot[bot]
aded614ca7 Release: Bump version to 10.0.9 (#75772)
"Release: Updated versions in package to 10.0.9"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-29 17:23:07 -03:00
Guilherme Caulada
dd3c320e90 [v10.0.x] Changelog: Updated changelog for 10.0.8 (#75770)
Changelog: Updated changelog for 10.0.8 (#75768)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-29 23:02:30 +03:00
grafana-delivery-bot[bot]
d34be5f037 [v10.0.x] Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75736)
Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75735)

(cherry picked from commit dc4091bd34)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2023-09-29 14:39:09 +03:00
Andreas Christou
e39fa14ee3 [v10.0.x] Azure: Add support for Workload Identity authentication (#75732)
* Azure: Add support for Workload Identity authentication (#75681)

* Update Azure Monitor

* Update Prometheus

* Update README

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Beverly <131809838+BeverlyJaneJ@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Beverly <131809838+BeverlyJaneJ@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Beverly <131809838+BeverlyJaneJ@users.noreply.github.com>

* README updates

* Fix prettier

* memoize options

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Beverly <131809838+BeverlyJaneJ@users.noreply.github.com>
(cherry picked from commit 5796836662)

# Conflicts:
#	public/app/plugins/datasource/azuremonitor/components/AzureCredentialsForm.tsx
#	public/app/plugins/datasource/prometheus/configuration/AzureCredentialsForm.tsx

* Fix types
2023-09-29 11:50:12 +01:00
Andreas Christou
7e0d8c3556 [v10.0.x] Azure: Settings for Azure AD Workload Identity (#75686)
* Azure: Settings for Azure AD Workload Identity (#75283)

* Settings for Azure AD Workload Identity

* Update dependency on Grafana Azure SDK

* Documentation

* Fix JS code

* Cleanup Prometheus backend code

* Making prettier happy

(cherry picked from commit 3ee40d3a5a)

# Conflicts:
#	conf/defaults.ini
#	conf/sample.ini
#	docs/sources/setup-grafana/configure-grafana/_index.md
#	go.mod
#	go.sum
#	packages/grafana-runtime/src/config.ts
#	pkg/api/dtos/frontend_settings.go
#	pkg/api/frontendsettings.go
#	pkg/setting/setting_azure.go
#	public/app/plugins/datasource/mssql/azureauth/AzureAuth.testMocks.ts

* Fix build

---------

Co-authored-by: Sergey Kostrukov <sekost@microsoft.com>
2023-09-29 10:05:47 +01:00
grafana-delivery-bot[bot]
6a1427d439 [v10.0.x] alerting: docs : expand new nested policy instructions (#75679)
alerting: docs : expand new nested policy instructions (#75616)

added some clarifications to new nested pol

(cherry picked from commit 6d08050f84)

Co-authored-by: tonypowa <45235678+tonypowa@users.noreply.github.com>
2023-09-29 08:35:16 +02:00
grafana-delivery-bot[bot]
e83ef7e31a [v10.0.x] Docs: enhance disabling presence indicator content (#75674)
Docs: enhance disabling presence indicator content (#75647)

* docs presence indicator disable flag

* Edited

* Fixed typo

* Fixed typo

---------

Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 8771e4957b)

Co-authored-by: Krishna Dhakal <7krishna7dhakal7@gmail.com>
2023-09-28 12:25:06 -04:00
grafana-delivery-bot[bot]
9ca226fd56 [v10.0.x] Docs: state data source queried upon time range change (#75666)
Docs: state data source queried upon time range change (#75639)

* docs changes on time range option

* Removed unneeded sentence, typo fix, and added emphasis

* Fixed prettier linting errors

* Removed emphasis

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
(cherry picked from commit 8a46f9fd02)

Co-authored-by: Krishna Dhakal <7krishna7dhakal7@gmail.com>
2023-09-28 12:05:05 -04:00
grafana-delivery-bot[bot]
c4d6126ce9 [v10.0.x] Fix Grafana Enterprise link (#75642)
Fix Grafana Enterprise link (#75623)

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

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-28 13:08:40 +01:00
Jack Baldry
47e69207f5 Fix administration link to alerting opt out (#75626)
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-28 13:03:55 +01:00
Jack Baldry
29f513371c [v10.0.x] Remove plugins (#75584)
* 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 links to angular-react

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>

* Fix some stray links

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

* [publish_plugins]

* Add missing redirects and fix a couple more links

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

* Use partial URLs to appease `doc-validator` for now

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-27 18:22:29 +01:00
grafana-delivery-bot[bot]
4ce961eae5 [v10.0.x] Update set-up-for-high-availability.md (#75457)
Update set-up-for-high-availability.md (#75356)

* Update set-up-for-high-availability.md

Added a note to Enforce the need to setup separately the Alerting HA, as some customers keep opening tickets complaining about duplicate alerts when setting up Grafana HA.

* Update set-up-for-high-availability.md

Corrected note (alerts instead of wueries)

* Update docs/sources/setup-grafana/set-up-for-high-availability.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/set-up-for-high-availability.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/set-up-for-high-availability.md

* Update docs/sources/setup-grafana/set-up-for-high-availability.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit 1ff116e85c)

Co-authored-by: Marin N <marinnedea@users.noreply.github.com>
2023-09-26 11:04:12 -04:00
Nathan Marrs
b72ae45256 [v10.0.x] Chore: Remove reference to github discussions in canvas and geomap docs (#75309)
Chore: Remove reference to github discussions in canvas and geomap docs (#75258)

(cherry picked from commit 13ea22ac1e)
2023-09-26 08:51:53 -04:00
brendamuir
ea0963ee88 Alerting docs: fixes prometheus link (#75410)
* Alerting docs: fixes prometheus link

* Fix typo

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-09-26 10:59:44 +02:00
grafana-delivery-bot[bot]
a134d3dae4 [v10.0.x] Docs: Add note about rename by regex transform (#75398)
Docs: Add note about rename by regex transform (#75394)

Add note about rename by regex transform

(cherry picked from commit be850b2cbb)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-25 16:28:27 -04:00
Isabel
e7b82b8cb5 [v10.0.x] Docs: update visualization naming conventions - 2 (#75298)
Docs: update visualization naming conventions - 2 (#74954)

* Updated naming style

* Updated viz names on Visualiztions index page

(cherry picked from commit 7cbca0dfa4)
2023-09-22 13:11:48 -04:00
Isabel
00471e95a7 [v10.0.x] Docs: update visualization naming conventions (#75312)
* Docs: update visualization naming conventions  (#74770)

* Fixed naming conventions for several visualizations

* Fixed naming conventions

* Fixed a missed refernce

* Apply suggestions from code review

Co-authored-by: Nathan Marrs  <nathanielmarrs@gmail.com>

* Fixed prettier linting error

---------

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
(cherry picked from commit 2192a34fc4)

* Fixed typo
2023-09-22 13:02:57 -04:00
grafana-delivery-bot[bot]
f2e9b7a6b3 [v10.0.x] Prometheus: Fix applying ad-hoc filters to the expression that has a template variable (#75300)
Prometheus: Fix applying ad-hoc filters to the expression that has a template variable (#75250)

* Interpolate first and then apply ad-hoc filters

* More tests

(cherry picked from commit d076f733e9)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2023-09-22 18:53:37 +03:00
grafana-delivery-bot[bot]
86a6ebd700 [v10.0.x] Templating: Fix cell macro date formatting (#75173)
Templating: Fix cell macro date formatting (#75159)

Closes #70301

(cherry picked from commit 0884f78110)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2023-09-20 17:17:52 +01:00
grafana-delivery-bot[bot]
de6e27e262 [v10.0.x] Transformations: Fix partitionByValues when there is no match (#73048)
Transformations: Fix partitionByValues when there is no match (#72981)

(cherry picked from commit 8d79d45972)

Co-authored-by: Ludovic Viaud <ludovic.viaud@gmail.com>
2023-09-19 09:06:18 -05:00
Horst Gutmann
b37468701f [v10.0.x] Changelog: Updated changelog for 10.0.6 (#75057)
Changelog: Updated changelog for 10.0.6 (#75055)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-19 08:13:04 +01:00
grafana-delivery-bot[bot]
2b8a2ccd2c Release: Bump version to 10.0.7 (#75056)
"Release: Updated versions in package to 10.0.7"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-19 08:53:16 +02:00
Isabel
02ce3c5666 [v10.0.x] Docs: add deep links info (#75038)
Docs: add deep links info (#75017)

add deep links info

(cherry picked from commit 025979df75)
2023-09-18 15:09:03 -04:00
Horst Gutmann
e800a96c6d [v10.0.x] Chore: Upgrade Alpine base image to 3.18.3 (#74994)
Chore: Upgrade Alpine base image to 3.18.3 (#74984)

(cherry picked from commit 85abf2bebd)
2023-09-18 13:17:03 +03:00
Horst Gutmann
fa556f1901 [v10.0.x] Chore: Upgrade Go to 1.20.8 (#74983)
Chore: Upgrade Go to 1.20.8 (#74978)

chore: Update to Go 1.20.8
(cherry picked from commit 39dbd98458)
2023-09-18 12:17:54 +03:00
Christopher Moyer
744b462332 Docs: creates backup files, adds to upgrade guides (#74914)
creates backup files, adds to upgrade guides
2023-09-14 11:02:05 -05:00
grafana-delivery-bot[bot]
0a4e265e7b [v10.0.x] Docs: replace broken link with current docs location (#74931)
Docs: replace broken link with current docs location (#74884)

Replaced broken link with current docs location

(cherry picked from commit fb91919e3b)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-14 11:45:28 -04:00
Yuri Tseretyan
a374ae875c SSE: Fix DSNode to not panic when response has empty response (#74866) 2023-09-13 13:58:56 -04:00
Isabel
3ab18f78f2 [v10.0.x] Docs: Add multiple y-axes guidance (#74282) (#74863)
Docs: Add multiple y-axes guidance (#74282)

* Added multiple y axes shared file

* Added shared content to time series page

* Updated shared content and added to heatmap and bar chart pages

(cherry picked from commit 9a389a80d8)
2023-09-13 18:19:10 +01:00
grafana-delivery-bot[bot]
3946483d31 [v10.0.x] Docs: Fix nightly builds link (#74844)
Docs: Fix nightly builds link (#73964)

* Fix nightly builds link

Replace dead link for nightly OSS builds

* Updated link

* Got updated link

* Fixed link properties

(cherry picked from commit a482795a96)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-13 10:19:08 -04:00
grafana-delivery-bot[bot]
ee9e04992d [v10.0.x] Docs: add dashboards folder naming guidance (#74774)
Docs: add dashboards folder naming guidance (#74772)

* Added folder naming guidance

* Fixed prettier linting errors

(cherry picked from commit b4ac0eee54)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-13 10:01:26 -04:00
grafana-delivery-bot[bot]
5bc2dd6fee [v10.0.x] RBAC: Fix search user permissions (#74836)
RBAC: Fix search user permissions (#74729)

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
(cherry picked from commit 729f9a01a0)

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-09-13 16:30:44 +03:00
grafana-delivery-bot[bot]
fc3716d122 [v10.0.x] Alerting docs: adds roll back warning to config grafana (#74830)
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:36:14 +03:00
Josh Hunt
7de38a4f8d [v10.0.x] BrowseDashboards: Only remember the most recent expanded folder (#74819)
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 12:03:01 +00:00
grafana-delivery-bot[bot]
597115e408 [v10.0.x] Docs: 404 fix - updated alerting link (#74814)
Docs: 404 fix - updated alerting link (#74628)

* Fixed contact points link in 8.4 what's new

* Updated link per Jack's suggestion

(cherry picked from commit 84106568aa)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-13 12:57:10 +02:00
grafana-delivery-bot[bot]
fd95a8c9bc [v10.0.x] Fix contact points aliases and add additional for /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/ (#74804)
Fix contact points aliases and add additional for `/docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/` (#74673)

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

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

Remove unused secret

# Conflicts:
#	.drone.yml

(cherry picked from commit 49165d35ad)

# Conflicts:
#	.drone.yml
#	scripts/drone/vault.star

* 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
2023-09-13 11:24:47 +03:00
ismail simsek
67479fa240 [v10.0.x] Prometheus: Handle the response with different field key order (#74738)
* 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)

* Fixes
2023-09-12 16:14:19 +02:00
lean.dev
532f010c95 [v10.0.x] Licensing: Pass func to update env variables when starting plugin (#74679)
* Licensing: Pass func to update env variables when starting plugin (#74620)

(cherry picked from commit 5e0b20266e)
2023-09-12 10:07:10 -03:00
Dimitris Sotirakis
c79ccb1c9e [v10.0.x] Nightlies: Bring back windows installers for main builds (#74707)
Bring back windows installers for main builds (#74698)

(cherry picked from commit 36728dd671)

# Conflicts:
#	.drone.yml
2023-09-12 11:56:18 +03:00
grafana-delivery-bot[bot]
030520a40d [v10.0.x] Doc: Remove Cloud Pro and Advanced references (#74676)
Doc: Remove Cloud Pro and Advanced references (#74050)

Removed Cloud plan references

(cherry picked from commit a90e3f67e4)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-11 09:41:23 -04:00
Sofia Papagiannaki
79a31f54c6 [v10.0.x] Nested folders: Fix folder hierarchy in folder responses (#74581)
Nested folders: Fix folder hierarchy in folder responses (#74516)

Nested folders: Fix hierarchy in folder response

(cherry picked from commit 9fcee9b206)
2023-09-08 08:54:10 +00:00
Julien Duchesne
45f1d43a37 [v10.0.x] CI: Get Github Token and Docker username/password from Vault (#74568)
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:32:18 +03:00
Horst Gutmann
c004019e9e [v10.0.x] CI: Run auto-milestone workflow also on reopened pull-requests (#74526)
CI: Run auto-milestone workflow also on reopened pull-requests (#74390)

(cherry picked from commit 94c9bee181)
2023-09-07 14:40:32 +03:00
grafana-delivery-bot[bot]
ae73f46517 [v10.0.x] Auth: Fix set basicrole to the previous role in UI on error from backend (#74512)
Auth: Fix set basicrole to the previous role in UI on error from backend (#74395)

fix: onchange effect to set basicrole when error from backend
(cherry picked from commit 87e8b654a2)

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
2023-09-07 11:53:51 +03:00
grafana-delivery-bot[bot]
babd6a83ce [v10.0.x] Docs: Fix a typo issue (#74507)
Docs: Fix a typo issue (#74498)

Update _index.md

Fix typo issue

(cherry picked from commit 1ed6071f95)

Co-authored-by: Neo Jiang <arsenal.neo@gmail.com>
2023-09-07 10:40:17 +02:00
grafana-delivery-bot[bot]
8260205f64 [v10.0.x] Documentation linting on library_element docs (#74483)
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:31:19 +02:00
grafana-delivery-bot[bot]
829e6ca91b [v10.0.x] Docs: adjustments to Ubuntu install based on user feedback (#74472)
Docs: adjustments to Ubuntu install based on user feedback (#74406)

* adjustments based on user feedback

* makes prettier

* Apply suggestions from code review

* Update docs/sources/setup-grafana/installation/debian/index.md

* Update docs/sources/setup-grafana/installation/debian/index.md

(cherry picked from commit e027f1ef10)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-09-06 11:03:59 -05:00
grafana-delivery-bot[bot]
649958636f [v10.0.x] Docs: Add basic query option descriptions (#74466)
Docs: Add basic query option descriptions  (#74419)

* fixes 66291

* Update docs/sources/dashboards/variables/add-template-variables/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/dashboards/variables/add-template-variables/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 9319a906b2)

Co-authored-by: David Allen <david.allen@grafana.com>
2023-09-06 11:44:25 -04:00
grafana-delivery-bot[bot]
ff412e31db [v10.0.x] Docs: Fix broken link (#74469)
Docs: Fix broken link (#74410)

* fixes #68263

* Update docs/sources/panels-visualizations/visualizations/time-series/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/time-series/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 0fd19e6e3c)

Co-authored-by: David Allen <david.allen@grafana.com>
2023-09-06 11:42:15 -04:00
grafana-delivery-bot[bot]
0a8c3e5130 [v10.0.x] Docs: Correct broken link and update reference (#74450)
Docs: Correct broken link and update reference (#74349)

* Update index.md

This commit addresses a broken link found in the documentation related to the "Prometheus dashboard with repeating panels".

- The link provided on line 98, leading to [Prometheus dashboard with repeating panels](https://play.grafana.org/d/000000036/prometheus-repeat), appears to be no longer active.

**Proposed Change**:
- In order to maintain the illustrative and informative nature of the documentation, I'm suggesting we substitute the broken link with a reference to another relevant blog post or article. [How to automatically repeat rows and panels in dynamic dashboards](https://grafana.com/blog/2020/06/09/learn-grafana-how-to-automatically-repeat-rows-and-panels-in-dynamic-dashboards/)

Thank you for considering this change.

* Update docs/sources/panels-visualizations/configure-panel-options/index.md

Thanks for the feedback and review :)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 12de22b771)

Co-authored-by: Rodrigo Tavares <rodrigo.actavares@gmail.com>
2023-09-06 11:14:37 -04:00
grafana-delivery-bot[bot]
8487fe302c [v10.0.x] Docs: Replace relref with docs/ref link (#74393)
Docs: Replace relref with docs/ref link  (#74215)

* Replaced relref with docs/ref link and fixed docs/ref shortcode content

* Removed trailing slashes

(cherry picked from commit 34be361299)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-05 10:51:13 -04:00
Horst Gutmann
4259492898 [v10.0.x] Changelog: Updated changelog for 10.0.5 (#74381)
Changelog: Updated changelog for 10.0.5 (#74378)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-05 14:44:26 +02:00
grafana-delivery-bot[bot]
82fa303888 Release: Bump version to 10.0.6 (#74380)
"Release: Updated versions in package to 10.0.6"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-09-05 12:43:26 +00:00
grafana-delivery-bot[bot]
1413841850 [v10.0.x] PromLink: Fixes promlink test failing in CI and locally (#74362)
PromLink: Fixes promlink test failing in CI and locally (#74299)

(cherry picked from commit 39b3b08926)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-09-05 11:47:29 +03:00
grafana-delivery-bot[bot]
d43336a53c [v10.0.x] docs: updates broken link (#74235)
docs: updates broken link (#74219)

updates broken link

(cherry picked from commit 1a6b88e0c9)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-08-31 15:29:46 -05:00
grafana-delivery-bot[bot]
67e6326377 [v10.0.x] Docs: reorder visualizations pages (#74216)
Docs: reorder visualizations pages (#74047)

* Changed order of visualization docs

* Fixed weight of missed page

(cherry picked from commit 27c4362135)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-08-31 14:51:21 -04:00
grafana-delivery-bot[bot]
03f4ed6500 [v10.0.x] Docs: Fix 404s (#74178)
Docs: Fix 404s (#74138)

* Fixed broken links

* Replaced relref with doc ref

* Replaced relrefs with doc refs

* Removed trailing slash and fixed wording

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

---------

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

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-08-31 13:43:40 -04:00
grafana-delivery-bot[bot]
974af0c65a [v10.0.x] Docs: Remove docs reference to removed feature (#74181)
Docs: Remove docs reference to removed feature (#74139)

* Changed docs version in link

* Removed reference to dashboard previews docs

* Added back reference and replaced partial URL with relref

* Remove reference to removed docs

(cherry picked from commit b2f7476bb4)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-08-31 13:32:29 -04:00
Jack Baldry
b44d662ed7 [v10.0.x] Update docs/shared shortcode usage to use keyword argument interface (#73759)
* 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:05:14 +01:00
grafana-delivery-bot[bot]
2e3815a041 [v10.0.x] Docs: Update docs on comparisions with $values (#74164)
Docs: Update docs on comparisions with $values (#74156)

(cherry picked from commit 164161b41a)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-08-31 10:38:41 +01:00
grafana-delivery-bot[bot]
fb2ecbbdcd [v10.0.x] Update make docs procedure (#74160)
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:24 +01:00
grafana-delivery-bot[bot]
f9abe90e4c [v10.0.x] Docker: Add musl as a ubuntu dependency (#74132)
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 12:55:13 -05:00
grafana-delivery-bot[bot]
31b1a7bfef [v10.0.x] LDAP: Fix user disabling (#74107)
* [LDAP] Disable removed users on login (#74016)

* [LDAP] Disable removed users on login

* Fix tests

* Add test for user disabling

* Add tests for disabling user behind auth proxy

* Linting.

* Rename setup func

* Account for reviews comments

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

---------

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
(cherry picked from commit f900098cc9)

* manual backport of #74016

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

* Fix middleware test

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Gabriel MABILLE <gabriel.mabille@grafana.com>
2023-08-30 16:35:38 +02:00
grafana-delivery-bot[bot]
369882272c [v10.0.x] Add LICENSE file to generated Docker images (#74101)
Add LICENSE file to generated Docker images (#74082)

(cherry picked from commit 6277c04caf)

Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-08-30 14:38:11 +03:00
Dimitris Sotirakis
9f7c35dcaa [v10.0.x] CI: Mount /root/.docker/ dir in authenticate-gcr step (#74078)
CI: Mount /root/.docker/ dir in authenticate-gcr step  (#73977)

Mount /root/.docker/ dir

(cherry picked from commit eea4adea29)

# Conflicts:
#	.drone.yml
2023-08-30 11:11:28 +03:00
grafana-delivery-bot[bot]
89613f79ac [v10.0.x] Docs: Include Cloud support with RBAC API (#74055)
Docs: Include Cloud support with RBAC API (#73522)

Update access_control.md

Update to show that RBAC HTTP API can be used with a Cloud account also.

(cherry picked from commit d8fd4c2cbe)

Co-authored-by: sarah-spang <86264026+sarah-spang@users.noreply.github.com>
2023-08-29 12:23:16 -07:00
grafana-delivery-bot[bot]
e5960a82fb [v10.0.x] Update _index.md - fix a typo (#74037)
Update _index.md - fix a typo (#63847)

Update _index.md

Fix a typo

(cherry picked from commit 0ca5ecbe7f)

Co-authored-by: yeya <yeya@users.noreply.github.com>
2023-08-29 17:15:54 +02:00
Guilherme Caulada
894e9fa6de [v10.0.x] CI: Use new release eng managed grafanacom api key (#74034)
CI: Use new release eng managed grafanacom api key (#74017)

Use new release eng managed grafanacom api key

(cherry picked from commit ab7e655737)
2023-08-29 12:07:47 -03:00
grafana-delivery-bot[bot]
013301c903 [v10.0.x] Secrets: Add user_auth.o_auth_id_token column to migrator (#73932)
Secrets: Add user_auth.o_auth_id_token column to migrator (#72239)

(cherry picked from commit 81a639bd1b)

Co-authored-by: Joan López de la Franca Beltran <5459617+joanlopez@users.noreply.github.com>
2023-08-29 15:57:37 +02:00
Horst Gutmann
2902e9551b [v10.0.x] CI: Different secret for verification and do not ignore build failures (#73616)
CI: Different secret for verification and do not ignore build failures (#73613)

(cherry picked from commit 8fc3be6b5a)
2023-08-29 11:05:26 +03:00
grafana-delivery-bot[bot]
0b0260784d [v10.0.x] Correct path for repo on RHEL based distros (#73939)
Correct path for repo on RHEL based distros (#73840)

(cherry picked from commit 116337f474)

Co-authored-by: Samuel Roberts <sproberts92@users.noreply.github.com>
2023-08-28 09:32:41 -05:00
Dimitris Sotirakis
2867953492 [v10.0.x] Security: Authenticate to GCR for trivy scans (#73924)
Security: Authenticate to GCR for trivy scans (#72658)

* Authenticate to GCR for trivy scans

# Conflicts:
#	.drone.yml

* verify-starlark

* Change secret

# Conflicts:
#	.drone.yml

(cherry picked from commit e100fc927e)

# Conflicts:
#	.drone.yml
2023-08-28 15:51:49 +03:00
grafana-delivery-bot[bot]
aca814c8a5 [v10.0.x] Pa11y: Temporarily increase threshold (#73905)
Pa11y: Temporarily increase threshold (#73817)

Update pa11y threshold to unblock prs

(cherry picked from commit 61835f0bec)

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2023-08-28 13:05:53 +03:00
grafana-delivery-bot[bot]
83f0a20004 [v10.0.x] CI: Run gen-cue on bump-version (#73886)
CI: Run gen-cue on bump-version (#73885)

(cherry picked from commit 372f32963d)

Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-08-28 10:35:20 +02:00
grafana-delivery-bot[bot]
aa43b26e8b [v10.0.x] access control api: Correction of typo in list your permissions endpoint (#73847)
access control api: Correction of typo in list your permissions endpoint (#64399)

Correction of API endpoint

Correction of an API endpoint in 'List your permissions' section. Current endpoint results in 404 page

(cherry picked from commit cb040a72bd)

Co-authored-by: bojankezele <79632099+bojankezele@users.noreply.github.com>
2023-08-25 16:56:10 +02:00
grafana-delivery-bot[bot]
8bf6b93a1f [v10.0.x] Docs: change headings on 2 data source pages for SEO (#73836)
Docs: change headings on 2 data source pages for SEO (#73792)

* changed grafana alerting titles and headings

* changed H1 heading for SEO

(cherry picked from commit b654e5642c)

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-08-25 08:53:19 -05:00
grafana-delivery-bot[bot]
243af55d61 Release: Bump version to 10.0.5 (#73716)
* "Release: Updated versions in package to 10.0.5"

* Update version to 10.0.5 in gen.ts files

---------

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-08-24 07:22:09 +01:00
grafana-delivery-bot[bot]
14249a28a4 [v10.0.x] Transformations Documentation: Add Images for Disable and Delete (#73718)
Transformations Documentation: Add Images for Disable and Delete (#73452)

(cherry picked from commit 86a9cf3306)

Co-authored-by: Kyle Cunningham <codeincarnate@users.noreply.github.com>
2023-08-23 16:21:27 -05:00
grafana-delivery-bot[bot]
f9a9f3bbe9 [v10.0.x] Changelog: Updated changelog for 10.0.4 (#73713)
Changelog: Updated changelog for 10.0.4 (#73712)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-08-23 23:35:29 +03:00
grafana-delivery-bot[bot]
81a800662b [v10.0.x] Docs: Introduction topic title update (#73705)
Docs: Introduction topic title update (#73702)

updates introduction topic title to be consistent with Grafana Cloud and other products

(cherry picked from commit 2d388cfa55)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-08-23 13:11:18 -05:00
Yuri Tseretyan
a45f09112a SSE: DSNode to update result with names to make each value identifiable by labels (only Graphite and TestData (#73646)
* 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-08-23 09:10:17 -04:00
grafana-delivery-bot[bot]
f88972c76f [v10.0.x] Alerting docs: fix duplicate titles (#73682)
Alerting docs: fix duplicate titles (#73680)

* Alerting docs: fix duplicate titles

* makes titles match

(cherry picked from commit 356d8872bd)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-08-23 14:38:18 +02:00
grafana-delivery-bot[bot]
551ae2e9de [v10.0.x] docs: fix okta oauth endpoints (#73672)
docs: fix okta oauth endpoints (#73191)

* fix okta oauth endpoints

* Fixed table borders

(cherry picked from commit e81f6a7b0b)

Co-authored-by: Tristan Otterpohl <82106086+Otterpohl@users.noreply.github.com>
2023-08-23 07:20:58 -05:00
grafana-delivery-bot[bot]
64d8179adc [v10.0.x] Doc: Update index.md - update Keycloak redirect URI (#73667)
Doc: Update index.md - update Keycloak redirect URI (#72971)

(cherry picked from commit 2543765978)

Co-authored-by: Jan Garaj <info@monitoringartist.com>
2023-08-23 12:52:39 +02:00
grafana-delivery-bot[bot]
08c545cf3b [v10.0.x] Connections: Redirect from outdated URLs (#73570)
Connections: Redirect from outdated URLs (#73278)

Connections: redirect from outdated URLs
(cherry picked from commit 88cdc38afa)

Co-authored-by: mikkancso <miklos.tolnai@grafana.com>
2023-08-23 11:14:10 +02:00
grafana-delivery-bot[bot]
76ae8351bd [v10.0.x] Codeowners: Add myself (Miki) as codeowner of connections and datasources (#73630)
Codeowners: Add myself (Miki) as codeowner of connections and datasources (#73623)

add mikkancso as connections, datasources codeowner

(cherry picked from commit cf9da12975)

Co-authored-by: mikkancso <miklos.tolnai@grafana.com>
2023-08-23 10:30:09 +02:00
Dimitris Sotirakis
a9e979b354 [v10.0.x] CI: Update secrets for publishing steps (#73661)
CI: Update secrets for publishing steps (#73658)

Update secrets

(cherry picked from commit de118a3736)

# Conflicts:
#	.drone.yml
2023-08-23 11:29:56 +03:00
grafana-delivery-bot[bot]
df7a11ee0f [v10.0.x] Changelog: Updated changelog for 10.0.3 (#73591)
Changelog: Updated changelog for 10.0.3 (#73590)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-08-22 08:03:50 +02:00
grafana-delivery-bot[bot]
85bd2639bc [v10.0.x] disable a feature toggle that is on by default (#73578)
disable a feature toggle that is on by default (#69438)

* disable a feature toggle that is on by default

We document how to enable a feature toggle, but not how to disable one. This adds the config setting to disable a toggle that is on by default.

* remove "alpha"

Alpha features are not the only ones that can be enabled, and we don't use the term "alpha" anymore.

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* makes prettier

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
(cherry picked from commit 4a6057db65)

Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2023-08-21 12:32:45 -05:00
grafana-delivery-bot[bot]
59e2bfca79 [v10.0.x] docs: update cloudflare and plotly angular guide (#73555)
docs: update cloudflare and plotly angular guide (#73554)

* docs: update cloudflare and plotly angular guide

* fix typo

(cherry picked from commit 56f4def666)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-08-21 11:16:20 +01:00
grafana-delivery-bot[bot]
16c1868fc4 [v10.0.x] Docs: Fix URL encoding @ Keycloak logout example (#73550)
Docs: Fix URL encoding @ Keycloak logout example (#71970)

(cherry picked from commit 5e50580d06)

Co-authored-by: Bruno Melo <bsilva.melo@gmail.com>
2023-08-21 10:00:39 +01:00
grafana-delivery-bot[bot]
2d5288b27d [v10.0.x] Update make docs procedure (#73546)
Update `make docs` procedure (#73540)

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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-21 09:18:03 +01:00
grafana-delivery-bot[bot]
83f137024c [v10.0.x] CI: Improve error handling in gcloud copy operations (#73538)
CI: Improve error handling in gcloud copy operations (#73474)

(cherry picked from commit 220ea869be)

Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-08-21 09:20:48 +03:00
Ricky Whitaker
16fd832a72 [v10.0.x] Sync-mirror GHA updates #73511 (#73511)
Sync-mirror GHA updates (#73504)

fixing sync-mirror run-name and altering concurrency to use branch name

(cherry picked from commit 4047cdb213)
2023-08-18 12:54:04 -05:00
Nathan Marrs
2a897f3264 [v10.0.x] Canvas: Fix data links (#73453)
Canvas: Fix data links (#73332)

(cherry picked from commit 451d5a25b2)

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
2023-08-18 09:15:44 -07:00
grafana-delivery-bot[bot]
42df01b07d [v10.0.x] Docs: Add Grafana Cloud to PDF sharing (#73495)
Docs: Add Grafana Cloud to PDF sharing (#73492)

Added Grafana Cloud to PDF sharing

(cherry picked from commit ac98f469a4)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-08-18 11:12:17 -04:00
Horst Gutmann
3826d6fe54 [v10.0.x] CI: Move npm token to Vault (#73456)
CI: Move npm token to Vault (#73407)

(cherry picked from commit c86a73c794)
2023-08-18 08:59:34 +03:00
grafana-delivery-bot[bot]
12842063a2 [v10.0.x] Docs: Update dashboards api create/update (#73419)
Docs: Update dashboards api create/update (#73345)

(cherry picked from commit bb3a2d31d7)

Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
2023-08-17 12:36:05 -05:00
grafana-delivery-bot[bot]
bd7596ce58 [v10.0.x] Update make docs procedure (#73388)
Update `make docs` procedure (#73359)

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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-17 15:48:49 +01:00
Dimitris Sotirakis
ce40646f56 [v10.0.x] CI: Update grabpl to v3.0.41 (#73378)
CI: Update `grabpl` to `v3.0.41` (#73373)

Update grabpl

(cherry picked from commit 3463dc8e48)

# Conflicts:
#	.drone.yml
2023-08-17 13:05:54 +03:00
grafana-delivery-bot[bot]
1f933cc54f [v10.0.x] docs: update signature level guidance (#73370)
docs: update signature level guidance (#73368)

docs: update signature level guidances
(cherry picked from commit ccbd31fe1f)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-08-17 10:00:52 +01:00
grafana-delivery-bot[bot]
561f9dcb7a [v10.0.x] Grafana versioning: Remove pre suffix from Grafana version (#73366)
Grafana versioning: Remove `pre` suffix from Grafana version (#73357)

* Remove pre suffix from version

* Fix tests

(cherry picked from commit 0aba319ea0)

Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
2023-08-17 11:23:28 +03:00
grafana-delivery-bot[bot]
bf5aff082e [v10.0.x] Docs: Fixed Grafana Fundamentals tutorial to match updated UI (#73341)
Docs: Fixed Grafana Fundamentals tutorial to match updated UI (#73168)

* Update index.md

The word `Configuration` was used to describe an action for getting started, when the actual UI has the word `Administration` and not Configuration. Updated the docs to reflect the actual environment created.

* Update index.md

Updated the tutorial to match the current UI options

* Made copy edits for styling and consistency with Cloud fundamentals tutorial

Made some copy edits to match our style guide and to make this tutorial a bit more consistent with the Cloud version. Also added the step for updating the legend back to the build dashboards section.

* Ran linter

* Edited text to match updated UI

Made edits to match UI behaviour as well as some further style edits.

* Made final copy edits

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
(cherry picked from commit cc1ea31616)

Co-authored-by: C M <40527412+glitchwizard@users.noreply.github.com>
2023-08-16 14:04:59 -04:00
grafana-delivery-bot[bot]
7d4e370cae [v10.0.x] DataSourceProxy: Fix url validation error handling (#73321)
* DataSourceProxy: Fix url validation error handling (#73087)

* DataSourceProxy: Fix url validation error handling

* DataSourceProxy: Add unit test for proxyDatasourceRequest

* DataSourceProxy: Fix lint error

(cherry picked from commit 8ec4c1bdc8)

* fix test

---------

Co-authored-by: Ricardo Christmann <80476005+ricci2511@users.noreply.github.com>
Co-authored-by: Will Browne <will.browne@grafana.com>
2023-08-16 18:26:51 +03:00
grafana-delivery-bot[bot]
305b3aff15 [v10.0.x] Docs: correct SAML docs (#73285)
Docs: correct SAML docs (#73281)

Correct SAML docs

(cherry picked from commit 2848be9035)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-08-15 16:59:32 +02:00
grafana-delivery-bot[bot]
53e279c1ea [v10.0.x] Update index.md (#73199)
Update index.md (#73183)

* Update index.md

* Update docs/sources/setup-grafana/configure-security/configure-authentication/okta/index.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit a9d2bbc814)

Co-authored-by: Kevin Burke <kevin.burke@segment.com>
2023-08-11 10:54:34 -05:00
grafana-delivery-bot[bot]
6d8d617c74 [v10.0.x] docs: remove Moogsoft from angular list, update version for helm (#73205)
docs: remove Moogsoft from angular list, update version for helm (#73204)

(cherry picked from commit 63ffd95110)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-08-11 16:43:52 +01:00
grafana-delivery-bot[bot]
4ba2bea2de [v10.0.x] AzureMonitor: Allow serviceTags and tags to be empty for trace results (#73196)
AzureMonitor: Allow `serviceTags` and `tags` to be empty for trace results (#73145)

Allow serviceTags and tags to be empty

(cherry picked from commit 95546551bc)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-08-11 15:29:09 +03:00
grafana-delivery-bot[bot]
4a26f6a368 [v10.0.x] docs: remove strava from angular plugin list (#73194)
docs: remove strava from angular plugin list (#73192)

(cherry picked from commit a70d2d39f6)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-08-11 13:25:16 +01:00
grafana-delivery-bot[bot]
8a8758a5b7 [v10.0.x] Update [analytics] section to include the ability to set to false (#73174)
Update [analytics] section to include the ability to set to false (#71473)

* Update [analytics] section to include the ability to set to false

In the follow section:

https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#analytics

Added a line for 'enabled' under the [analytics] section to include the ability to set to false as this is now a togglable feature.

* Update docs/sources/setup-grafana/configure-grafana/_index.md

* Update docs/sources/setup-grafana/configure-grafana/_index.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit ff1fdac675)

Co-authored-by: Milton Prado <89411595+Ptoricanmilt@users.noreply.github.com>
2023-08-10 15:42:44 -05:00
grafana-delivery-bot[bot]
4d0697f38b [v10.0.x] Docs: Update to include keycloak link in oauth docs (#73171)
Docs: Update to include keycloak link in oauth docs (#72698)

Update to include keycloak link in oauth docs

(cherry picked from commit 3c289d8a08)

Co-authored-by: Jess Sartin <jdoherty513@gmail.com>
2023-08-10 15:22:55 -05:00
grafana-delivery-bot[bot]
2aecfedacb [v10.0.x] Cloud Monitoring: Support AliasBy property in MQL mode (#73165)
Cloud Monitoring: Support AliasBy property in MQL mode (#73116)

(cherry picked from commit eeefa7dd22)

Co-authored-by: Alyssa Bull <58453566+alyssabull@users.noreply.github.com>
2023-08-10 20:03:26 +03:00
grafana-delivery-bot[bot]
1ef5d152f8 [v10.0.x] Docs: Fix broken links to create-plugin docs (#73129)
Docs: Fix broken links to create-plugin docs (#72965)

* Fix broken links to create-plugin docs

* Typo fix

* Fix additional broken link

* Fix additional links

(cherry picked from commit eb6e19c7af)

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2023-08-09 15:06:21 -05:00
grafana-delivery-bot[bot]
ebc381ecd8 [v10.0.x] Update _index.md (#73118)
Update _index.md (#72562)

Fixes # https://github.com/grafana/support-escalations/issues/6887

Configure HA: Added ha_peer_Timeout global config in the unified alerting

(cherry picked from commit cda78c6fe8)

Co-authored-by: arunkg2787 <131352769+arunkg2787@users.noreply.github.com>
2023-08-09 18:40:34 +02:00
grafana-delivery-bot[bot]
37d59a9aa3 [v10.0.x] Add a warning in the documentation (#73072)
Add a warning in the documentation (#72975)

A partner complained in the name of a customer. They have 6k datasources and it took them some time to figure out why they only had 5k coming back.

This commit add a warning for this edge case, content is pretty clear.

(cherry picked from commit 5eef8291e2)

Co-authored-by: Clément Duveau <clement@duveau.eu>
2023-08-09 00:21:15 +03:00
grafana-delivery-bot[bot]
135cceb830 [v10.0.x] Docs: Update screenshots for generating an access token for signing a plugin (#73034)
Docs: Update screenshots for generating an access token for signing a plugin (#73031)

updated screenshots path and name

(cherry picked from commit 3c4d2edb61)

Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2023-08-08 11:30:34 +02:00
grafana-delivery-bot[bot]
bf0730b35f [v10.0.x] docs: add default value workaround (#73003)
docs: add default value workaround (#72545)

* Update _index.md

Fixes #https://github.com/grafana/support-escalations/issues/6376

Variables : Added Default values

* Update docs/sources/dashboards/variables/_index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Ran prettier to resolve build errors

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit 54f0de313f)

Co-authored-by: arunkg2787 <131352769+arunkg2787@users.noreply.github.com>
2023-08-07 12:48:56 -04:00
grafana-delivery-bot[bot]
a570d080c9 [v10.0.x] sign-plugin-docs: information of usage of a new token has been added to the docs (#72987)
sign-plugin-docs: information of usage of a new token has been added to the docs (#72912)

* Documentation for signing a plugin has been updated

* changes after review

* small review change

(cherry picked from commit ba3cbbef7f)

Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2023-08-07 07:14:17 -07:00
grafana-delivery-bot[bot]
bd320b75ee [v10.0.x] Prometheus: Fix fetching label values when datasource has no labels match api support (#72984)
Prometheus: Fix fetching label values when datasource has no labels match api support (#72960)

* interpolate match string

* provide unit test

* add the third parameter back to fix the unit test

(cherry picked from commit 29906847e1)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2023-08-07 16:22:02 +03:00
Christopher Moyer
172abdc95e [Docs v10.x] Manual backport - Docs/k8s install update (#72567) (#72946)
* Docs/k8s install update (#72567)

* added before you begin section

* just syncing up

* added namespace and yaml mainfest sections

* started the managed k8s section

* added external-ip section

* added minikube instructions

* added deployment rollout section

* added rolling update section

* added rollback stratgety section

* added the logging section

* fixed many typos

* Update docs/sources/setup-grafana/installation/kubernetes/index.md

* Update docs/sources/setup-grafana/installation/kubernetes/index.md

* Update docs/sources/setup-grafana/installation/kubernetes/index.md

* Update docs/sources/setup-grafana/installation/kubernetes/index.md

* Update docs/sources/setup-grafana/installation/kubernetes/index.md

* adjust codeblock spacing

* adjusts steps

* copy edit throughout

* Apply suggestions from code review

* more copy edit, updates links

* fixed minor typos

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions from code review

* explained the dry-run example

* Move .codespellignore out of Drone so that technical writers can modify it

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

* Fix spelling errors

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

* Add .codespellignore CODEOWNER

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit b1fd399c10)

* Ensure changes are correct for this branch

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-08-04 13:09:09 -05:00
grafana-delivery-bot[bot]
7232d6e9ff [v10.0.x] Update bind-net-capabilities.md (#72919)
Update bind-net-capabilities.md (#65181)

This doc fragment is included on multiple pages including this one: https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/

the only flaw is it's missing "sudo".  Modern linux practice suggests using sudo for all administrative edits like this, and this change reinforces parallel structure in the target docs page.  There may potentially be some other context this fragment is used in where sudo isn't appropriate, but this makes it easier to copy/paste the command and have it work on modern linuxes.

(cherry picked from commit 0d6e911fff)

Co-authored-by: David Allen <david.allen@grafana.com>
2023-08-04 06:41:40 -07:00
grafana-delivery-bot[bot]
9846054226 [v10.0.x] Update index.md (#72850)
Update index.md (#71680)

* Update index.md

Updated the notes section per https://github.com/grafana/support-escalations/issues/6202

* Update docs/sources/setup-grafana/configure-grafana/configure-custom-branding/index.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit 515677c938)

Co-authored-by: deresolution20 <85902399+deresolution20@users.noreply.github.com>
2023-08-03 15:11:48 -05:00
lwandz13
686b466420 Docs: Prometheus yaml file needs to be fixed (#72654) (#72699)
fixed yaml

(cherry picked from commit 65febbc8ec)
2023-08-03 09:00:28 -05:00
grafana-delivery-bot[bot]
df714976be [v10.0.x] Update start-restart-grafana.md (#72767)
Update start-restart-grafana.md (#72737)

* Update start-restart-grafana.md

Closes https://github.com/grafana/grafana/issues/72309

* Update docs/sources/setup-grafana/start-restart-grafana.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
(cherry picked from commit 4d7d2d6519)

Co-authored-by: David Allen <david.allen@grafana.com>
Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
2023-08-03 07:46:40 -05:00
grafana-delivery-bot[bot]
d573fbc99d [v10.0.x] Update _index.md (#72801)
Update _index.md (#72317)

* Update _index.md

Adding popular open-source proxy options so users don't have to do further research if they don't want to

* ran Prettier

* Update docs/sources/setup-grafana/configure-security/_index.md

Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>
(cherry picked from commit 916f3008f9)

Co-authored-by: cmo-pomerium <91488121+cmo-pomerium@users.noreply.github.com>
2023-08-03 13:49:36 +03:00
grafana-delivery-bot[bot]
53fb485b9a [v10.0.x] Usage stats: Tune collector execution startup and interval (#72789)
Usage stats: Tune collector execution startup and interval (#72688)

* Do not update statistics at service collector startup

* Configurable collector interval

* Introduce initial random delay

* Prevent reporting metrics until the stats have been collected

* Apply suggestion from code review

(cherry picked from commit afb59af79b)

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-08-03 11:40:03 +03:00
grafana-delivery-bot[bot]
d1943c3931 [v10.0.x] Alerting: added description to api resource (#72795)
Alerting: added description to api resource (#70597)

* added description to api resource

* prettier now

(cherry picked from commit b6c8ac6dd1)

Co-authored-by: tonypowa <45235678+tonypowa@users.noreply.github.com>
2023-08-03 10:21:33 +02:00
grafana-delivery-bot[bot]
adbac6d857 [v10.0.x] Tempo: Only get span_names when they are in the response (#72788)
Tempo: Only get span_names when they are in the response (#72663)

* Only get span names when they are in the response

* Find span_name field/labels

(cherry picked from commit b4c55765fe)

Co-authored-by: Joey <90795735+joey-grafana@users.noreply.github.com>
2023-08-03 08:51:17 +01:00
grafana-delivery-bot[bot]
3548cc0c6c [v10.0.x] Update _index.md (#72700)
Update _index.md (#72222)

The existing link will take new users to the Data Source Management page which falls under that administration section and is perhaps more advanced that we want for a new user. The updated link takes new users to what I think was the intended "Data Sources" page.

(cherry picked from commit b8118520e4)

Co-authored-by: Iain Finlayson <ruffiain@gmail.com>
2023-08-02 11:06:31 -05:00
Jack Baldry
01d1701f02 [v10.0.x] Update all links that have destinations outside of /docs/grafana/latest/datasources/ to use shortcode (#72624)
Update all links that have destinations outside of /docs/grafana/latest/datasources/ to use `docs/reference` shortcode (#72051)

* Update all links that have destinations outside of /docs/grafana/latest/datasources/ to use docs/reference shortcode



* Fix typo



* Prettier



---------


(cherry picked from commit 2b14b2d564)

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-08-02 14:48:01 +01:00
grafana-delivery-bot[bot]
cb32f0ecab [v10.0.x] AzureMonitor: Add hardcoded namespaces to improve coverage (#72717)
AzureMonitor: Add hardcoded namespaces to improve coverage (#72629)

Add hardcoded resources

(cherry picked from commit 95f8cc09c7)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-08-02 12:18:09 +01:00
grafana-delivery-bot[bot]
62d53d1f73 [v10.0.x] docs: remove broken plugin from Angular guidance (#72706)
docs: remove broken plugin from Angular guidance (#72614)

aceiot-svg-panel fails to load in G10 and is therefore (currently) an unviable alternative

(cherry picked from commit 01100f83ba)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-08-02 11:34:36 +01:00
Konrad Lalik
4e5606311a [v10.0.x] Alerting: Fix refetching grafana rules on alert list panel (#72333)
Fix refetching grafana rules on alert list panel (#72242)
2023-08-01 08:51:05 +02:00
grafana-delivery-bot[bot]
34ed40e78e [v10.0.x] Clarify necessary rediss scheme for TLS with redis caching (#72272)
Clarify necessary rediss scheme for TLS with redis caching (#72122)

Update index.md

To enable TLS with Redis you must use the `rediss` scheme, not the `redis` scheme. This is documented here: https://www.iana.org/assignments/uri-schemes/prov/rediss

(cherry picked from commit e03303997a)

Co-authored-by: chrisharbro <102977229+chrisharbro@users.noreply.github.com>
2023-07-31 15:14:22 -05:00
grafana-delivery-bot[bot]
39eab08fe1 [v10.0.x] Docs: changed titles and punctuation (#72645)
Docs:  changed titles and punctuation (#72637)

fixed some format issues and punctuation

(cherry picked from commit 0fbfd1ebe6)

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-07-31 14:26:08 -05:00
ismail simsek
d858c59c85 [v10.0.x] InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72641)
InfluxDB: Fix fetching retention policies after manually entering a non-existent retention policy (#72564)

Don't fetch tag keys before fetching policies

(cherry picked from commit 31f4eddbb6)
2023-07-31 21:01:04 +02:00
grafana-delivery-bot[bot]
1e1b4558a4 [v10.0.x] Update team_sync.md (#72615)
Update team_sync.md (#70423)

(cherry picked from commit a13130f503)

Co-authored-by: Zvonimir Burić <zvonimir.buric@gmail.com>
2023-07-31 17:03:58 +01:00
grafana-delivery-bot[bot]
e232d16508 [v10.0.x] Update the sign in docs to contain more precise information. (#72622)
Update the sign in docs to contain more precise information. (#71698)

* Update sign-in-to-grafana.md

* updates link

---------

Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
(cherry picked from commit d279d926a4)

Co-authored-by: Paweł Krawczyk <71645192+Pawel-Kr@users.noreply.github.com>
2023-07-31 11:03:02 -05:00
grafana-delivery-bot[bot]
e53dec0fd3 [v10.0.x] Docs: remove references to groups_attribute_path for Okta and GitLab docs (#72589)
Docs: remove references to `groups_attribute_path` for Okta and GitLab docs (#72588)

remove references to groups_attribute_path for Okta and GitLab

(cherry picked from commit b96d6e2c8d)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-07-31 13:33:54 +03:00
grafana-delivery-bot[bot]
800eb52100 [v10.0.x] docs: fix broken links (#72584)
docs: fix broken links (#72582)

* docs: fix broken link

To reflect changes on plugin-tools site

* fix more links

(cherry picked from commit d250927850)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-07-31 11:23:39 +01:00
grafana-delivery-bot[bot]
3c4f6644c1 [v10.0.x] Changelog: Updated changelog for 10.0.1 (#72574)
Changelog: Updated changelog for 10.0.1 (#72573)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-31 09:52:44 +03:00
grafana-delivery-bot[bot]
58e853b622 [v10.0.x] Docs: fixed incorrect TLS entry for mysql data source (#72556)
Docs:  fixed incorrect TLS entry for mysql data source (#72543)

fixed tls skip verify

(cherry picked from commit 5e4000b6e9)

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-07-28 15:19:35 -05:00
Guilherme Caulada
d5c915bb5f [v10.0.x] CI: Update secret refs to vault ones; update downstream repo origin (#72549)
CI: Update secret refs to vault ones; update downstream repo origin (#72515)

Update secret refs to vault ones; update downstream repo origin

(cherry picked from commit 6669d0a704)

Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2023-07-28 16:00:29 -03:00
Kevin Minehart
d76c886de9 [v10.0.x] CI: Make RGM the main pipeline for prerelease (#72532)
CI: Make RGM the main pipeline for prerelease (#72295)

* Make RGM the main pipeline for prerelease

* Use grafana/grafana-build:dev-bd41660

* Use grafana/grafana-build:dev-fda506a

* Fix destination url

* Update vault secrets

* Move bucket path to environment

* Use grafana/grafana-build:dev-2f36afa

* Revert to grafana/grafana-build:main

* Add repo to rgm_main trigger

(cherry picked from commit 971f5f14be)

Co-authored-by: Guilherme Caulada <guilherme.caulada@grafana.com>
2023-07-28 12:31:35 -03:00
grafana-delivery-bot[bot]
79a9045522 [v10.0.x] Changelog: Updated changelog for 10.0.3 (#72511)
Changelog: Updated changelog for 10.0.3 (#72509)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-28 15:06:36 +03:00
grafana-delivery-bot[bot]
f36741acaa [v10.0.x] Update index.md (#72471)
Update index.md (#72241)

Issue #6845 - Adding more context around how labels are extracted and indexed

(cherry picked from commit 5707f512be)

Co-authored-by: arunkg2787 <131352769+arunkg2787@users.noreply.github.com>
2023-07-27 12:55:36 -05:00
grafana-delivery-bot[bot]
6fb28232f0 [v10.0.x] Update _index.md (#72139)
Update _index.md (#72068)

* Update _index.md

Edits to the "Set up image rendering" doc.

1. First section, "Set up Image Rendering," last paragraph:
"You can also render a PNG by clicking hovering..." -- I removed "clicking" from that sentence.

2. "Alerting and Render Limits" section, link for "concurrent_render_limit" takes you to the page but not the section. This seems to be the case for all section links on this "Configure Grafana" page. I'm not sure how to fix it but switched from a relative link to a full path to see if that would help.

3. "Install Grafana Image Renderer Plugin," the link goes to the plugin overview page instead of the installation page. I tried adding the full path to see if that would go to the installation tab.

4. "Configuration" section, the same as the second edit I made, the first link, "Grafana configuration file," goes to the page but not the section link. I switched the relative path to a full path to see if it would work.

5. "Security" section, the very last sentence has the same Grafana configuration page link that goes to the correct page but not the correct section, "Grafana configuration" for the renderer token section. Same as previous ones, I switched out the relative path for the full path.

6. "Start browser with additional arguments," the second link in the first paragraph that goes to Puppeteer list of Chromium flags went to a 404 page. I couldn't figure out where they had moved it so I found a different site with a list of default flags and used that link instead.

* corrects links

* updates links

* fixes anchor link

---------

Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
(cherry picked from commit b88a321ad2)

Co-authored-by: Eva <ebuchala@gmail.com>
2023-07-27 10:40:07 -04:00
Kevin Minehart
e4d42c84a8 [v10.0.x] CI: use base64 key in windows installer build step (#72454)
CI: use base64 key in windows installer build step (#72413)

use base64 key

(cherry picked from commit b019ef9a89)
2023-07-27 16:26:10 +03:00
Dimitris Sotirakis
0b2178fe9c [v10.0.x] CI: Fix deb/rpm bug for linux package publishing (#72425)
CI: Fix `deb/rpm` bug for linux package publishing (#72336)

Fix deb/rpm

(cherry picked from commit c3ebd388e3)
(cherry picked from commit 4c9bdef98dcfb24d8d24dac8117c9d3feb921a06)

# Conflicts:
#	.drone.yml
(cherry picked from commit e3ec53b418)

# Conflicts:
#	.drone.yml
2023-07-27 09:53:33 +03:00
grafana-delivery-bot[bot]
1eb887c089 [v10.0.x] Alerting: Fix state manager to not keep datasource_uid and ref_id labels in state after Error (#72393)
* Alerting: Fix state manager to not keep datasource_uid and ref_id labels in state after Error (#72216)

(cherry picked from commit 78fc3bcdf4)

* use old QueryError

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2023-07-26 19:47:31 +03:00
grafana-delivery-bot[bot]
f848c9dd77 [v10.0.x] Alerting: Exclude expression refIDs from NoData state (#72394)
* Alerting: Exclude expression refIDs from NoData state (#72219)

(cherry picked from commit 5ba164d92b)

* use expr.IsDatasource

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2023-07-26 12:45:27 -04:00
lwandz13
1389f0f6f6 Docs: backport loki overhaul to v10.0.x (#72369)
Docs:  Loki data sources updates (#72041)

* added new configure loki doc

* finished first draft of config doc

* changed file name

* started updates to query editor

* updated config and qury editor

* updated index doc config doc and query editor

* updated query editor

* updates to query editor doc

* more updates to query editor and index doc

* one small update

* updates to query editor doc and index

* Update docs/sources/datasources/loki/_index.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update docs/sources/datasources/loki/query-editor/index.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update docs/sources/datasources/loki/query-editor/index.md

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update docs/sources/datasources/loki/query-editor/index.md

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update docs/sources/datasources/loki/_index.md

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

* made changes suggested in PR

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit 443b4b0327)
2023-07-26 11:29:35 -05:00
Adam Simpson
2dcc6b5618 [v10.0.x] AzureMonitor: revert Variable Editor region changes (#72390)
AzureMonitor: revert Variable Editor region changes (#72306)

* Revert "remove regions/locations from variable editor"

This reverts commit 41dc6a8bfb.

* Revert "remove region pieces from e2e"

This reverts commit 6b1f82f14a.

* e2e: open resource picker correctly

(cherry picked from commit 51b199e986)
2023-07-26 16:36:56 +01:00
Polina Boneva
1209fe585d [v10.0.x] Dashboard: New Datasource picker link is keyboard accessible (#72371)
Dashboard: New Datasource picker link is keyboard accessible (#72134)

* WIP

* fixes for readability

* fix

* WIP

* Keep tab index working with portal

* Use callback and clean up

* Fix linting errors

* Ignore clickable element

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
(cherry picked from commit cae68b955b)
2023-07-26 18:06:21 +03:00
Kevin Minehart
8ba6bfc6dd [v10.0.x] CI: use the base64 key in the windows installer steps (#72382)
CI: use the base64 key in the windows installer steps (#72372)

use the base64 key in the windows installer steps

(cherry picked from commit 0c2b2219bb)
2023-07-26 12:04:18 -03:00
grafana-delivery-bot[bot]
820cf8d115 [v10.0.x] Loki / Prometheus: Fix query builder select component in safari (#72373)
Loki / Prometheus: Fix query builder select component in safari (#71966)

* partial fix

* remove unused import

* fix that doesnt remove error message

(cherry picked from commit 34ee3b09de)

Co-authored-by: Gareth Dawson <email@garethdawson.xyz>
2023-07-26 15:22:55 +01:00
Adam Simpson
75891ac506 [v10.0.x] AzureMonitor: Fix ResourcePicker hanging (#72357)
AzureMonitor: Fix ResourcePicker hanging (#71886)

* AzureMonitor: Fix ResourcePicker hanging

Removed location fetching for every subscription.

Fixes #70523

* fix region for multi metricnames

* fix tests

* fix e2e

* remove regions/locations from variable editor

* remove region pieces from e2e

(cherry picked from commit 722f787eaa)
2023-07-26 09:03:57 -05:00
grafana-delivery-bot[bot]
868c5c9f20 [v10.0.x] Prometheus: Add present_over_time syntax highlighting (#72368)
Prometheus: Add present_over_time syntax highlighting (#72283)

add prometheus present_over_time syntax highlighting

to color present_over_time keyword for prometheus

(cherry picked from commit d96067985b)

Co-authored-by: stratomonitor <arnaud_lemaignen@yahoo.com>
2023-07-26 08:42:17 -05:00
Josh Hunt
8646725c6a [v10.0.x] Chore: Deprecate topnav feature flag (#72347)
Chore: Remove topnav feature flag (#72337)

* Remove topnav feature flag

* Allow deprecated flags to be enabled by default

* change topnav feature flag to deprecated instead

* fix lint

(cherry picked from commit 488eac0e49)
2023-07-26 11:37:12 +00:00
Ieva
342b36eeb4 [v10.0.x] Docs: update GitLab OAuth2 documentation (#72345)
* backport

(cherry picked from commit 5a9944298d)

* linting
2023-07-26 13:10:02 +02:00
grafana-delivery-bot[bot]
8c10611021 Release: Bump version to 10.0.4 (#72326)
"Release: Updated versions in package to 10.0.4"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-26 12:31:25 +03:00
grafana-delivery-bot[bot]
5f54368f48 [v10.0.x] Changelog: Updated changelog for 10.0.3 (#72327)
Changelog: Updated changelog for 10.0.3 (#72324)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-26 11:52:22 +03:00
grafana-delivery-bot[bot]
643fa34aee [v10.0.x] XYChart: Prevent crash on point hover (#72312)
XYChart: Prevent crash on point hover (#70225)

(cherry picked from commit 88988e4337)

Co-authored-by: Coen van Leeuwen <coenvanl@gmail.com>
2023-07-25 14:31:05 -07:00
grafana-delivery-bot[bot]
8dac7f4d96 [v10.0.x] PluginExtensions: Allow to specify unkown properties in override but they will be ignored (#72301)
PluginExtensions: Allow to specify unkown properties in override but they will be ignored (#72273)

* fixed bug.

* Update public/app/features/plugins/extensions/getPluginExtensions.ts

Co-authored-by: Ben Sully <ben.sully@grafana.com>

* Update public/app/features/plugins/extensions/getPluginExtensions.test.ts

Co-authored-by: Ben Sully <ben.sully@grafana.com>

* Update public/app/features/plugins/extensions/getPluginExtensions.ts

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* Update public/app/features/plugins/extensions/getPluginExtensions.test.ts

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

---------

Co-authored-by: Ben Sully <ben.sully@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
(cherry picked from commit 1755f8c7b7)

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-07-25 21:31:44 +03:00
Matthew Jacobson
f0f42a5c52 [v10.0.x] Alerting: Fix contact point testing with secure settings (#72282)
* Alerting: Fix contact point testing with secure settings (#72235)

Fixes double encryption of secure settings during contact point testing and removes code duplication
that helped cause the drift between alertmanager and test endpoint. Also adds integration tests to cover
the regression.

Note: provisioningStore is created to remove cycle and the unnecessary dependency.
(cherry picked from commit d31d175109)
2023-07-25 11:17:25 -04:00
Guilherme Caulada
3c48b8f8f6 [v10.0.x] CI: Fix verify-prerelease-assets pipeline (#72232)
CI: Fix verify-prerelease-assets pipeline (#72226)

* Fix verify-prerelease-assets pipeline

* Comment out unused assets

(cherry picked from commit 142cbc2ec6)
2023-07-25 00:49:44 +03:00
grafana-delivery-bot[bot]
ff5cf0fcd9 [v10.0.x] TimeSeries: Fix zoom not working after editing panel (#72224)
TimeSeries: Fix zoom not working after editing panel (#72163)

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
(cherry picked from commit 425c92a92b)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-07-24 13:14:43 -07:00
grafana-delivery-bot[bot]
4d1c8a184d [v10.0.x] Update _index.md (#72132)
Update _index.md (#71400)

* Update _index.md

Added missing hyperlink for high availability and a small typo

* updates link

---------

Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
(cherry picked from commit 4e50115d95)

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2023-07-24 14:33:56 -04:00
grafana-delivery-bot[bot]
8859bcaf16 [v10.0.x] Alerting: Improve performance of matching captures (#71999)
* Alerting: Improve performance of matching captures (#71828)

This commit updates eval.go to improve the performance of matching
captures in the general case. In some cases we have reduced the
runtime of the function from 10s of minutes to a couple 100ms.
In the case where no capture matches the exact labels, we revert to
the current subset/superset match, but with a reduced search space
due to grouping captures.

(cherry picked from commit 8dd3eb856d)

* Add label fingerprints from grafana-plugin-sdk-go

* Remove unsafe.StringData as we use Go 1.19

* Fix lint

---------

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-07-24 15:44:12 +02:00
Kevin Minehart
6ec2fdc829 [v10.0.x] CI: Run only Grafana builds on RGM for grafana/grafana (#72161)
* CI: Try setting the vault secret for 'grafana_api_key' (#71981)

* Try setting the vault secret

* Maybe?

* forgot .drone.yml

* CI: Use GCP keys in vault and not drone secrets (#72023)

* CI: Run only Grafana builds on RGM for grafana/grafana (#72144)

* Run only OSS builds on RGM for grafana/grafana

* Update script name

* Ignore windows step failure for RGM

---------

Co-authored-by: Guilherme Caulada <guilherme.caulada@grafana.com>
2023-07-21 18:27:43 -03:00
grafana-delivery-bot[bot]
4418e17b8c [v10.0.x] docs: fix broken link (#72156)
docs: fix broken link (#72114)

(cherry picked from commit 0589060041)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-07-21 16:56:04 -04:00
grafana-delivery-bot[bot]
99732704dd [v10.0.x] CloudMonitoring: Correctly set title and text fields for annotations (#72153)
CloudMonitoring: Correctly set title and text fields for annotations (#71888)

Correctly set title and text fields

(cherry picked from commit c4d6509145)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-07-21 23:54:47 +03:00
grafana-delivery-bot[bot]
c08159c007 [v10.0.x] Update logrus to v1.9.3 (#72083)
Update logrus to v1.9.3 (#71571)

(cherry picked from commit 892a0d2e5e)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-07-21 13:41:32 +02:00
grafana-delivery-bot[bot]
1ee817c065 [v10.0.x] docs: remove unnecessary front matter labels (#72055)
docs: update incorrect front matter labels (#71974)

* update incorrect front matter labels

* removing unneeded labels from shared content files

* change public preview to private preview for email sharing

* add OSS back to product labels

(cherry picked from commit a7c639f16e)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-20 14:08:57 -04:00
grafana-delivery-bot[bot]
1758cf6872 [v10.0.x] Docs: adds mimir and oncall (#72049)
Docs: adds mimir and oncall (#72042)

adds mimir and oncall

(cherry picked from commit 46c49aa7ff)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-07-20 12:10:17 -05:00
grafana-delivery-bot[bot]
0bdb14c98c [v10.0.x] Docs: fix broken links (#72043)
Docs: fix broken links (#71911)

* Fix different broken links and missing pages

* Pin version in docs link for release announcements

* fixing validator error

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 62c6e04d70)

Co-authored-by: Clément Duveau <clement@duveau.eu>
2023-07-20 12:55:04 -04:00
Galen Kistler
ad793b82c3 [v10.0.x] Prometheus: Fix heatmap query format (#71971) (#72017)
* Prometheus: Fix heatmap query format (#71971)

Check first numeric field instead of name: Value

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
(cherry picked from commit 1c358de190)

* fix conflicts in merge, add ts-ignore to ignore missing name in tests
2023-07-20 16:26:46 +02:00
grafana-delivery-bot[bot]
340df22292 [v10.0.x] Loki: Fix e2e flakiness (#72027)
Loki: Fix e2e flakiness (#69441)

fix loki e2e test flakiness by waiting for requests to finish

(cherry picked from commit b11c264df3)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-07-20 09:26:37 -05:00
grafana-delivery-bot[bot]
d9eea1cb64 [v10.0.x] AuthNZ documentation revamp (#71969)
AuthNZ documentation revamp (#62581)

* init for base branch

* Add authnz code ownership

* Fix docs ownsership path

* docs revamp: Plan IAM strategy (#62582)

* Add planning page

* Add teams definition

* Expand on planning and benefits

* Add reasons to organize users

* Add description of User Teams

* Add Grafana organizations info

* Add a section between Teams and Orgs

* Add a section for external systems

* planning your role strategy

* Add service account documentation

* Add Auth Setup to index sidebar

* Address PR comments

* Add planning for API keys

* Add team and org sync

* Docs: role and permission section for planning docs (#64702)

* docs revamp: Service accounts (#63710)

* docs revamp: Add new documentation to sidebar index (#66104)

* docs revamp: synchronisation planning (#66409)

* Docs: api keys (#64803)

* Remove personal access tokens section

* Move auth integration planning page

* Remove auth folder

* Restore codeowners file

* reword and update info on user management and grouping

* Rename iam strategy page

* extend the section on teams and organizations

* Rename planning your IAM section

* Move to administration section

* Add definition for role sync

* Relocate planning

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
(cherry picked from commit 63346674e6)

Co-authored-by: linoman <2051016+linoman@users.noreply.github.com>
2023-07-19 16:19:19 -05:00
grafana-delivery-bot[bot]
e4e170f844 [v10.0.x] Alerting: Fix edit / view of webhook contact point when no authorization is set (#71972)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Fix edit / view of webhook contact point when no authorization is set (#71965)
2023-07-19 20:34:36 +03:00
Guilherme Caulada
857b275d61 [v10.0.x] CI: Allow RGM to create msi for multiple editions (#71894)
CI: Allow RGM to create msi for multiple editions (#71883)

* Allow RGM to create msi for multiple editions

* Remove suffix from build-windows-installer step

* Invert exit code on verify_release_pipeline

(cherry picked from commit 4c80bcf35f)
2023-07-19 13:35:23 -03:00
grafana-delivery-bot[bot]
e63347f153 [v10.0.x] Docs: added alias to main data sources page (#71955)
Docs:  added alias to main data sources page (#71947)

added features alias

(cherry picked from commit bfff496ca6)

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-07-19 09:57:01 -05:00
grafana-delivery-bot[bot]
bb0a6d7d18 [v10.0.x] Alerting: Add tests for matching captures (#71939)
Alerting: Add tests for matching captures (#71928)

This commit adds tests for matching captures, which we do not have
at present.

(cherry picked from commit f1af0502db)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-07-19 15:07:25 +03:00
grafana-delivery-bot[bot]
cfd413d936 [v10.0.x] PanelContext: Provide events scope identifier (#71849)
PanelContext: Provide events scope identifier (#71561)

* PanelContext: Provide events scope identifier

* What a console log

(cherry picked from commit 34c9faf140)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-07-19 05:02:17 -07:00
grafana-delivery-bot[bot]
f05b396434 [v10.0.x] Docs: adds aliases to fix 404s (#71937)
Docs: adds aliases to fix 404s (#71926)

* Docs: adds aliases to fix 404s

* fixes alias

* updates alias re jack

(cherry picked from commit 58729a331f)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-07-19 13:57:39 +02:00
grafana-delivery-bot[bot]
d30e6f2149 [v10.0.x] Alerting: Sort NumberCaptureValues in EvaluationString (#71931)
Alerting: Sort NumberCaptureValues in EvaluationString (#71927)

This commit changes extractEvalString to sort NumberCaptureValues
in ascending order of Var before building the output string. This
means that users will see EvaluationString in a consistent order,
but also make it possible to assert its output in tests.

(cherry picked from commit 89dcaaf049)

Co-authored-by: George Robinson <george.robinson@grafana.com>
2023-07-19 14:22:17 +03:00
grafana-delivery-bot[bot]
824465dc62 [v10.0.x] Docs: Update HTTP API docs for nested folders (#71918)
Docs: Update HTTP API docs for nested folders (#67412)

* Docs: Update HTTP API docs for nested folders

* Apply suggestions from code review

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 3a50d7ea84)

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-07-19 12:28:10 +03:00
grafana-delivery-bot[bot]
28c773a3a2 [v10.0.x] AzureMonitor: Set timespan in Logs Portal URL link (#71910)
AzureMonitor: Set timespan in Logs Portal URL link (#71841)

Set timespan in Logs Portal URL link

(cherry picked from commit 116e971af3)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-07-19 11:28:07 +03:00
Dimitris Sotirakis
4ee7603007 [v10.0.x] Bug: Compare semver digits for frontend packages config (#71908)
Bug: Compare `semver` digits for frontend packages config (#71829)

* Compare semver digits

* Fix lint

(cherry picked from commit 5f8ace33fb)

# Conflicts:
#	pkg/build/frontend/config_test.go
2023-07-19 10:19:08 +03:00
grafana-delivery-bot[bot]
793a8e32a8 [v10.0.x] docs: add docker commands for enabling alpha layers (#71899)
docs: add docker commands for enabling alpha layers (#71897)

added docker commands for enabling alpha layers

(cherry picked from commit ef0de1af32)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 18:14:42 -04:00
grafana-delivery-bot[bot]
a8c66c3a14 [v10.0.x] docs: add flowcharting-canvas migration, update styling (#71889)
docs: add flowcharting-canvas migration, update styling (#71671)

* docs: add canvas migration, update styling

* docs: make pretty

* docs: add windrose alternative

* Add H1 and description

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

---------

Co-authored-by: Joe Perez <joseph.perez@grafana.com>
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
(cherry picked from commit 017ab9ddd8)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-07-18 21:02:57 +01:00
grafana-delivery-bot[bot]
aba669e880 [v10.0.x] Update _index.md (#71798)
Update _index.md (#71792)

* Update _index.md

* makes prettier

---------

Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
(cherry picked from commit 03c2efa2d6)

Co-authored-by: Melori Arellano <melori.arellano@grafana.com>
2023-07-18 14:30:35 -05:00
Guilherme Caulada
f128a9780d [v10.0.x] CI: Add rgm compatible windows msi pipeline (#71858)
CI: Add rgm compatible windows msi pipeline (#71678)

* Add rgm compatible windows msi pipeline

* Fix dependencies and platform

* Fix missing arg comment

* Fix linting issues

* Try to fix version on file path

* Fix dependency on verify release pipeline

(cherry picked from commit 4caa773401)
2023-07-18 13:51:32 -03:00
Matias Chomicki
7ef357aa32 LogParser: safely stringify field value (#71873)
* LogParser: safely stringify field value

* LogParser: move null check to the top
2023-07-18 18:39:19 +02:00
linoman
3381ecaebc [v10.0.x] Rework Okta OAuth2 (#71861)
Rework Okta OAuth2 (#71349)

* Rework Okta OAuth2

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
(cherry picked from commit 130f142c7f)
2023-07-18 17:36:36 +02:00
Adam Yeats
55784a2201 [v10.0.x] AzureMonitor: Fix resource selection growing over resource selection table (#71862)
AzureMonitor: Fix resource selection growing over resource selection table (#71463)

* AzureMonitor: Fix resource selection growing over resource selection table

* Unstick ResourcePicker footer, fix sizing

(cherry picked from commit 409eae6ff9)
2023-07-18 17:51:44 +03:00
grafana-delivery-bot[bot]
a347d3d9c2 [v10.0.x] docs: Update Transform Data (#71854)
docs: Update Transform Data (#71013)

* Update Transform Data :docs:

* Apply suggestions from code review Update Transform Data

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Fix link

* Various suggestions

* Various suggestions

* Various suggestions

* Reset make file

* Add example for extract field

* Add example for field lookup

* Add example for histogram

* Update

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: ludovio <ludovic.viaud@gmail.com>
(cherry picked from commit 679365960b)

Co-authored-by: Jara Suárez de Puga García <jara.suarezdepuga@grafana.com>
2023-07-18 10:39:19 -04:00
Guilherme Caulada
cf45b836ab [v10.0.x] CI: Removes enterprise specific pipelines and steps (#71782)
[WIP] CI: Removes enterprise specific pipelines and steps (#70815)

* Removes enterprise specific pipelines and steps (#123)

* Comment out enterprise related pipelines and steps

* Suppress unused variable warning

* Removes all edition arguments

* Remove leftover comments

* Remove redundant oss on pipelines and steps names

* Remove leftover unused variable

* Remove leftovers

* Remove pipeline dependencies

* Rename pipelines

* Fix starlark

---------

Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
(cherry picked from commit 642a81ba75e79138246797302aba5c35575f030d)

* Add editions for static assets

(cherry picked from commit b13939b9af)

Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
2023-07-18 11:21:11 -03:00
grafana-delivery-bot[bot]
f877bb4f05 [v10.0.x] Docs: add azure auth section to prometheus data source doc (#71845)
Docs: add azure auth section to prometheus data source doc (#71491)

* added initial azure auth settings section

* updated with additional azure auth info

(cherry picked from commit f7bffb4c1c)

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-07-18 08:43:52 -05:00
Jack Baldry
40b564b5e0 [v10.0.x] Add canonical URLs to all alerting pages (#71833)
Add canonical URLs to all alerting pages (#71830)


(cherry picked from commit 37ef4e940f)

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-07-18 11:34:53 +01:00
Jack Baldry
2004463405 [v10.0.x] Explicitly set all front matter labels in the source files (#71817)
Explicitly set all front matter labels in the source files (#71548)

* Set every page to have defaults of 'Enterprise' and 'Open source' labels



* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels



* Set administration/enterprise-licensing pages to have 'Enterprise' labels



* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels



* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels



* Set administration/recorded-queries pages to have labels cloud,enterprise

* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise



* Set administration/stats-and-license pages to have labels cloud,enterprise

* Set alerting pages to have labels cloud,enterprise,oss

* Set breaking-changes pages to have labels cloud,enterprise,oss

* Set dashboards pages to have labels cloud,enterprise,oss

* Set datasources pages to have labels cloud,enterprise,oss

* Set explore pages to have labels cloud,enterprise,oss

* Set fundamentals pages to have labels cloud,enterprise,oss

* Set introduction/grafana-cloud pages to have labels cloud



* Fix introduction pages products



* Set panels-visualizations pages to have labels cloud,enterprise,oss

* Set release-notes pages to have labels cloud,enterprise,oss

* Set search pages to have labels cloud,enterprise,oss

* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise



* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss

* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise

* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise

* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise

* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss



* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise



* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise



* Set troubleshooting pages to have labels cloud,enterprise,oss

* Set whatsnew pages to have labels cloud,enterprise,oss

* Apply updated labels from review




---------




(cherry picked from commit 7eb17bccca)

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 11:29:58 +01:00
grafana-delivery-bot[bot]
1f02b4a8cb [v10.0.x] Docs: fix bullet lists for supported time interval (#71812)
Docs: fix bullet lists for supported time interval (#67389)

* Docs: fix bullet lists for supported time interval

* Docs: run prettier

(cherry picked from commit b089281255)

Co-authored-by: Rodrigo Petter Daniel <rodrigopetterdaniel@gmail.com>
2023-07-18 09:33:39 +02:00
grafana-delivery-bot[bot]
2962af8cac [v10.0.x] Auth: update GitHub OAuth documentation (#71763)
Auth: update GitHub OAuth documentation (#70459)

* github oauth doc improvements

* add skip_org_role_sync to config for github provider

* update links and section headings

* update the docs based on the first PR

* update references

(cherry picked from commit cb695cef8e)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-07-17 18:56:33 +03:00
Jo
8c223713d0 [v10.0.x] Auth: Add support for custom signing keys in auth.azure_ad (#71708)
Auth: Add support for custom signing keys in auth.azure_ad (#71365)

* fallthrough JWKS validation and caching for Azure

* remove unused field

(cherry picked from commit fbfdd6ba32)
2023-07-17 16:27:53 +02:00
Ieva
d24efd7f66 [v10.0.x] Auth: update generic OAuth documentation (#71759)
* merge

* Linting
2023-07-17 15:52:58 +02:00
grafana-delivery-bot[bot]
f9a8e0a50d [v10.0.x] Alerting: No longer silence paused alerts during legacy migration (#71761)
Alerting: No longer silence paused alerts during legacy migration (#71596)

* Alerting: No longer silence paused alerts during legacy migration

Now that we migrate paused legacy alerts to paused UA alert rules, we no longer need to silence them.

(cherry picked from commit 8c6cdf51fc)

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2023-07-17 16:49:26 +03:00
grafana-delivery-bot[bot]
1bce7bb76e [v10.0.x] Docs: reorder auth provider pages (#71751)
Docs: reorder auth provider pages (#70764)

* order auth provider pages

* add shorter menu titles

* linting

* update reference

* rename Grafana auth section to basic auth

(cherry picked from commit fc290281cb)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-07-17 15:29:49 +02:00
grafana-delivery-bot[bot]
6a083469f9 [v10.0.x] Plugins: Only configure plugin proxy transport once (#71742)
Plugins: Only configure plugin proxy transport once (#71735)

only configure plugin proxy transport once

(cherry picked from commit b59ca7fb22)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2023-07-17 14:52:48 +03:00
grafana-delivery-bot[bot]
62eccdd789 [v10.0.x] Docs: fixes broken alias redirect (#71737)
Docs: fixes broken alias redirect (#71730)

(cherry picked from commit 7738a9846c)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-07-17 13:33:03 +02:00
grafana-delivery-bot[bot]
8caf3fc6a8 [v10.0.x] CI: Re-enable milestone-check (#71723)
CI: Re-enable milestone-check (#71718)

This will hopefully resolve stuck PRs until we find a better way to
disable that check.

(cherry picked from commit 44b55a1ca6)

Co-authored-by: Horst Gutmann <horst.gutmann@grafana.com>
2023-07-17 12:16:16 +03:00
Dimitris Sotirakis
96b94e722a [v10.0.x] CI: Fix broken env vars in publish-artifacts step (#71647)
CI: Fix broken env vars in publish-artifacts step (#71471)

Fix env vars

(cherry picked from commit 64d2ff03c80c807c03390f63ba1834c5605fc96d)

# Conflicts:
#	.drone.yml
(cherry picked from commit fd90737884)

# Conflicts:
#	.drone.yml
2023-07-17 11:53:51 +03:00
Horst Gutmann
40bcfab28e [v10.0.x] Chore: Add auto-milestone workflow for pull-requests (#71706)
Chore: Add auto-milestone workflow for pull-requests (#71177)

This adds a new auto-milestone workflow that will set the milestone for
a PR when it is closed. This way, contributors no longer have to think
about milestone at all.

(cherry picked from commit 8ae92db53d)
2023-07-17 10:28:36 +02:00
Nathan Marrs
1b1c11f5ee [v10.0.x] Geomap: Address tooltip performance issue (#71672)
Geomap: Address tooltip performance issue (#71607)

(cherry picked from commit 16e5d442ba)
2023-07-14 14:45:29 -05:00
grafana-delivery-bot[bot]
ab36f46900 [v10.0.x] Remove empty main block at the end (#71669)
Remove empty main block at the end (#71574)

Removed empty block at the end of the page

(cherry picked from commit f924fc2b8d)

Co-authored-by: bojankezele <79632099+bojankezele@users.noreply.github.com>
2023-07-14 10:43:18 -05:00
grafana-delivery-bot[bot]
7d49783c1d [v10.0.x] Docs: Add reference to Grafana Cloud doc (#71668)
Docs: Add reference to Grafana Cloud doc (#71653)

Add reference to Grafana Cloud doc

(cherry picked from commit 6b40fe75f5)

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
2023-07-14 10:21:38 -05:00
Kevin Minehart
932ff5d9d3 [v10.0.x] CI: Update and rename pr-patch-mirror-and-apply.yml to sync-mirror.yml (#71615)
* CI: Update and rename pr-patch-mirror-and-apply.yml to sync-mirror.yml (#71608)

* CI: Update and rename pr-patch-mirror-and-apply.yml to sync-mirror.yml

* update CODEOWNERS

(cherry picked from commit 3afc20fae9)

* Add sync-mirror to codeowners
2023-07-14 11:50:17 +01:00
grafana-delivery-bot[bot]
d787628328 [v10.0.x] Elasticsearch: Fix multiple max depth flatten of multi-level objects (#71636)
Elasticsearch: Fix multiple max depth flatten of multi-level objects (#70302)

(cherry picked from commit c1f6b91ea9)

Co-authored-by: Shirley <4163034+fridgepoet@users.noreply.github.com>
2023-07-14 12:01:41 +02:00
grafana-delivery-bot[bot]
b23c25cedc [v10.0.x] [DOC] Fix tracing links in explore/tracing (#71389)
[DOC] Fix tracing links in explore/tracing (#71383)

Fix tracing links

(cherry picked from commit 41def2e346)

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2023-07-13 15:44:04 -05:00
grafana-delivery-bot[bot]
4ee6677ca4 [v10.0.x] docs: update references to deprecated plugins (#71592) 2023-07-13 19:19:03 +01:00
grafana-delivery-bot[bot]
e17ebf1205 [v10.0.x] Annotations: Fix database lock while updating annotations (#71207)
Annotations: Fix database lock while updating annotations (#71199)

(cherry picked from commit 56f52dc97e)

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2023-07-13 10:33:43 +02:00
grafana-delivery-bot[bot]
1f058705be [v10.0.x] api: ignore /api/gnet proxy when gzipping responses (#71521)
api: ignore /api/gnet proxy when gzipping responses (#71437)

This PR adds /api/gnet to the list of ignored paths in the gzip middleware.

Without this, when gzip is enabled (`server.enable_gzip = true`), responses
from the gnet proxy are double compressed: once by grafana.com and once by
Grafana itself. With this change we only do one round of compression for these
endpoints.

To test this out, try a request like this with `server.enable_gzip = true`
(after setting `GCOM_TOKEN` to a valid grafana.com token; you may need to
change the 'bsull' slug, too):

    curl -v --user admin:admin \
        -H "X-Api-Key: $GCOM_TOKEN" \
        -H 'Accept-Encoding: gzip' \
        localhost:3000/api/gnet/instances/bsull/provisioned-plugins/grafana-ml-app | gzip -d

Note that there are two Content-Encoding: gzip headers before this PR, and
the output is still compressed even after the `gzip -d`. After this PR things
look as expected.

(cherry picked from commit 51c94bccd7)

Co-authored-by: Ben Sully <ben.sully@grafana.com>
2023-07-13 08:36:20 +01:00
lwandz13
7fdfc4d609 docs: fixed data source mgmt file for 10.0.x (#71503)
* fixed data source mgmt file for 10.0.x

* fixed query caching relrefs

* fix anchor refs

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2023-07-12 20:58:04 -05:00
grafana-delivery-bot[bot]
dfc5d22ebf [v10.0.x] docs: add alphaPanels feature toggle information (#71506)
docs: add alphaPanels feature toggle information (#71480)

* add feature toggle information

* fix typo

* fixed config information

(cherry picked from commit c3a0207615)

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-12 18:10:06 -04:00
grafana-delivery-bot[bot]
800f54b0ee [v10.0.x] docs: update nodejs required version (#71483)
docs: update nodejs required version (#71469)

* docs: update nodejs required version

* docs: update nodejs version in plugin tutorials

* docs: update to LTS guidance

(cherry picked from commit 3a45f02ef3)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-07-12 16:55:29 +01:00
grafana-delivery-bot[bot]
5d9e63c654 [v10.0.x] docs: restructure dashboard annotations page (#71481) 2023-07-12 18:42:10 +03:00
grafana-delivery-bot[bot]
a264594473 [v10.0.x] Docs: Adding alias to package a plugin (#71479)
Docs: Adding alias to package a plugin (#71478)

Adding alias to package a plugin

(cherry picked from commit 471c858e67)

Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
2023-07-12 18:30:44 +03:00
grafana-delivery-bot[bot]
b0e887153e [v10.0.x] Update info for the Support Bundle (#71452)
Update info for the Support Bundle (#69419)

* Update info for the Support Bundle

Add in a note that access to the Support Bundle requires Grafana 9.5 and above.

* Make the user/permission restriction more visible since it gets lost a little in the code block

* Run prettier

* Move the new content to Before you begin section

This is the pattern that we're following with other doc topics as well.

* fix a typo

* linting

---------

Co-authored-by: Vardan Torosyan <vardants@gmail.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
(cherry picked from commit 7f865f627a)

Co-authored-by: Zach Day <zachary.day@grafana.com>
2023-07-12 16:24:54 +02:00
Emil Tullstedt
73f53a37dc [v10.0.x] Chore: Upgrade Go to 1.20.6 (#71445)
Chore: Upgrade Go to 1.20.6
2023-07-12 15:32:58 +02:00
Gábor Farkas
edfc35424c [v10.0.x] Elasticsearch: Fix histogram colors in backend mode (#71447)
Elasticsearch: Fix histogram colors in backend mode (#71442)

elastic: backend-mode: fix histogram colors
(cherry picked from commit fdb8257007)
2023-07-12 15:18:14 +03:00
grafana-delivery-bot[bot]
73f37c7a21 [v10.0.x] Alerting: Fix state in expressions footer (#71443)
Alerting: Fix state in expressions footer (#71441)

Fix state in expressions footer

(cherry picked from commit 82a5770376)

Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com>
2023-07-12 14:52:43 +03:00
Torkel Ödegaard
1f13067103 [v10.0.x] AppChromeService: Fixes update to breadcrumb parent URL (#71418)
AppChromeService: Fixes update to breadcrumb parent URL (#71410)

AppChromeService: Fixes update to parent url
(cherry picked from commit dc71d36958)
2023-07-12 13:38:04 +02:00
Ivan Ortega Alba
08def85380 [v10.0.x] Variables: Page refreshes hitting enter to select a variable value (#71360)
Variables: Page refreshes hitting enter to select a variable value (#70996)

(cherry picked from commit 699e499cc7)
2023-07-12 13:29:59 +02:00
grafana-delivery-bot[bot]
899d6a5caa [v10.0.x] UI/Select: Adjust typing to support extended props (#71369)
UI/Select: Adjust typing to support extended props (#71211)

(cherry picked from commit f604bf6d68)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2023-07-11 15:32:02 +01:00
grafana-delivery-bot[bot]
d85be0bb96 Release: Bump version to 10.0.3 (#71344)
"Release: Updated versions in package to 10.0.3"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-11 17:28:15 +03:00
grafana-delivery-bot[bot]
34c621dddf [v10.0.x] fix shortcode usage (#71359)
fix shortcode usage (#71353)

(cherry picked from commit c3a8819ed2)

Co-authored-by: Robby Milo <robbymilo@fastmail.com>
2023-07-11 13:25:08 +01:00
Emil Tullstedt
eeca760e94 [v10.0.x] CI: Provide a Drone promotion to build the build-container (#71352)
CI: Provide a Drone promotion to build the build-container (#71133)

(cherry picked from commit 7a9847e196)
2023-07-11 14:03:50 +02:00
grafana-delivery-bot[bot]
111ddb9bad [v10.0.x] Changelog: Updated changelog for 10.0.2 (#71339)
Changelog: Updated changelog for 10.0.2 (#71338)

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

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-11 13:19:13 +03:00
grafana-delivery-bot[bot]
bc1e8a7c9e [v10.0.x] Alerting: (Chore/Instrumentation) Add traceID to logs with contextual logger (#71333)
Alerting: (Chore/Instrumentation) Add traceID to logs with contextual logger (#71289)

Alerting: (Chore) Add traceID to logs with contextual logger
(cherry picked from commit f6a28cadbc)

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2023-07-11 12:11:47 +03:00
grafana-delivery-bot[bot]
f767a3e27f [v10.0.x] Alerting: Fix Alertmanager change detection for receivers with secure settings (#71320)
Alerting: Fix Alertmanager change detection for receivers with secure settings (#71307)

* Alerting: Make ApplyAlertmanagerConfiguration only decrypt/encrypt new/changed secure settings

Previously, ApplyAlertmanagerConfiguration would decrypt and re-encrypt all secure settings. However, this caused re-encrypted secure settings to be included in the raw configuration when applied to the embedded alertmanager, resulting in changes to the hash. Consequently, even if no actual modifications were made, saving any alertmanager configuration triggered an apply/restart and created a new historical entry in the database.

To address the issue, this modifies ApplyAlertmanagerConfiguration, which is called by POST `api/alertmanager/grafana/config/api/v1/alerts`, to decrypt and re-encrypt only new and updated secure settings. Unchanged secure settings are loaded directly from the database without alteration.

We determine whether secure settings have changed based on the following (already in-use) assumption: Only new or updated secure settings are provided via the POST `api/alertmanager/grafana/config/api/v1/alerts` request, while existing unchanged settings are omitted.

* Ensure saving a grafana-managed contact point will only send new/changed secure settings

Previously, when saving a grafana-managed contact point, empty string values were transmitted for all unset secure settings. This led to potential backend issues, as it assumed that only newly added or updated secure settings would be provided.

To address this, we now exclude empty ('', null, undefined) secure settings, unless there was a pre-existing entry in secureFields for that specific setting. In essence, this means we only transmit an empty secure setting if a previously configured value was cleared.

* Fix linting

* refactor omitEmptyUnlessExisting

* fixup

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
(cherry picked from commit e3787de470)

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2023-07-11 10:58:06 +02:00
grafana-delivery-bot[bot]
b8e2990579 [v10.0.x] Elasticsearch: Fix using multiple indexes with comma separated string (#71322)
Elasticsearch: Fix using multiple indexes with comma separated string (#71284)

* Revert "Elasticsearch: Use array of strings as index in backend queries (#67276)"

This reverts commit d0ced39847.

* updated tests

(cherry picked from commit e17540bdcd)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2023-07-11 10:59:27 +03:00
Joseph Perez
eeba36e435 [v10.0.x] Fix merge error in index.md (#71312)
* Fix merge error in index.md

Fixes glitch reported here: https://raintank-corp.slack.com/archives/C5PG2JK8W/p1689019056173919

* Prettier fix
2023-07-10 16:25:09 -05:00
grafana-delivery-bot[bot]
25f498c76f [v10.0.x] Docs: Fix broken links to play (#71295)
Docs: Fix broken links to play (#71112)

* fix broken links to play

* Update docs/sources/dashboards/variables/_index.md

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
(cherry picked from commit 69d8e3d8dc)

Co-authored-by: matt abrams <37156449+zuchka@users.noreply.github.com>
2023-07-10 14:49:04 -04:00
grafana-delivery-bot[bot]
da6aeb83ab [v10.0.x] Update Public Dashboards documentation (#71293)
Update Public Dashboards documentation (#71276)

The documentation for how to support public dashboards is slightly incorrect.

(cherry picked from commit 899de865fc)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2023-07-10 18:56:47 +03:00
grafana-delivery-bot[bot]
84594e2fba [v10.0.x] PanelInspect: Download CSV without extra blank rows (#71290)
PanelInspect: Download CSV without extra blank rows (#71248)

(cherry picked from commit 8a6c6c3285)

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2023-07-10 12:28:31 -03:00
grafana-delivery-bot[bot]
c7031f48d4 [v10.0.x] Docs: fix incorrect alias for sign-a-plugin.md (#71270)
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
fix incorrect alias for sign-a-plugin.md (#71255)
2023-07-10 11:08:40 +02:00
grafana-delivery-bot[bot]
67a6f6261f [v10.0.x] Transformations: Fix extractFields throwing Error if one value is undefined or null (#71267)
Transformations: Fix `extractFields` throwing Error if one value is undefined or null (#71070)

* fix extract fields with null values

* rename test

* check for null values

* revert changes

* improve position

(cherry picked from commit b05cc2d651)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-07-10 11:00:26 +03:00
grafana-delivery-bot[bot]
dca52d575e [v10.0.x] XYChart: Point size editor should reflect correct default (5) (#71229)
XYChart: Point size editor should reflect correct default (5) (#71126)

fix(xychart): reconcile point size editors

(cherry picked from commit d92d3ede79)

Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2023-07-07 13:39:52 -07:00
Kevin Minehart
d147af2281 [v10.0.x] CI: Add GPG keys to rgm, don't clone RGM just use the docker image (#71234)
* CI: Add rgm to drone (#66991)

* add drone stub that build grafana using 'grafana/build' (dagger)

---------

Co-authored-by: Ricky Whitaker <ricky.whitaker@grafana.com>
(cherry picked from commit 768efe9748)

* Add dagger token to rgm builds (#68651)

(cherry picked from commit a870b227db)

* CI: Add GPG keys to rgm, don't clone RGM just use the docker image (#71143)

* Add GPG keys to rgm, dont' clone RGM just use the docker image

* remove the cd command

* forgot to make drone :(

* idk

* reference script more specifically

* i guess we'll just cd /src

* Only show not found artifacts

(cherry picked from commit d5a4c81fa1)
2023-07-07 12:47:34 -05:00
grafana-delivery-bot[bot]
e17bb5b937 [v10.0.x] Clarify external AM limitation (#71218)
Clarify external AM limitation (#71179)

(cherry picked from commit 3ec0558204)

Co-authored-by: Armand Grillet <2117580+armandgrillet@users.noreply.github.com>
2023-07-07 18:18:00 +03:00
grafana-delivery-bot[bot]
23fbded473 [v10.0.x] Prometheus: Version detect bug (#71213)
Prometheus: Version detect bug (#71198)

* remove redundant request copy in backend, add more versions to semver lists

(cherry picked from commit 7dc071f46b)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2023-07-07 10:10:09 -05:00
grafana-delivery-bot[bot]
49fa587932 [v10.0.x] Docs: update the word "integration" in Okta config (#71209)
Docs: update the word "integration" in Okta config (#71181)

(cherry picked from commit ac78146091)

Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2023-07-07 09:16:01 -05:00
grafana-delivery-bot[bot]
a5aa8a3c70 [v10.0.x] AsyncSegment: Display no-options placeholder for no items status (#71127)
AsyncSegment: Display no-options placeholder for no items status (#70995)

AsyncSegment: Display no options dropdown placeholder for no items status
(cherry picked from commit ad5a36e7a3)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2023-07-07 15:12:49 +02:00
grafana-delivery-bot[bot]
be34911395 [v10.0.x] Docs: Updates Grafana alerting link text on Panel Editor Overview page (#71197)
Docs: Updates Grafana alerting link text on Panel Editor Overview page (#71146)

* Updates Grafana alerting link text on panel editor overview page

* fixed wording of link text

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
(cherry picked from commit 217265baee)

Co-authored-by: Leanna Shippy <11079957+lshippy@users.noreply.github.com>
2023-07-07 08:24:21 -04:00
grafana-delivery-bot[bot]
889b153a6b [v10.0.x] docs: remove kentik from angular plugins (#71192)
docs: remove kentik from angular plugins (#71191)

As of v1.7.0 this plugin no longer uses Angular

(cherry picked from commit a9368aab7a)

Co-authored-by: David Harris <david.harris@grafana.com>
2023-07-07 14:31:36 +03:00
grafana-delivery-bot[bot]
afcf9520e2 [v10.0.x] Explore: Remove duplicate decorator (#70778)
Explore: Remove duplicate decorator (#70775)

Remove duplicate decorator

(cherry picked from commit c0b64612f8)

Co-authored-by: Kristina <kristina.durivage@grafana.com>
2023-07-07 06:14:15 -05:00
Andreas Christou
03baf95b8e [v10.0.x] AzureMonitor: Correctly build multi-resource queries for Application Insights components (#71039)
AzureMonitor: Correctly build multi-resource queries for Application Insights components (#70344)

Correctly build multi-resource queries for AI components

- Add additional query property
- Validate resource URI matches correct namespace
- Set applications property if needed
- Update tests

(cherry picked from commit 20b6ae96a3)

# Conflicts:
#	pkg/tsdb/azuremonitor/loganalytics/azure-log-analytics-datasource.go
2023-07-07 10:35:24 +01:00
grafana-delivery-bot[bot]
e70b6476e7 [v10.0.x] Docs: Adding the right syntax highlighting in a few places (#71169)
Docs: Adding the right syntax highlighting in a few places (#71141)

Adding the right syntax highlighting in a few places

(cherry picked from commit 536146de5f)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-07-07 10:07:13 +02:00
grafana-delivery-bot[bot]
dcf0730f0b [v10.0.x] BarChart: Check by displayName (#71165) 2023-07-07 05:09:10 +03:00
Grot (@grafanabot)
8d179e6079 [v10.0.x] Prometheus: Heatmap Format with No Data (#69097)
Prometheus: Heatmap Format with No Data (#68938)

* Prometheus: Heatmap Format with No Data

* Simplify conditional logic

(cherry picked from commit 0fa991a4b9)

Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
2023-07-06 13:37:34 -05:00
grafana-delivery-bot[bot]
6f780152c3 [v10.0.x] Added security patch delivery workflows (#71139)
Added security patch delivery workflows (#71101)

* adding security patch workflows

* adding grafana-delivery as codeowners for new pr-security-check workflows

* adding release branch triggers to PR security patch github action

* joined security patching mirror and apply jobs

* remove temp files

(cherry picked from commit d88046d3d4)

Co-authored-by: Ricky Whitaker <ricky.whitaker@grafana.com>
2023-07-06 10:40:40 -05:00
grafana-delivery-bot[bot]
d42e6fdf59 [v10.0.x] Docs: Set up alert state history (#71140)
Docs: Set up alert state history (#71123)

Co-authored-by: Armand Grillet <2117580+armandgrillet@users.noreply.github.com>
(cherry picked from commit 6af12b1953)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-07-06 17:15:09 +02:00
grafana-delivery-bot[bot]
2f674f5a51 [v10.0.x] Docs: Fix scenes what's new in Grafana 10 entry (#71132)
Docs:  Fix scenes what's new in Grafana 10 entry  (#71128)

Fix scenes release note

(cherry picked from commit 0fb7369a79)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-07-06 17:25:22 +03:00
grafana-delivery-bot[bot]
6f4bedda34 [v10.0.x] Variables: Remount query editor when datasource changed (#70745)
Variables: Remount query editor when datasource changed (#70615)

(cherry picked from commit 6c900b84bd)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2023-07-06 12:41:51 +01:00
grafana-delivery-bot[bot]
7f62b1dab0 [v10.0.x] DS Picker: Filter available DS based on component props (#71115)
DS Picker: Filter available DS based on component props (#70613)

* Apply filters consistently to every list in the picker

* Display all built-in DS when editing a panel

* Add `uploadFile` prop to toggle the CSV file DS

(cherry picked from commit 6ad9e386ad)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2023-07-06 12:59:03 +03:00
Joseph Perez
b4d89dd9d4 [v10.0.x] Docs: Backport of 69864 - Plugins reorganization (#71100)
* Docs: Plugins doc reorganization, part 1  (#69864)

* Initial commit

* Prettier fixes

* Doc-validator fixes part 1

* Doc-validator fixes part 2

* More doc-validator fixes

* More doc-validator fixes

* Test

* link test

* Linnk test

* Link test

* More fixes

* More fixes

* Doc-validator fixes

* Doc-validator fixes

* fix broken link

* Fix

* Testing

* Doc fixes

* Link fixes

* Fix links

* Update docs/sources/developers/plugins/create-a-grafana-plugin/_index.md

Co-authored-by: David Harris <david.harris@grafana.com>

* Testing

* Testing

* Testing

* Testing

* Doc-validator fixes

* Doc-validator fixes

* Doc-validator fixes

* Fix broken links for plugins reorganization project

* Prettier fixes

* Prettier fixes

* Incorporate reviewer feedback

* Link fixes

* Link fixes

* Link fixes

* Link fix

* Deleted space

* Codeowners fix

* Change grafana.com links to absolute URLs for Hugo

---------

Co-authored-by: David Harris <david.harris@grafana.com>
(cherry picked from commit f9df1f3051)

* Prettier fix
2023-07-05 15:42:56 -05:00
grafana-delivery-bot[bot]
eac9cc7f6c [v10.0.x] BarChart: Fix legend for fields with labels (#71099) 2023-07-05 23:02:45 +03:00
grafana-delivery-bot[bot]
63257b2133 [v10.0.x] Docs: update heatmap panel options (#71097)
Docs: update heatmap panel options (#71058)

Added some heatmap panel configuration options which were missing from the docs

(cherry picked from commit bdf60d69de)

Co-authored-by: prenzlern <88067634+prenzlern@users.noreply.github.com>
2023-07-05 13:52:12 -04:00
grafana-delivery-bot[bot]
2527d65121 [v10.0.x] TimePicker: Fix issue with previous fiscal quarter not parsing correctly (#71093)
TimePicker: Fix issue with previous fiscal quarter not parsing correctly (#71083)

* fix issue with previous fiscal quarter not parsing correctly

* add comment

(cherry picked from commit ab09c9efc7)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-05 19:12:35 +03:00
grafana-delivery-bot[bot]
627e690c36 [v10.0.x] Docs: adds uninstall instructions to debian/ubuntu (#71078)
Docs: adds uninstall instructions to debian/ubuntu (#70841)

* adds uninstall to debian/ubuntu

* updates based on SME feedback

* Update docs/sources/setup-grafana/installation/debian/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Moved remove grafana repo as separate step

* adds uninstall docs to remaining linux topics

* Update docs/sources/setup-grafana/installation/debian/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/suse-opensuse/index.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

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

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/suse-opensuse/index.md

* corrects punctuation

* makes prettier

---------

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
(cherry picked from commit 971058919f)

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-07-05 08:42:16 -05:00
grafana-delivery-bot[bot]
f48cc869be [v10.0.x] Docs: Provide absolute paths for set-up-https.md (#71046)
Docs: Provide absolute paths for set-up-https.md (#70681)

Fixes #69664

(cherry picked from commit f2bb9fd92a)

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2023-07-04 16:43:31 +02:00
grafana-delivery-bot[bot]
90411d4c31 [v10.0.x] Graphite: Fix infinite loop in text editor when using graphite in a Mixed datasource (#71003)
Graphite: Fix infinite loop in text editor when using graphite in a Mixed datasource (#70970)

Fix infinite react state loop exhibited in mixed datasource by stringifying objects in useEffect dependencies

(cherry picked from commit 4217c8057b)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2023-06-30 22:13:24 +03:00
grafana-delivery-bot[bot]
ca96a750cb [v10.0.x] Prometheus: Remove duplicate definition in docs (#71002)
Prometheus: Remove duplicate definition in docs (#70916)

remove duplicate lines

(cherry picked from commit 0817ee00f9)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2023-06-30 14:00:54 -05:00
grafana-delivery-bot[bot]
df3e56aedb [v10.0.x] AzureMonitor: Fix metric names for multi-resources. (#70994)
AzureMonitor: Fix metric names for multi-resources. (#70864)

When building a query for multiple resources only a subset of metrics
are valid and that selection is only available via the API version `2017-12-01-preview`.

fixes #68603

(cherry picked from commit f32f1859a0)

Co-authored-by: Adam Simpson <adam@adamsimpson.net>
2023-06-30 19:01:03 +03:00
grafana-delivery-bot[bot]
47ac8e353c [v10.0.x] docs/serviceaccount.md - Incorrect key "role" for creating token (#70991)
docs/serviceaccount.md - Incorrect key "role" for creating token (#68809)

The key "role" in the JSON body doesn't make sense for creating service account *tokens* (and the method will happily create one without it). It is only required for creating the service account itself.

(cherry picked from commit ad8211cce7)

Co-authored-by: Frederic Hemberger <mail@frederic-hemberger.de>
2023-06-30 16:25:50 +01:00
Gábor Farkas
e486eaa3b2 [v10.0.x] Logs: Do not insert log-line into log-fields in json download (#70954)
Logs: Do not insert log-line into log-fields in json download (#70901)

* logs: do not insert log-line into log-fields in json download

* fixed test after merge

(cherry picked from commit 2084cc9955)
2023-06-30 13:53:28 +02:00
grafana-delivery-bot[bot]
0e092ba6a1 [v10.0.x] Loki: Fix wrong query expression with inline comments (#70948)
Loki: Fix wrong query expression with inline comments (#70947)

fix remove comments from query

(cherry picked from commit 13dd821961)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-06-30 12:44:48 +03:00
975 changed files with 18170 additions and 22550 deletions

View File

@@ -5206,7 +5206,7 @@ exports[`better eslint`] = {
"public/app/plugins/panel/geomap/utils/selection.ts:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
],
"public/app/plugins/panel/geomap/utils/tootltip.ts:5381": [
"public/app/plugins/panel/geomap/utils/tooltip.ts:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],
[0, 0, 0, "Do not use any type assertions.", "1"]
],

View File

@@ -1294,7 +1294,7 @@ This option to group query variable values into groups by tags has been an exper
**Deprecation warnings**
- Scripted dashboards is now deprecated. The feature is not removed but will be in a future release. We hope to address the underlying requirement of dynamic dashboards in a different way. [#24059](https://github.com/grafana/grafana/issues/24059)
- The unofficial first version of backend plugins together with usage of [grafana/grafana-plugin-model](https://github.com/grafana/grafana-plugin-model) is now deprecated and support for that will be removed in a future release. Please refer to [backend plugins documentation](https://grafana.com/docs/grafana/latest/developers/plugins/backend/) for information about the new officially supported backend plugins.
- The unofficial first version of backend plugins together with usage of [grafana/grafana-plugin-model](https://github.com/grafana/grafana-plugin-model) is now deprecated and support for that will be removed in a future release. Please refer to [backend plugins documentation](/developers/plugin-tools/introduction/backend-plugins) for information about the new officially supported backend plugins.
## 7.0 Feature highlights

5
.codespellignore Normal file
View File

@@ -0,0 +1,5 @@
aks
eror
iam
wan
operato

View File

@@ -7,58 +7,47 @@
This module returns a Drone configuration including pipelines and secrets.
"""
load("scripts/drone/events/pr.star", "pr_pipelines")
load("scripts/drone/events/cron.star", "cronjobs")
load("scripts/drone/events/main.star", "main_pipelines")
load("scripts/drone/events/pr.star", "pr_pipelines")
load(
"scripts/drone/events/release.star",
"enterprise2_pipelines",
"enterprise_pipelines",
"integration_test_pipelines",
"oss_pipelines",
"publish_artifacts_pipelines",
"publish_npm_pipelines",
"publish_packages_pipeline",
"verify_release_pipeline",
)
load(
"scripts/drone/pipelines/ci_images.star",
"publish_ci_windows_test_image_pipeline",
)
load(
"scripts/drone/pipelines/publish_images.star",
"publish_image_pipelines_public",
)
load(
"scripts/drone/pipelines/ci_images.star",
"publish_ci_windows_test_image_pipeline",
)
load("scripts/drone/pipelines/github.star", "publish_github_pipeline")
load("scripts/drone/pipelines/aws_marketplace.star", "publish_aws_marketplace_pipeline")
load(
"scripts/drone/pipelines/windows.star",
"windows_test_backend",
)
load("scripts/drone/version.star", "version_branch_pipelines")
load("scripts/drone/events/cron.star", "cronjobs")
load(
"scripts/drone/rgm.star",
"rgm",
)
load("scripts/drone/vault.star", "secrets")
def main(_ctx):
return (
pr_pipelines() +
main_pipelines() +
oss_pipelines() +
enterprise_pipelines() +
enterprise2_pipelines() +
publish_image_pipelines_public() +
publish_github_pipeline("public") +
publish_github_pipeline("security") +
publish_aws_marketplace_pipeline("public") +
publish_artifacts_pipelines("security") +
publish_artifacts_pipelines("public") +
publish_npm_pipelines() +
publish_packages_pipeline() +
[verify_release_pipeline()] +
rgm() +
[windows_test_backend({
"event": ["promote"],
"target": ["test-windows"],
}, "oss", "testing")] +
version_branch_pipelines() +
integration_test_pipelines() +
publish_ci_windows_test_image_pipeline() +
cronjobs() +

6144
.drone.yml

File diff suppressed because it is too large Load Diff

48
.github/CODEOWNERS vendored
View File

@@ -13,7 +13,8 @@
# Documentation
/.changelog-archive @grafana/docs-grafana
/CHANGELOG.md @grafana/docs-grafana
/.codespellignore @grafana/docs-tooling
/CHANGELOG.md @grafana/grafana-delivery
/CODE_OF_CONDUCT.md @grafana/docs-grafana
/CONTRIBUTING.md @grafana/docs-grafana
/GOVERNANCE.md @RichiH
@@ -33,24 +34,25 @@
/devenv/README.md @grafana/docs-grafana
# Technical documentation
/docs/ @Eve832 @jdbaldry
/docs/sources/ @Eve832
/docs/sources/administration/ @Eve832 @GrafanaWriter
/docs/sources/alerting/ @brendamuir
/docs/sources/dashboards/ @imatwawana
/docs/sources/datasources/ @Eve832 @GrafanaWriter
/docs/sources/explore/ @Eve832 @GrafanaWriter
/docs/sources/fundamentals @chri2547
/docs/sources/getting-started/ @chri2547
/docs/sources/introduction/ @chri2547
/docs/sources/old-alerting/ @brendamuir
/docs/sources/panels-visualizations/ @imatwawana
/docs/sources/release-notes/ @Eve832 @GrafanaWriter
/docs/sources/setup-grafana/ @chri2547
/docs/sources/upgrade-guide/ @chri2547 @imatwawana
/docs/sources/whatsnew/ @chri2547 @imatwawana
/docs/sources/developers/plugins/ @Eve832 @josmperez @grafana/plugins-platform-frontend @grafana/plugins-platform-backend
/docs/sources/developers/plugins/backend/ @Eve832 @grafana/plugins-platform-backend
# `make docs` procedure and related workflows are owned @grafana/docs-tooling. Slack #docs.
# Documentation sources might have different owners.
/docs/ @grafana/docs-tooling
/docs/sources/ @Eve832
/docs/sources/administration/ @jdbaldry
/docs/sources/alerting/ @brendamuir
/docs/sources/dashboards/ @imatwawana
/docs/sources/datasources/ @lwandz13
/docs/sources/explore/ @grafana/explore-squad
/docs/sources/fundamentals @chri2547
/docs/sources/getting-started/ @chri2547
/docs/sources/introduction/ @chri2547
/docs/sources/old-alerting/ @brendamuir
/docs/sources/panels-visualizations/ @imatwawana
/docs/sources/release-notes/ @Eve832 @GrafanaWriter
/docs/sources/setup-grafana/ @chri2547
/docs/sources/upgrade-guide/ @imatwawana
/docs/sources/whatsnew/ @imatwawana
/docs/sources/developers/plugins/ @Eve832 @josmperez @grafana/plugins-platform-frontend @grafana/plugins-platform-backend
# Backend code
/go.mod @grafana/backend-platform
@@ -358,10 +360,10 @@ lerna.json @grafana/frontend-ops
/public/app/features/api-keys/ @grafana/grafana-frontend-platform
/public/app/features/canvas/ @grafana/dataviz-squad
/public/app/features/commandPalette/ @grafana/grafana-frontend-platform
/public/app/features/connections/ @grafana/plugins-platform-frontend
/public/app/features/connections/ @grafana/plugins-platform-frontend @mikkancso
/public/app/features/correlations/ @grafana/explore-squad
/public/app/features/dashboard/ @grafana/dashboards-squad
/public/app/features/datasources/ @grafana/plugins-platform-frontend
/public/app/features/datasources/ @grafana/plugins-platform-frontend @mikkancso
/public/app/features/dimensions/ @grafana/dataviz-squad
/public/app/features/dataframe-import/ @grafana/grafana-bi-squad
/public/app/features/explore/ @grafana/explore-squad
@@ -582,6 +584,7 @@ embed.go @grafana/grafana-as-code
/.github/pr-commands.json @marefr
/.github/renovate.json5 @grafana/frontend-ops
/.github/teams.yml @armandgrillet
/.github/workflows/auto-milestone.yml @grafana/grafana-delivery
/.github/workflows/backport.yml @grafana/grafana-delivery
/.github/workflows/bump-version.yml @grafana/grafana-delivery
/.github/workflows/close-milestone.yml @grafana/grafana-delivery
@@ -604,6 +607,8 @@ embed.go @grafana/grafana-as-code
/.github/workflows/pr-codeql-analysis-python.yml @DanCech
/.github/workflows/pr-commands-closed.yml @tolzhabayev
/.github/workflows/pr-commands.yml @marefr
/.github/workflows/pr-patch-check.yml @grafana/grafana-delivery
/.github/workflows/sync-mirror.yml @grafana/grafana-delivery
/.github/workflows/publish-technical-documentation-next.yml @grafana/docs-grafana
/.github/workflows/publish-technical-documentation-release.yml @grafana/docs-grafana
/.github/workflows/remove-milestone.yml @grafana/grafana-frontend-platform
@@ -613,6 +618,7 @@ embed.go @grafana/grafana-as-code
/.github/workflows/stale.yml @grafana/grafana-frontend-platform
/.github/workflows/update-changelog.yml @grafana/grafana-delivery
/.github/workflows/snyk.yml @grafana/security-team
/.github/workflows/create-security-patch-from-security-mirror.yml @grafana/grafana-delivery
# Generated files not requiring owner approval
/packages/grafana-data/src/types/featureToggles.gen.ts @grafanabot

View File

@@ -46,4 +46,4 @@
},
"targetUrl": "https://github.com/grafana/grafana/blob/main/contribute/merge-pull-request.md#include-in-changelog-and-release-notes"
}
]
]

24
.github/workflows/auto-milestone.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Auto-milestone
on:
pull_request:
types:
- opened
- reopened
- closed
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Run auto-milestone
uses: grafana/grafana-github-actions-go/auto-milestone@main
with:
pr: ${{ github.event.pull_request.number }}
token: ${{ steps.generate_token.outputs.token }}

View File

@@ -55,6 +55,10 @@ jobs:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
# Go is required for also updating the schema versions as part of the precommit hook:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/setup-node@v3.5.1
with:
node-version: '16'
@@ -71,3 +75,4 @@ jobs:
with:
token: ${{ steps.generate_token.outputs.token }}
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
precommit_make_target: gen-cue

View File

@@ -44,7 +44,7 @@ jobs:
name: Set go version
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
go-version: '1.21.5'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -0,0 +1,28 @@
# Owned by grafana-delivery-squad
# Intended to be dropped into the base repo (Ex: grafana/grafana) for use in the security mirror.
name: Create security patch
run-name: create-security-patch
on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- "main"
- "v*.*.*"
# This is run before the pull request has been merged, so we'll run against the src branch
jobs:
trigger_downstream_create_security_patch:
concurrency: create-patch-${{ github.ref_name }}
uses: grafana/security-patch-actions/.github/workflows/create-patch.yml@main
if: github.repository == 'grafana/grafana-security-mirror'
with:
repo: "${{ github.repository }}"
src_ref: "${{ github.head_ref }}" # this is the source branch name, Ex: "feature/newthing"
patch_ref: "${{ github.base_ref }}" # this is the target branch name, Ex: "main"
patch_repo: "grafana/grafana-security-patches"
patch_prefix: "${{ github.event.pull_request.number }}"
secrets: inherit

View File

@@ -23,7 +23,7 @@ jobs:
- name: Set go version
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
go-version: '1.21.5'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -8,20 +8,44 @@ on:
concurrency:
group: pr-commands-${{ github.event.number }}
jobs:
config:
runs-on: "ubuntu-latest"
outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }}
steps:
- name: "Check for secrets"
id: check
shell: bash
run: |
if [ -n "${{ (secrets.GRAFANA_PR_AUTOMATION_APP_ID != '' &&
secrets.GRAFANA_PR_AUTOMATION_APP_PEM != '' &&
secrets.GRAFANA_MISC_STATS_API_KEY != ''
) || '' }}" ]; then
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
fi
main:
needs: config
if: needs.config.outputs.has-secrets
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
- name: Install Actions
run: npm install --production --prefix ./actions
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_ID }}
private_key: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_PEM }}
- name: Run Commands
uses: ./actions/commands
with:
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
configPath: pr-commands
token: ${{ steps.generate_token.outputs.token }}
configPath: pr-commands

26
.github/workflows/pr-patch-check.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
# Owned by grafana-delivery-squad
# Intended to be dropped into the base repo Ex: grafana/grafana
name: Check for patch conflicts
run-name: check-patch-conflicts-${{ github.base_ref }}-${{ github.head_ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- "main"
- "v*.*.*"
- "release-*"
# Since this is run on a pull request, we want to apply the patches intended for the
# target branch onto the source branch, to verify compatibility before merging.
jobs:
trigger_downstream_patch_check:
uses: grafana/security-patch-actions/.github/workflows/test-patches.yml@main
with:
src_repo: "${{ github.repository }}"
src_ref: "${{ github.head_ref }}" # this is the source branch name, Ex: "feature/newthing"
patch_repo: "${{ github.repository }}-security-patches"
patch_ref: "${{ github.base_ref }}" # this is the target branch name, Ex: "main"
secrets: inherit

25
.github/workflows/sync-mirror.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
# Owned by grafana-delivery-squad
# Intended to be dropped into the base repo, Ex: grafana/grafana
name: Sync to mirror
run-name: sync-to-mirror-${{ github.ref_name }}
on:
workflow_dispatch:
push:
branches:
- "main"
- "v*.*.*"
- "release-*"
# This is run after the pull request has been merged, so we'll run against the target branch
jobs:
trigger_downstream_patch_mirror:
concurrency: patch-mirror-${{ github.ref_name }}
uses: grafana/security-patch-actions/.github/workflows/mirror-branch-and-apply-patches.yml@main
if: github.repository == 'grafana/grafana'
with:
ref: "${{ github.ref_name }}" # this is the target branch name, Ex: "main"
src_repo: "${{ github.repository }}"
dest_repo: "${{ github.repository }}-security-mirror"
patch_repo: "${{ github.repository }}-security-patches"
secrets: inherit

View File

@@ -80,7 +80,7 @@ var config = {
{
url: '${HOST}/?orgId=1',
wait: 500,
threshold: 0,
threshold: 3,
},
{
url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge',
@@ -93,7 +93,7 @@ var config = {
url: '${HOST}/?orgId=1&search=open',
wait: 500,
rootElement: '.main-view',
threshold: 0,
threshold: 3,
},
{
url: '${HOST}/alerting/list',

View File

@@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
}
}
// Defer to the real prettier/index.js your application uses
module.exports = absRequire(`prettier/index.js`);
// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);

File diff suppressed because it is too large Load Diff

View File

@@ -82,6 +82,6 @@ Before we can accept your pull request, you need to [sign our CLA](https://grafa
## Where do I go from here?
- Set up your [development environment](contribute/developer-guide.md).
- Learn how to [contribute documentation](contribute/README.md).
- Get started [developing plugins](https://grafana.com/docs/grafana/latest/developers/plugins/) for Grafana.
- Learn how to [contribute to our documentation](contribute/documentation/README.md).
- Get started [developing plugins](https://grafana.com/developers/plugin-tools) for Grafana.
- Look through the resources in the [contribute](contribute) folder.

View File

@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1
ARG BASE_IMAGE=alpine:3.17
ARG JS_IMAGE=node:18-alpine3.17
ARG BASE_IMAGE=alpine:3.18.3
ARG JS_IMAGE=node:18-alpine3.18
ARG JS_PLATFORM=linux/amd64
ARG GO_IMAGE=golang:1.20.4-alpine3.17
ARG GO_IMAGE=golang:1.21.5-alpine3.18
ARG GO_SRC=go-builder
ARG JS_SRC=js-builder
@@ -64,6 +64,7 @@ COPY pkg pkg
COPY scripts scripts
COPY conf conf
COPY .github .github
COPY LICENSE ./
ENV COMMIT_SHA=${COMMIT_SHA}
ENV BUILD_BRANCH=${BUILD_BRANCH}
@@ -110,7 +111,7 @@ RUN if grep -i -q alpine /etc/issue; then \
elif grep -i -q ubuntu /etc/issue; then \
DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y ca-certificates curl tzdata && \
apt-get install -y ca-certificates curl tzdata musl && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*; \
else \
@@ -165,6 +166,7 @@ RUN if [ ! $(getent group "$GF_GID") ]; then \
COPY --from=go-src /tmp/grafana/bin/grafana* /tmp/grafana/bin/*/grafana* ./bin/
COPY --from=js-src /tmp/grafana/public ./public
COPY --from=go-src /tmp/grafana/LICENSE ./
EXPOSE 3000

View File

@@ -13,7 +13,6 @@ GO = go
GO_FILES ?= ./pkg/...
SH_FILES ?= $(shell find ./scripts -name *.sh)
GO_BUILD_FLAGS += $(if $(GO_BUILD_DEV),-dev)
GO_BUILD_FLAGS += $(if $(GO_BUILD_DEV),-dev)
GO_BUILD_FLAGS += $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS))
targets := $(shell echo '$(sources)' | tr "," " ")
@@ -37,36 +36,68 @@ node_modules: package.json yarn.lock ## Install node modules.
##@ Swagger
SPEC_TARGET = public/api-spec.json
MERGED_SPEC_TARGET := public/api-merged.json
ENTERPRISE_SPEC_TARGET = public/api-enterprise-spec.json
MERGED_SPEC_TARGET = public/api-merged.json
NGALERT_SPEC_TARGET = pkg/services/ngalert/api/tooling/api.json
$(NGALERT_SPEC_TARGET):
+$(MAKE) -C pkg/services/ngalert/api/tooling api.json
$(MERGED_SPEC_TARGET): $(SPEC_TARGET) $(NGALERT_SPEC_TARGET) $(SWAGGER) ## Merge generated and ngalert API specs
$(MERGED_SPEC_TARGET): swagger-oss-gen swagger-enterprise-gen $(NGALERT_SPEC_TARGET) $(SWAGGER) ## Merge generated and ngalert API specs
# known conflicts DsPermissionType, AddApiKeyCommand, Json, Duration (identical models referenced by both specs)
$(SWAGGER) mixin $(SPEC_TARGET) $(NGALERT_SPEC_TARGET) --ignore-conflicts -o $(MERGED_SPEC_TARGET)
$(SWAGGER) mixin $(SPEC_TARGET) $(ENTERPRISE_SPEC_TARGET) $(NGALERT_SPEC_TARGET) --ignore-conflicts -o $(MERGED_SPEC_TARGET)
$(SPEC_TARGET): $(SWAGGER) ## Generate API Swagger specification
swagger-oss-gen: $(SWAGGER) ## Generate API Swagger specification
@echo "re-generating swagger for OSS"
rm -f $(SPEC_TARGET)
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -m -w pkg/server -o $(SPEC_TARGET) \
-x "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" \
-x "github.com/prometheus/alertmanager" \
-i pkg/api/swagger_tags.json \
--exclude-tag=alpha
go run pkg/services/ngalert/api/tooling/cmd/clean-swagger/main.go -if $@ -of $@
--exclude-tag=alpha \
--exclude-tag=enterprise
swagger-api-spec: gen-go $(SPEC_TARGET) $(MERGED_SPEC_TARGET) validate-api-spec
# this file only exists if enterprise is enabled
ENTERPRISE_EXT_FILE = pkg/extensions/ext.go
ifeq ("$(wildcard $(ENTERPRISE_EXT_FILE))","") ## if enterprise is not enabled
swagger-enterprise-gen:
@echo "skipping re-generating swagger for enterprise: not enabled"
else
swagger-enterprise-gen: $(SWAGGER) ## Generate API Swagger specification
@echo "re-generating swagger for enterprise"
rm -f $(ENTERPRISE_SPEC_TARGET)
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -m -w pkg/server -o $(ENTERPRISE_SPEC_TARGET) \
-x "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" \
-x "github.com/prometheus/alertmanager" \
-i pkg/api/swagger_tags.json \
--exclude-tag=alpha \
--include-tag=enterprise
endif
validate-api-spec: $(MERGED_SPEC_TARGET) $(SWAGGER) ## Validate API spec
swagger-gen: gen-go $(MERGED_SPEC_TARGET) swagger-validate
swagger-validate: $(MERGED_SPEC_TARGET) $(SWAGGER) ## Validate API spec
$(SWAGGER) validate $(<)
clean-api-spec:
swagger-clean:
rm -f $(SPEC_TARGET) $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
.PHONY: cleanup-old-git-hooks
cleanup-old-git-hooks:
./scripts/cleanup-husky.sh
.PHONY: lefthook-install
lefthook-install: cleanup-old-git-hooks $(LEFTHOOK) # install lefthook for pre-commit hooks
$(LEFTHOOK) install -f
.PHONY: lefthook-uninstall
lefthook-uninstall: $(LEFTHOOK)
$(LEFTHOOK) uninstall
##@ OpenAPI 3
OAPI_SPEC_TARGET = public/openapi3.json
openapi3-gen: swagger-api-spec ## Generates OpenApi 3 specs from the Swagger 2 already generated
openapi3-gen: swagger-gen ## Generates OpenApi 3 specs from the Swagger 2 already generated
$(GO) run scripts/openapi3/openapi3conv.go $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
##@ Building
@@ -77,7 +108,7 @@ gen-cue: ## Do all CUE/Thema code generation
go generate ./public/app/plugins/gen.go
go generate ./pkg/kindsys/report.go
gen-go: $(WIRE) gen-cue
gen-go: $(WIRE)
@echo "generate go files"
$(WIRE) gen -tags $(WIRE_TAGS) ./pkg/server
@@ -133,6 +164,13 @@ test-go-integration: ## Run integration tests for backend with flags.
@echo "test backend integration tests"
$(GO) test -count=1 -run "^TestIntegration" -covermode=atomic -timeout=5m $(GO_INTEGRATION_TESTS)
.PHONY: test-go-integration-alertmanager
test-go-integration-alertmanager: ## Run integration tests for the remote alertmanager (config taken from the mimir_backend block).
@echo "test remote alertmanager integration tests"
$(GO) clean -testcache
AM_URL=http://localhost:8080 AM_TENANT_ID=test AM_PASSWORD=test \
$(GO) test -count=1 -run "^TestIntegrationRemoteAlertmanager" -covermode=atomic -timeout=5m ./pkg/services/ngalert/notifier/...
.PHONY: test-go-integration-postgres
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
@echo "test backend integration postgres tests"
@@ -191,7 +229,7 @@ build-docker-full: ## Build Docker image for development.
--build-arg BINGO=false \
--build-arg GO_BUILD_TAGS=$(GO_BUILD_TAGS) \
--build-arg WIRE_TAGS=$(WIRE_TAGS) \
--build-arg COMMIT_SHA=$$(git rev-parse --short HEAD) \
--build-arg COMMIT_SHA=$$(git rev-parse HEAD) \
--build-arg BUILD_BRANCH=$$(git rev-parse --abbrev-ref HEAD) \
--tag grafana/grafana$(TAG_SUFFIX):dev \
$(DOCKER_BUILD_ARGS)
@@ -204,10 +242,10 @@ build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
--build-arg BINGO=false \
--build-arg GO_BUILD_TAGS=$(GO_BUILD_TAGS) \
--build-arg WIRE_TAGS=$(WIRE_TAGS) \
--build-arg COMMIT_SHA=$$(git rev-parse --short HEAD) \
--build-arg COMMIT_SHA=$$(git rev-parse HEAD) \
--build-arg BUILD_BRANCH=$$(git rev-parse --abbrev-ref HEAD) \
--build-arg BASE_IMAGE=ubuntu:20.04 \
--build-arg GO_IMAGE=golang:1.20.4 \
--build-arg BASE_IMAGE=ubuntu:22.04 \
--build-arg GO_IMAGE=golang:1.21.5 \
--tag grafana/grafana$(TAG_SUFFIX):dev-ubuntu \
$(DOCKER_BUILD_ARGS)
@@ -252,6 +290,9 @@ devenv-mysql:
protobuf: ## Compile protobuf definitions
bash scripts/protobuf-check.sh
bash pkg/plugins/backendplugin/pluginextensionv2/generate.sh
bash pkg/plugins/backendplugin/secretsmanagerplugin/generate.sh
bash pkg/services/store/entity/generate.sh
bash pkg/infra/grn/generate.sh
clean: ## Clean up intermediate build artifacts.
@echo "cleaning"
@@ -277,7 +318,7 @@ scripts/drone/TAGS: $(shell find scripts/drone -name '*.star')
etags --lang none --regex="/def \(\w+\)[^:]+:/\1/" --regex="/\s*\(\w+\) =/\1/" $^ -o $@
format-drone:
buildifier -r scripts/drone
buildifier --lint=fix -r scripts/drone
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

View File

@@ -242,7 +242,7 @@ reporting_distributor = grafana-labs
# for new versions of grafana. The check is used
# in some UI views to notify that a grafana update exists.
# This option does not cause any auto updates, nor send any information
# only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
# only a GET request to https://grafana.com/api/grafana/versions/stable to get the latest version.
check_for_updates = true
# Set to false to disable all checks to https://grafana.com
@@ -556,6 +556,17 @@ azure_auth_enabled = false
# Use email lookup in addition to the unique ID provided by the IdP
oauth_allow_insecure_email_lookup = false
# Set to true to include id of identity as a response header
id_response_header_enabled = false
# Prefix used for the id response header, X-Grafana-Identity-Id
id_response_header_prefix = X-Grafana
# List of identity namespaces to add id response headers for, separated by space.
# Available namespaces are user, api-key and service-account.
# The header value will encode the namespace ("user:<id>", "api-key:<id>", "service-account:<id>")
id_response_header_namespaces = user api-key service-account
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
@@ -589,6 +600,7 @@ allowed_organizations =
role_attribute_path =
role_attribute_strict = false
allow_assign_grafana_admin = false
skip_org_role_sync = false
tls_skip_verify_insecure = false
#################################### GitLab Auth #########################
@@ -805,6 +817,24 @@ managed_identity_enabled = false
# Should be set for user-assigned identity and should be empty for system-assigned identity
managed_identity_client_id =
# Specifies whether Azure AD Workload Identity authentication should be enabled in datasources that support it
# For more documentation on Azure AD Workload Identity, review this documentation:
# https://azure.github.io/azure-workload-identity/docs/
# Disabled by default, needs to be explicitly enabled
workload_identity_enabled = false
# Tenant ID of the Azure AD Workload Identity
# Allows to override default tenant ID of the Azure AD identity associated with the Kubernetes service account
workload_identity_tenant_id =
# Client ID of the Azure AD Workload Identity
# Allows to override default client ID of the Azure AD identity associated with the Kubernetes service account
workload_identity_client_id =
# Custom path to token file for the Azure AD Workload Identity
# Allows to set a custom path to the projected service account token file
workload_identity_token_file =
#################################### Role-based Access Control ###########
[rbac]
# If enabled, cache permissions in a in memory cache
@@ -1040,8 +1070,8 @@ execute_alerts = true
# The timeout string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
evaluation_timeout = 30s
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. This option has a legacy version in the `[alerting]` section that takes precedence.
max_attempts = 3
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. The default value is 1.
max_attempts = 1
# Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time. This option has a legacy version in the `[alerting]` section that takes precedence.
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
@@ -1226,6 +1256,8 @@ enabled = true
interval_seconds = 10
# Disable total stats (stat_totals_*) metrics to be generated
disable_total_stats = false
# The interval at which the total stats collector will update the stats. Default is 1800 seconds.
total_stats_collector_interval_seconds = 1800
#If both are set, basic auth will be required for the metrics endpoints.
basic_auth_username =

View File

@@ -249,7 +249,7 @@
# for new versions of grafana. The check is used
# in some UI views to notify that a grafana update exists.
# This option does not cause any auto updates, nor send any information
# only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
# only a GET request to https://grafana.com/api/grafana/versions/stable to get the latest version.
;check_for_updates = true
# Set to false to disable all checks to https://grafana.com
@@ -545,6 +545,17 @@
# Use email lookup in addition to the unique ID provided by the IdP
;oauth_allow_insecure_email_lookup = false
# Set to true to include id of identity as a response header
;id_response_header_enabled = false
# Prefix used for the id response header, X-Grafana-Identity-Id
;id_response_header_prefix = X-Grafana
# List of identity namespaces to add id response headers for, separated by space.
# Available namespaces are user, api-key and service-account.
# The header value will encode the namespace ("user:<id>", "api-key:<id>", "service-account:<id>")
;id_response_header_namespaces = user api-key service-account
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
@@ -578,6 +589,7 @@
;role_attribute_path =
;role_attribute_strict = false
;allow_assign_grafana_admin = false
;skip_org_role_sync = false
#################################### GitLab Auth #########################
[auth.gitlab]
@@ -776,6 +788,24 @@
# Should be set for user-assigned identity and should be empty for system-assigned identity
;managed_identity_client_id =
# Specifies whether Azure AD Workload Identity authentication should be enabled in datasources that support it
# For more documentation on Azure AD Workload Identity, review this documentation:
# https://azure.github.io/azure-workload-identity/docs/
# Disabled by default, needs to be explicitly enabled
;workload_identity_enabled = false
# Tenant ID of the Azure AD Workload Identity
# Allows to override default tenant ID of the Azure AD identity associated with the Kubernetes service account
;workload_identity_tenant_id =
# Client ID of the Azure AD Workload Identity
# Allows to override default client ID of the Azure AD identity associated with the Kubernetes service account
;workload_identity_client_id =
# Custom path to token file for the Azure AD Workload Identity
# Allows to set a custom path to the projected service account token file
;workload_identity_token_file =
#################################### Role-based Access Control ###########
[rbac]
;permission_cache = true
@@ -1009,8 +1039,8 @@
# The timeout string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
;evaluation_timeout = 30s
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. This option has a legacy version in the `[alerting]` section that takes precedence.
;max_attempts = 3
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. The default value is 1.
;max_attempts = 1
# Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time. This option has a legacy version in the `[alerting]` section that takes precedence.
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
@@ -1167,6 +1197,8 @@
;interval_seconds = 10
# Disable total stats (stat_totals_*) metrics to be generated
;disable_total_stats = false
# The interval at which the total stats collector will update the stats. Default is 1800 seconds.
;total_stats_collector_interval_seconds = 1800
#If both are set, basic auth will be required for the metrics endpoints.
; basic_auth_username =

View File

@@ -0,0 +1,22 @@
# Upgrading Go Version
Notes on upgrading Go version.
Example PR: https://github.com/grafana/grafana/pull/79329
## The main areas that need to change during the upgrade are:
- https://github.com/grafana/grafana/blob/d8ecea4ed93efb2e4d64a5ee24bc08f3805f413d/scripts/drone/variables.star#L6
- https://github.com/grafana/grafana/blob/d8ecea4ed93efb2e4d64a5ee24bc08f3805f413d/Makefile#L264
- https://github.com/grafana/grafana/blob/d8ecea4ed93efb2e4d64a5ee24bc08f3805f413d/Dockerfile#L6
Make sure to run `make drone` so that changes to `.star` files are reflected and `drone.yml` is generated.
### Additional files to change
- Take a look in `.github/workflows` folder for what `go` version is being used there in various workflows.
- Make sure to create a PR with the corresponding changes in `grafana/grafana-enterprise` repository.
## Updating the go.mod file
Please avoid updating the `go.mod` to the newest version unless really necessary. This ensures backwards compatibility and introduces less breaking changes. Always upgrade Go version in the runtime files above first, let them run for a couple of weeks and only then consider updating the `go.mod` file if necessary.

View File

@@ -104,7 +104,7 @@ myOldFunction(name: string) {
2. Add info in the comment about **when it is going to be removed**
3. Add info in the comment about **what should be used instead**
4. In case it's a function or a method, use `deprecationWarning(<file name>, <old name>, <new name>)` to raise attention during runtime as well
5. Update the [migration guide](../docs/sources/developers/plugins/migration-guide.md) with your instructions
5. Update the [migration guide](/developers/plugin-tools/migration-guides/) with your instructions
### Communicate

View File

@@ -13,7 +13,6 @@ The following checklist/summary should give you a quick overview of what to ask/
- Reviewed and approved?
- All checks passed?
- Proper pull request title?
- Milestone assigned?
- Add to changelog/release notes?
- Needs backporting?
@@ -40,11 +39,17 @@ See [formatting guidelines](create-pull-request.md#formatting-guidelines) for mo
### Assign a milestone
A milestone **should** be added to every pull request. Several things in the Grafana release process requires at least pull requests to be in a milestone, for example [generating changelog/release notes](#include-in-changelog-and-release-notes).
Several things in the Grafana release process requires at least pull requests to be in a milestone, for example [generating changelog/release notes](#include-in-changelog-and-release-notes).
This makes it easier to track what changes go into a certain release. Without this information, release managers have to go through git commits which is not an efficient process.
Always assign the milestone for the version that a PR is merged into. PRs targetting `main` should use the next minor (or major) version and backport PRs should use the same value than the target branch.
That being said, _you don't have to assign a milestone manually_ to a pull request.
Instead, when it is merged & closed then a bot will look for the most appropriate miletone and assign it to the pull request.
That milestone should always reflect the branch that the pull request is merged into.
For every major and minor release there is a milestone ending with `.x` (e.g. `10.0.x` for the 10.0.x releases).
Pull requests targetting `main` should use the `.x` milestone of the next minor (or major) version (you can find that version number inside the `package.json` file).
Backport pull requestss should use the version of the target branch (e.g. `9.4.x` for the `v9.4.x` branch).
### Include in changelog and release notes?
@@ -80,15 +85,15 @@ The changelog/release notes are divided into sections and here's a description o
**Features and enhancements:**
Milestone assigned and labeled with `add to changelog` and any of the other section rules don't apply.
Labeled with `add to changelog` and any of the other section rules don't apply.
**Bug fixes:**
Milestone assigned and labeled with `add to changelog` and either labeled with `type/bug` or the pull request title contains `fix` or `fixes`.
Labeled with `add to changelog` and either labeled with `type/bug` or the pull request title contains `fix` or `fixes`.
**Plugin development fixes & changes:**
Milestone assigned and labeled with `area/grafana/toolkit`, `area/grafana/ui` or `area/grafana/runtime`.
Labeled with `area/grafana/toolkit`, `area/grafana/ui` or `area/grafana/runtime`.
**Deprecations:**

View File

@@ -76,7 +76,7 @@ docs-rm: ## Remove the docs container.
.PHONY: docs-pull
docs-pull: ## Pull documentation base image.
$(PODMAN) pull $(DOCS_IMAGE)
$(PODMAN) pull -q $(DOCS_IMAGE)
make-docs: ## Fetch the latest make-docs script.
make-docs:

View File

@@ -19,6 +19,21 @@ readonly WEBSITE_MOUNTS="${WEBSITE_MOUNTS:-}"
PODMAN="$(if command -v podman >/dev/null 2>&1; then echo podman; else echo docker; fi)"
if ! command -v curl >/dev/null 2>&1; then
if ! command -v wget >/dev/null 2>&1; then
errr 'either `curl` or `wget` must be installed for this script to work.'
exit 1
fi
fi
if ! command -v "${PODMAN}" >/dev/null 2>&1; then
errr 'either `podman` or `docker` must be installed for this script to work.'
exit 1
fi
about() {
cat <<EOF
Test documentation locally with multiple source repositories.
@@ -214,9 +229,10 @@ repo_path() {
done
unset IFS
echo "ERRR: could not find project '${_repo}' in any of the paths in REPOS_PATH '${REPOS_PATH}'." >&2
echo "NOTE: you must have a checkout of the project '${_repo}' at '${REPOS_PATH##:*}/${_repo}'." >&2
echo "NOTE: if you have cloned the repository into a directory with a different name, consider changing it to ${_repo}." >&2
errr "could not find project '${_repo}' in any of the paths in REPOS_PATH '${REPOS_PATH}'."
note "you must have a checkout of the project '${_repo}' at '${REPOS_PATH##:*}/${_repo}'."
note "if you have cloned the repository into a directory with a different name, consider changing it to ${_repo}."
unset _repo
exit 1
}
@@ -302,6 +318,50 @@ POSIX_HERESTRING
unset _project _version _repo _path
}
await_build() {
url="$1"
req="$(if command -v curl >/dev/null 2>&1; then echo 'curl -s -o /dev/null'; else echo 'wget -q'; fi)"
sleep 2
if ${req} "${url}"; then
echo
echo "View documentation locally:"
for x in ${url_src_dst_vers}; do
IFS='^' read -r url _ _ <<POSIX_HERESTRING
$x
POSIX_HERESTRING
if [ -n "${url}" ]; then
if [ "${_url}" != "arbitrary" ]; then
echo " ${url}"
fi
fi
done
echo
echo 'Press Ctrl+C to stop the server'
else
echo
errr 'The build was interrupted or a build error occurred, check the previous logs for possible causes.'
fi
unset url req
}
debg() {
if [ -n "${DEBUG}" ]; then
echo "DEBG: $1" >&2
fi
}
errr() {
echo "ERRR: $1" >&2
}
note() {
echo "NOTE: $1" >&2
}
url_src_dst_vers="$(url_src_dst_vers "$@")"
volumes=""
@@ -327,13 +387,14 @@ POSIX_HERESTRING
if [ "${_url}" != "arbitrary" ]; then
if [ ! -f "${_src}/_index.md" ]; then
echo "ERRR: Index file '${_src}/_index.md' does not exist." >&2
echo "Is '${_src}' the correct source directory?" >&2
errr "Index file '${_src}/_index.md' does not exist."
note "Is '${_src}' the correct source directory?"
exit 1
fi
fi
echo "DEBG: Mounting '${_src}' at container path '${_dst}'" >&2
debg "DEBG: Mounting '${_src}' at container path '${_dst}'"
if [ -z "${volumes}" ]; then
volumes="--volume=${_src}:${_dst}"
else
@@ -359,35 +420,35 @@ case "${image}" in
proj="$(new_proj "$1")"
echo
"${PODMAN}" run \
--init \
--interactive \
--name "${DOCS_CONTAINER}" \
--platform linux/amd64 \
--rm \
--tty \
${volumes} \
"${DOCS_IMAGE}" \
"--include=${DOC_VALIDATOR_INCLUDE}" \
"--skip-checks=${DOC_VALIDATOR_SKIP_CHECKS}" \
/hugo/content/docs \
"$(proj_canonical "${proj}")" | sed "s#$(proj_dst "${proj}")#sources#"
--init \
--interactive \
--name "${DOCS_CONTAINER}" \
--platform linux/amd64 \
--rm \
--tty \
${volumes} \
"${DOCS_IMAGE}" \
"--include=${DOC_VALIDATOR_INCLUDE}" \
"--skip-checks=${DOC_VALIDATOR_SKIP_CHECKS}" \
/hugo/content/docs \
"$(proj_canonical "${proj}")" | sed "s#$(proj_dst "${proj}")#sources#"
;;
'grafana/vale')
proj="$(new_proj "$1")"
echo
"${PODMAN}" run \
--init \
--interactive \
--name "${DOCS_CONTAINER}" \
--platform linux/amd64 \
--rm \
--tty \
${volumes} \
"${DOCS_IMAGE}" \
"--minAlertLevel=${VALE_MINALERTLEVEL}" \
--config=/etc/vale/.vale.ini \
--output=line \
/hugo/content/docs | sed "s#$(proj_dst "${proj}")#sources#"
--init \
--interactive \
--name "${DOCS_CONTAINER}" \
--platform linux/amd64 \
--rm \
--tty \
${volumes} \
"${DOCS_IMAGE}" \
"--minAlertLevel=${VALE_MINALERTLEVEL}" \
--config=/etc/vale/.vale.ini \
--output=line \
/hugo/content/docs | sed "s#$(proj_dst "${proj}")#sources#"
;;
*)
tempfile="$(mktemp -t make-docs.XXX)"
@@ -417,33 +478,38 @@ EOF
volumes="${volumes} --volume=$(realpath "${tempfile}"):/entrypoint"
readonly volumes
echo
echo "Documentation will be served at the following URLs:"
for x in ${url_src_dst_vers}; do
IFS='^' read -r url _ _ <<POSIX_HERESTRING
$x
POSIX_HERESTRING
IFS='' read -r cmd <<EOF
${PODMAN} run \
--env=HUGO_REFLINKSERRORLEVEL=${HUGO_REFLINKSERRORLEVEL} \
--init \
--interactive \
--name=${DOCS_CONTAINER} \
--platform=linux/amd64 \
--publish=${DOCS_HOST_PORT}:3002 \
--publish=3003:3003 \
--rm \
--tty \
${volumes} \
${DOCS_IMAGE} \
/entrypoint
EOF
await_build http://localhost:3002 &
if [ -n "${url}" ]; then
if [ "${_url}" != "arbitrary" ]; then
echo " ${url}"
fi
fi
done
echo
"${PODMAN}" run \
--env "HUGO_REFLINKSERRORLEVEL=${HUGO_REFLINKSERRORLEVEL}" \
--init \
--interactive \
--name "${DOCS_CONTAINER}" \
--platform linux/amd64 \
--publish "${DOCS_HOST_PORT}:3002" \
--publish "3003:3003" \
--rm \
--tty \
${volumes} \
"${DOCS_IMAGE}" \
/entrypoint
if [ -n "${DEBUG}" ]; then
${cmd}
else
${cmd} 2>&1| sed \
-e '/Web Server is available at http:\/\/localhost:3003\/ (bind address 0.0.0.0)/ d' \
-e '/^hugo server/ d' \
-e '/fatal: not a git repository (or any parent up to mount point \/)/ d' \
-e '/Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)./ d' \
-e "/Makefile:[0-9]*: warning: overriding recipe for target 'docs'/ d" \
-e "/docs.mk:[0-9]*: warning: ignoring old recipe for target 'docs'/ d" \
-e '/\/usr\/bin\/make -j 2 proxy hserver-docs HUGO_PORT=3003/ d' \
-e '/website-proxy/ d' \
-e '/rm -rf dist*/ d' \
-e '/Press Ctrl+C to stop/ d' \
-e '/make/ d' || echo
fi
;;
esac

View File

@@ -3,204 +3,15 @@ aliases:
- /docs/grafana/v1.1/
- /docs/grafana/v3.1/
- guides/reference/admin/
cascade:
# Until a better mechanism for arrangement is thought of, the following sequence should be ordered alphabetically by the `_target.path` value.
- _target: { path: /docs/grafana/** } # Default to every page having "Enterprise" and "Open source" labels.
labels:
products:
- enterprise
- oss
- _target: { path: /docs/grafana/** }
labels:
products:
- enterprise
- oss
- _target: { path: /docs/grafana/*/administration/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/administration/enterprise-licensing/** }
labels:
products:
- enterprise
- _target: { path: /docs/grafana/*/administration/organization-management/** }
labels:
products:
- enterprise
- oss
- _target: { path: /docs/grafana/*/administration/provisioning/** }
labels:
products:
- enterprise
- oss
- _target: { path: /docs/grafana/*/administration/recorded-queries/** }
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/administration/roles-and-permissions/access-control/** }
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/administration/stats-and-license/** }
labels:
products:
- enterprise
- oss
- _target: { path: /docs/grafana/*/alerting/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/breaking-changes/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/dashboards/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/datasources/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/explore/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/fundamentals/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/introduction/grafana-cloud/** }
labels:
products:
- cloud
- _target: { path: /docs/grafana/*/introduction/grafana-enterprise/** }
labels:
products:
- enterprise
- _target: { path: /docs/grafana/*/panels-visualizations/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/release-notes/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/search/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/audit-grafana/** }
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/configure-authentication/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/configure-authentication/enhanced-ldap/** }
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/configure-authentication/saml/** }
labels:
products:
- cloud
- enterprise
- _target:
path: /docs/grafana/*/setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault/**
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/configure-request-security/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/configure-team-sync/** }
labels:
products:
- cloud
- enterprise
- _target: { path: /docs/grafana/*/setup-grafana/configure-security/export-logs/** }
labels:
products:
- cloud
- oss
- _target: { path: /docs/grafana/*/troubleshooting/** }
labels:
products:
- cloud
- enterprise
- oss
- _target: { path: /docs/grafana/*/whatsnew/** }
labels:
products:
- cloud
- enterprise
- oss
description: Guides, installation, and feature documentation
keywords:
- grafana
- installation
- documentation
labels:
products:
- enterprise
- oss
title: Grafana documentation
---
@@ -228,12 +39,16 @@ title: Grafana documentation
<img src="/static/img/logos/logo-docker.svg">
<h5>Run Docker image</h5>
</a>
<a href="{{< relref "setup-grafana/installation/kubernetes/" >}}" class="nav-cards__item nav-cards__item--install">
<img src="/static/img/logos/logo-kubernetes.svg">
<h5>Run on Kubernetes</h5>
</a>
<a href="https://grafana.com/docs/grafana-cloud/" class="nav-cards__item nav-cards__item--install">
<div class="nav-cards__icon fa fa-cloud">
</div>
<h5>Grafana Cloud</h5>
</a>
<a href="https://grafana.com/grafana/nightly?edition=oss" class="nav-cards__item nav-cards__item--install">
<a href="https://grafana.com/grafana/download/nightly?edition=oss" class="nav-cards__item nav-cards__item--install">
<div class="nav-cards__icon fa fa-moon-o">
</div>
<h5>Nightly builds</h5>

View File

@@ -1,5 +1,9 @@
---
description: Administration
labels:
products:
- enterprise
- oss
title: Administration
weight: 40
---

View File

@@ -6,6 +6,10 @@ description: This section contains information about API keys in Grafana
keywords:
- API keys
- Service accounts
labels:
products:
- enterprise
- oss
menuTitle: API keys
title: API keys
weight: 700
@@ -131,7 +135,7 @@ Complete the following steps to migrate from API keys to service accounts for AP
This action generates a service account token.
1. Store the ID and secret that the system returns to you.
1. Pass the token in the `Authrorization` header, prefixed with `Bearer`.
1. Pass the token in the `Authorization` header, prefixed with `Bearer`.
This action authenticates API requests.

View File

@@ -0,0 +1,15 @@
---
description: Describes how to back up a locally provisioned Grafana instance.
keywords:
- grafana
- backup
labels:
products:
- enterprise
- oss
title: Back up Grafana
weight: 80
menuTitle: Back up Grafana
---
{{< docs/shared lookup="back-up/back-up-grafana.md" source="grafana" version="<GRAFANA VERSION>" >}}

View File

@@ -1,34 +1,43 @@
---
title: Correlations
weight: 900
keywords:
- correlations
- Explore
labels:
products:
- enterprise
- oss
title: Correlations
weight: 900
---
# Correlations
You can create interactive links for Explore visualizations to run queries related to presented data by setting up Correlations.
A correlation defines how data in one [data source]({{< relref "/docs/grafana/latest/datasources/" >}}) is used to query data in another data source. Some examples:
A correlation defines how data in one [data source]({{< relref "../../datasources" >}}) is used to query data in another data source.
Some examples:
- an application name returned in a logs data source can be used to query metrics related to that application in a metrics data source, or
- a user name returned by an SQL data source can be used to query logs related to that particular user in a logs data source
[Explore]({{< relref "/docs/grafana/latest/explore/" >}}) takes user-defined correlations to display links inside the visualizations. You can click on a link to run the related query and see results in [Explore Split View]({{< relref "/docs/grafana/latest/explore/#split-and-compare" >}}).
[Explore]({{< relref "../../explore" >}}) takes user-defined correlations to display links inside the visualizations.
You can click on a link to run the related query and see results in [Explore Split View]({{< relref "../../explore#split-and-compare" >}}).
Explore visualizations that currently support showing links based on correlations:
- [Logs Panel]({{< relref "./use-correlations-in-visualizations#correlations-in-logs-panel">}})
- [Table]({{< relref "./use-correlations-in-visualizations#correlations-in-table">}})
You can configure correlations using [Administration > Correlation page]({{< relref "/docs/grafana/latest/administration/" >}}) or with [provisioning]({{< relref "/docs/grafana/latest/administration/provisioning" >}}).
You can configure correlations using the **Administration > Correlation** page in Grafana or with [provisioning]({{< relref "../provisioning" >}}).
> **Note:** Correlations are available in Grafana 10.0+ as an opt-in beta feature. Modify Grafana [configuration file]({{< relref "/docs/grafana/latest/setup-grafana/configure-grafana/#configuration-file-location" >}}) to enable the `correlations` [feature toggle]({{< relref "/docs/grafana/latest/setup-grafana/configure-grafana/#feature_toggles" >}}) to use it.
{{% admonition type="note" %}}
Correlations are available in Grafana 10.0+ as an opt-in beta feature.
Modify the Grafana [configuration file]({{< relref "../../setup-grafana/configure-grafana#configuration-file-location" >}}) to enable the `correlations` [feature toggle]({{< relref "../../setup-grafana/configure-grafana#feature_toggles" >}}) to use it.
{{% /admonition %}}
## Example of how links work in Explore once set up
{{< figure src="/static/img/docs/correlations/correlations-in-explore-10-0.gif" caption="Correlations links in Explore" >}}
{{< figure src="/static/img/docs/correlations/correlations-in-explore-10-0.gif" alt="Demonstration of following a correlation link in Grafana Explore" caption="Correlations links in Explore" >}}
See also:

View File

@@ -1,6 +1,10 @@
---
title: Add permissions to create new correlations
labels:
products:
- enterprise
- oss
menuTitle: Add permissions
title: Add permissions to create new correlations
weight: 30
---
@@ -8,7 +12,7 @@ weight: 30
## Before you begin
Adding access to create correlations for [Viewers and Editors]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/" >}}) is available with [Role-based access control]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/access-control/" >}}).
Adding access to create correlations for [Viewers and Editors]({{< relref "../../../administration/roles-and-permissions" >}}) is available with [Role-based access control]({{< relref "../../../administration/roles-and-permissions/access-control" >}}).
## Add permissions to create correlations

View File

@@ -1,4 +1,8 @@
---
labels:
products:
- enterprise
- oss
title: Correlation
weight: 10
---
@@ -29,7 +33,9 @@ Learn how to create correlations using the [Administration page]({{< relref "./c
## Source data source and result field
Links are shown in Explore visualizations for the results from the correlations source data source. A link is assigned to one of the fields from the result provided in the correlation configuration (the results field). Each visualization displays fields with links in a different way ([Correlations in Logs Panel]({{< relref "./use-correlations-in-visualizations#correlations-in-logs-panel">}}) and see [Correlations in Table]({{< relref "./use-correlations-in-visualizations#correlations-in-table">}}))
Links are shown in Explore visualizations for the results from the correlations source data source.
A link is assigned to one of the fields from the result provided in the correlation configuration (the results field).
Each visualization displays fields with links in a different way ([Correlations in Logs Panel]({{< relref "./use-correlations-in-visualizations#correlations-in-logs-panel">}}) and see [Correlations in Table]({{< relref "./use-correlations-in-visualizations#correlations-in-table">}})).
## Target query
@@ -37,9 +43,11 @@ The target query is run when a link is clicked in the visualization. You can use
### Correlation Variables
You can use variables inside the target query to access the source data related to the query. Correlations use [Grafana variable syntax]({{< relref "/docs/grafana/latest/dashboards/variables/variable-syntax" >}}). Variables are filled with values from the source results when the link is clicked. There are two types of variables you can use:
You can use variables inside the target query to access the source data related to the query.
Correlations use [Grafana variable syntax]({{< relref "../../../dashboards/variables/variable-syntax" >}}).
Variables are filled with values from the source results when the link is clicked. There are two types of variables you can use:
- [field variables]({{< relref "/docs/grafana/latest/panels-visualizations/configure-data-links#field-variables" >}}) (allows to access field values and labels)
- [field variables]({{< relref "../../../panels-visualizations/configure-data-links#field-variables" >}}) (allows to access field values and labels)
- correlation variables (allows to access field values and transformations)
Example: If source results contain a field called “employee”, the value of the field can be accessed with:

View File

@@ -1,15 +1,19 @@
---
labels:
products:
- enterprise
- oss
title: Permissions
weight: 20
---
# Permissions
Users with [Viewer base role]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/" >}}) or with [datasources:query RBAC role]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/access-control/" >}}) can:
Users with [Viewer base role]({{< relref "../../../administration/roles-and-permissions" >}}) or with [datasources:query RBAC role]({{< relref "../../../administration/roles-and-permissions/access-control" >}}) can:
- Use correlations in Explores visualizations
- List all available correlations in read-only mode
- Use correlations in Explores visualizations.
- List all available correlations in read-only mode.
Users with [Admin base role]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/" >}}) or with [datasources:write RBAC role]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/access-control/" >}}) can:
Users with [Admin base role]({{< relref "../../../administration/roles-and-permissions" >}}) or with [datasources:write RBAC role]({{< relref "../../../administration/roles-and-permissions/access-control" >}}) can:
- Add, edit and delete correlations
- Add, edit and delete correlations.

View File

@@ -1,4 +1,8 @@
---
labels:
products:
- enterprise
- oss
title: Create a new correlation
weight: 40
---
@@ -76,7 +80,7 @@ Description of provisioning properties:
: Correlation type. “query” is the only supported type at the moment
**config.target**
: [Target query model]({{< relref "#determine-target-query-model-structure" >}})
: [Target query model](#determine-target-query-model-structure)
**config.field**
: Name of the field where link is shown

View File

@@ -1,4 +1,8 @@
---
labels:
products:
- enterprise
- oss
title: Use correlations in visualizations
weight: 70
---
@@ -23,7 +27,7 @@ weight: 70
1. Open Explore.
1. Select a data source that you chose as the source data source of the correlation.
1. Run a query that results in data containing fields required to build variables in the target query.
1. Links are added to cell rows in the column representing the field with the assigned link ([the results field]({{< relref "/docs/grafana/latest/administration/correlations/correlation-configuration#source-data-source-and-result-field" >}}).
1. Links are added to cell rows in the column representing the field with the assigned link ([the results field]({{< relref "../correlation-configuration#source-data-source-and-result-field" >}}).
1. Cells containing multiple links accessible with a context menu.
{{< figure src="/static/img/docs/correlations/correlations-in-table-10-0.png" max-width="600px" caption="Correlations links in table" >}}

View File

@@ -1,4 +1,8 @@
---
labels:
products:
- enterprise
- oss
title: Use variables and transformations in a correlation
weight: 60
---
@@ -69,7 +73,7 @@ Instructions below show how to set up a link that can run metrics query for the
- Required correlation type (query)
- Target query matching test data source model
- “App metrics” correlation contains the following configuration:
- Alias is set to ${application} variable (note that in provisioning files $ is used to access environment variables so it has to be [escaped]({{< relref "/docs/grafana/latest/administration/provisioning#using-environment-variables" >}})).
- Alias is set to ${application} variable (note that in provisioning files $ is used to access environment variables so it has to be [escaped]({{< relref "../../../administration/provisioning#using-environment-variables" >}})).
- Regular expression transformation is created to extract values from “msg” field
- Regular expression transformation is used to capture the application name from the full name of the service stored in the log line.
- The output of the transformation is mapped to a variable called “application”.

View File

@@ -7,6 +7,10 @@ aliases:
- ../features/datasources/add-a-data-source/
- ../permissions/datasource_permissions/
description: Data source management information for Grafana administrators
labels:
products:
- enterprise
- oss
title: Data source management
weight: 100
---
@@ -32,14 +36,14 @@ Only users with the organization admin role can add data sources.
1. Click the data source you want to add.
1. Configure the data source following instructions specific to that data source.
For links to data source-specific documentation, see [Data sources]({{< relref "../../datasources" >}}).
For links to data source-specific documentation, see [Data sources]({{< relref "../../datasources" >}}).
## Data source permissions
You can configure data source permissions to allow or deny certain users the ability to query or edit a data source. Each data sources configuration includes a Permissions tab where you can restrict data source permissions to specific users, teams, or roles.
{{% admonition type="note" %}}
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) and [Grafana Cloud Pro and Advanced](/docs/grafana-cloud).
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) and [Grafana Cloud](/docs/grafana-cloud).
{{% /admonition %}}
By default, data sources in an organization can be queried by any user in that organization. For example, a user with the `Viewer` role can issue any possible query to a data source, not just queries that exist on dashboards to which they have access. Additionally, by default, data sources can be edited by the user who created the data source, as well as users with the `Admin` role.
@@ -81,29 +85,33 @@ You can assign data source permissions to users, teams, and roles which will all
<div class="clearfix"></div>
## Query caching
## Query and resource caching
When query caching is enabled, Grafana temporarily stores the results of data source queries. When you or another user submit the exact same query again, the results will come back from the cache instead of from the data source (like Splunk or ServiceNow) itself.
When you enable query and resource caching, Grafana temporarily stores the results of data source queries and resource requests. When you or another user submit the same query or resource request again, the results will come back from the cache instead of from the data source.
Query caching works for all backend data sources. You can enable the cache globally and configure the cache duration (also called Time to Live, or TTL).
When using Grafana, a query pertains to a request for data frames to be modified or displayed. A resource relates to any HTTP requests made by a plugin, such as the Amazon Timestream plugin requesting a list of available databases from AWS. For more information on data source queries and resources, please see the developers page on [backend plugins](/developers/plugin-tools/introduction/backend-plugins).
The caching feature works for **all** backend data sources. You can enable the cache globally in Grafana's [configuration]({{< relref "../../setup-grafana/configure-grafana/enterprise-configuration/#caching" >}}), and configure a cache duration (also called Time to Live, or TTL) for each data source individually.
{{% admonition type="note" %}}
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) and [Grafana Cloud Pro and Advanced](/docs/grafana-cloud/).
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) and [Grafana Cloud](/docs/grafana-cloud/).
{{% /admonition %}}
The following cache backends are available: in-memory, Redis, and Memcached.
The following cache backend options are available: in-memory, Redis, and Memcached.
{{% admonition type="note" %}}
Storing cached queries in-memory can increase Grafana's memory footprint. In production environments, a Redis or Memcached backend is highly recommended.
{{% /admonition %}}
When a panel queries a cached data source, the time until this query fetches fresh data is determined by the panel's **interval.** This means that wider panels and dashboards with shorter time ranges fetch new data more frequently than narrower panels and dashboards with longer time ranges.
When a panel queries a data source with cached data, it will either fetch fresh data or use cached data depending on the panel's **interval.** The interval is used to round the query time range to a nearby cached time range, increasing the likelihood of cache hits. Therefore, wider panels and dashboards with shorter time ranges fetch new data more often than narrower panels and dashboards with longer time ranges.
Interval is visible in a panel's [query options]({{< relref "../../panels-visualizations/query-transform-data/" >}}). It is calculated like this: `(max data points) / time range`. Max data points are calculated based on the width of the panel. For example, a full-width panel on a dashboard with a time range of `last 7 days` will retrieve fresh data every 10 minutes. In this example, cached data for this panel will be served for up to 10 minutes before Grafana queries the data source again and returns new data.
A panel's interval is visible in the [query options]({{< relref "../../panels-visualizations/query-transform-data/" >}}). It is calculated as follows: `time range / max data points`. Max data points are calculated based on the width of the panel. For example, a wide panel with `1000 data points` on a dashboard with a time range of `last 7 days` will retrieve fresh data every 10 minutes: `7d / 1000 = 10m`. In this example, cached data for this panel will be served for up to 10 minutes before Grafana needs to query the data source again for new data.
You can make a panel retrieve fresh data more frequently by increasing the **Max data points** setting in the panel's [query options]({{< relref "../../panels-visualizations/query-transform-data/" >}}).
You can configure a panel to retrieve data more often by increasing the **Max data points** setting in the panel's [query options]({{< relref "../../panels-visualizations/query-transform-data/" >}}).
### Query caching benefits
### Caching benefits
By reducing the number of queries and requests sent to data sources, caching can provide the following benefits:
- Faster dashboard load times, especially for popular dashboards.
- Reduced API costs.
@@ -111,21 +119,13 @@ You can make a panel retrieve fresh data more frequently by increasing the **Max
### Data sources that work with query caching
Query caching works for all [Enterprise data sources](/grafana/plugins/?type=datasource&enterprise=1) as well as the following [built-in data sources]({{< relref "../../datasources/" >}}):
Query caching works for Grafana's [built-in data sources]({{< relref "../../datasources/#built-in-core-data-sources" >}}), and [backend data source plugins](https://grafana.com/grafana/plugins/?type=datasource) that extend the `DataSourceWithBackend` class in the plugins SDK.
- CloudWatch Metrics
- Google Cloud Monitoring
- InfluxDB
- Microsoft SQL Server
- MySQL
- Postgres
- Tempo
To verify that a data source works with query caching, follow the [instructions below](#enable-and-configure-query-caching) to **Enable and Configure query caching**. If caching is enabled in Grafana but the Caching tab is not visible for the given data source, then query caching is not available for that data source.
Some data sources, such as Elasticsearch, Prometheus, and Loki, cache queries themselves, so Grafana query caching does not improve performance.
Query caching also works for all data sources that include a backend. More specifically, caching works with data sources that extend the `DataSourceWithBackend` class in the plugins SDK.
To tell if a data source works with query caching, follow the instructions below to **Enable and Configure query caching**. If caching is enabled in Grafana but the Caching tab is not visible for the given data source, then query caching is not available for that data source.
{{% admonition type="note" %}}
Some data sources, such as Elasticsearch, Prometheus, and Loki, cache queries themselves, so Grafana _query_ caching does not significantly improve performance. However, _resource_ caching may help. See the developers page on [plugin resources](/developers/plugin-tools/introduction/backend-plugins) for details.
{{% /admonition %}}
### Enable and configure query caching
@@ -140,7 +140,7 @@ By default, data source queries are not cached. To enable query caching for a si
1. Click **Enable**.
1. (Optional) Choose custom TTLs for the data source's queries and resources caching. If you skip this step, then Grafana uses the default TTL.
You can optionally override a data source's configured TTL for individual dashboard panels. This can be be useful when you have queries whose results change more or less often than the configured TTL. In the Edit Panel view, select the caching-enabled data source, expand the Query options, and enter your the TTL in milliseconds.
You can optionally override a data source's configured TTL for individual dashboard panels. This can be useful when you have queries whose results change more or less often than the configured TTL. In the Edit Panel view, select the caching-enabled data source, expand the Query options, and enter your the TTL in milliseconds.
{{< figure max-width="500px" src="/media/docs/grafana/per-panel-cache-ttl-9-4.png" caption="Set Cache TTL for a single panel" >}}
@@ -148,7 +148,7 @@ You can optionally override a data source's configured TTL for individual dashbo
If query caching is enabled and the Cache tab is not visible in a data source's settings, then query caching is not available for that data source.
{{% /admonition %}}
To configure global settings for query caching, refer to the [Query caching section of Enterprise Configuration]({{< relref "../../setup-grafana/configure-grafana/enterprise-configuration/#caching" >}}).
To configure global settings for query caching, refer to the `caching` section of [Configure Grafana Enterprise]({{< relref "../../setup-grafana/configure-grafana/enterprise-configuration/#caching" >}}).
### Disable query caching
@@ -159,7 +159,7 @@ To disable query caching for a single data source:
1. In the data source list, click the data source that you want to turn off caching for.
1. On the Cache tab, click **Disable**.
To disable query caching for an entire Grafana instance, set the `enabled` flag to `false` in the [Query caching section of Enterprise Configuration]({{< relref "../../setup-grafana/configure-grafana/enterprise-configuration/#caching" >}}). You will no longer see the Cache tab on any data sources, and no data source queries will be cached.
To disable query caching for an entire Grafana instance, set the `enabled` flag to `false` in the `caching` section of [Configure Grafana Enterprise]({{< relref "../../setup-grafana/configure-grafana/enterprise-configuration/#caching" >}}). You will no longer see the Cache tab on any data sources, and no data source queries will be cached.
### Clear cache
@@ -195,4 +195,4 @@ For more documentation on a specific data source plugin's features, including it
### Create a data source plugin
To build your own data source plugin, refer to the ["Build a data source plugin"](/tutorials/build-a-data-source-plugin/) tutorial and our documentation about [building a plugin](/developers/plugins/).
To build your own data source plugin, refer to the ["Build a data source plugin"](/developers/plugin-tools/tutorials/build-a-data-source-plugin) tutorial and our documentation about [building a plugin](/developers/plugin-tools).

View File

@@ -13,6 +13,10 @@ keywords:
- grafana
- licensing
- enterprise
labels:
products:
- enterprise
- oss
title: Grafana Enterprise license
weight: 500
---

View File

@@ -11,6 +11,10 @@ keywords:
- marketplace
- enterprise
- license
labels:
products:
- enterprise
- oss
title: Activate a Grafana Enterprise license purchased through AWS Marketplace
weight: 400
---

View File

@@ -10,6 +10,10 @@ keywords:
- aws
- marketplace
- activate
labels:
products:
- enterprise
- oss
title: Activate a Grafana Enterprise license from AWS Marketplace on ECS
weight: 250
---

View File

@@ -10,6 +10,10 @@ keywords:
- marketplace
- eks
- activate
labels:
products:
- enterprise
- oss
title: Activate a Grafana Enterprise license from AWS Marketplace on EKS
weight: 200
---

View File

@@ -10,6 +10,10 @@ keywords:
- aws
- marketplace
- activate
labels:
products:
- enterprise
- oss
title: Activate a Grafana Enterprise license from AWS on an instance deployed outside
of AWS
weight: 300

View File

@@ -12,6 +12,10 @@ keywords:
- add
- remove
- users
labels:
products:
- enterprise
- oss
title: Manage your Grafana Enterprise license in AWS Marketplace
weight: 400
---

View File

@@ -10,6 +10,10 @@ keywords:
- marketplace
- transfer
- move
labels:
products:
- enterprise
- oss
title: Transfer your AWS Marketplace Grafana Enterprise license
weight: 400
---

View File

@@ -8,6 +8,10 @@ description: Describes how to use organizations to isolate dashboard to users an
keywords:
- organizations
- dashboards
labels:
products:
- enterprise
- oss
menuTitle: Manage organizations
title: Manage organizations
weight: 200

View File

@@ -6,6 +6,10 @@ aliases:
- preferences/change-grafana-theme/
- preferences/change-grafana-timezone/
- preferences/change-home-dashboard/
labels:
products:
- enterprise
- oss
title: Organization preferences
weight: 500
---

View File

@@ -5,6 +5,10 @@ aliases:
- ../plugins/installation/
- ../plugins/plugin-signature-verification/
- ../plugins/plugin-signatures/
labels:
products:
- enterprise
- oss
title: Plugin management
weight: 600
---
@@ -13,13 +17,13 @@ weight: 600
Besides the wide range of visualizations and data sources that are available immediately after you install Grafana, you can extend your Grafana experience with _plugins_.
You can [install]({{< relref "#install-a-plugin" >}}) one of the plugins built by the Grafana community, or [build one yourself]({{< relref "../../developers/plugins/" >}}).
You can [install](#install-a-plugin) one of the plugins built by the Grafana community, or [build one yourself](/developers/plugin-tools).
Grafana supports three types of plugins: [panels](/grafana/plugins?type=panel), [data sources](/plugins?type=datasource), and [apps](/grafana/plugins?type=app).
## Panel plugins
Add new visualizations to your dashboard with panel plugins, such as the [Worldmap Panel](/grafana/plugins/grafana-worldmap-panel), [Clock](/grafana/plugins/grafana-clock-panel), and [Pie Chart](/grafana/plugins/grafana-piechart-panel).
Add new visualizations to your dashboard with panel plugins, such as the [Clock](/grafana/plugins/grafana-clock-panel), [Mosaic](/grafana/plugins/boazreicher-mosaicplot-panel) and [Variable](/grafana/plugins/volkovlabs-variable-panel) panels.
Use panel plugins when you want to:
@@ -96,6 +100,7 @@ To browse for available plugins:
To install a plugin:
1. In Grafana, click **Administration > Plugins** in the side navigation menu to view installed plugins.
1. Click the **All** filter to browse all available plugins.
1. Browse and find a plugin.
1. Click on the plugin logo.
1. Click **Install**.
@@ -167,7 +172,7 @@ Grafana also writes an error message to the server log:
WARN[05-26|12:00:00] Some plugin scanning errors were found errors="plugin '<plugin id>' is unsigned, plugin '<plugin id>' has an invalid signature"
```
If you are a plugin developer and want to know how to sign your plugin, refer to [Sign a plugin]({{< relref "../../developers/plugins/sign-a-plugin/" >}}).
If you are a plugin developer and want to know how to sign your plugin, refer to [Sign a plugin](/developers/plugin-tools/publish-a-plugin/sign-a-plugin).
| Signature status | Description |
| ------------------ | ------------------------------------------------------------------------------- |

View File

@@ -5,6 +5,10 @@ description: Describes provisioning settings for Grafana using configuration fil
keywords:
- grafana
- provisioning
labels:
products:
- enterprise
- oss
title: Provision Grafana
weight: 600
---
@@ -58,7 +62,7 @@ Currently we do not provide any scripts/manifests for configuring Grafana. Rathe
| Tool | Project |
| --------- | -------------------------------------------------------------------------------------------------------------- |
| Puppet | [https://forge.puppet.com/puppet/grafana](https://forge.puppet.com/puppet/grafana) |
| Ansible | [https://github.com/cloudalchemy/ansible-grafana](https://github.com/cloudalchemy/ansible-grafana) |
| Ansible | [https://github.com/grafana/grafana-ansible-collection](https://github.com/grafana/grafana-ansible-collection) |
| Chef | [https://github.com/sous-chefs/chef-grafana](https://github.com/sous-chefs/chef-grafana) |
| Saltstack | [https://github.com/salt-formulas/salt-formula-grafana](https://github.com/salt-formulas/salt-formula-grafana) |
| Jsonnet | [https://github.com/grafana/grafonnet-lib/](https://github.com/grafana/grafonnet-lib/) |
@@ -366,8 +370,8 @@ By default, Grafana deletes dashboards in the database if the file is removed. Y
{{% admonition type="note" %}}
Provisioning allows you to overwrite existing dashboards
which leads to problems if you re-use settings that are supposed to be unique.
Be careful not to re-use the same `title` multiple times within a folder
which leads to problems if you reuse settings that are supposed to be unique.
Be careful not to reuse the same `title` multiple times within a folder
or `uid` within the same installation as this will cause weird behaviors.
{{% /admonition %}}

View File

@@ -7,6 +7,10 @@ keywords:
- query
- queries
- recorded
labels:
products:
- cloud
- enterprise
title: Recorded queries
weight: 300
---

View File

@@ -6,6 +6,10 @@ aliases:
- ../permissions/overview/
- manage-users-and-permissions/about-users-and-permissions/
description: Information about Grafana user, team, and organization roles and permissions
labels:
products:
- enterprise
- oss
title: Roles and permissions
weight: 300
---

View File

@@ -6,6 +6,10 @@ aliases:
description: Role-based access control (RBAC) provides a standardized way of granting,
changing, and revoking access so that users can view and modify Grafana resources,
such as users and reports.
labels:
products:
- cloud
- enterprise
menuTitle: Role-based access control (RBAC)
title: Grafana Role-based access control (RBAC)
weight: 120

View File

@@ -4,6 +4,10 @@ aliases:
- ../../../enterprise/access-control/manage-role-assignments/manage-built-in-role-assignments/
- ../../../enterprise/access-control/manage-role-assignments/manage-user-role-assignments/
description: Learn how to assign RBAC roles to users and teams in Grafana.
labels:
products:
- cloud
- enterprise
menuTitle: Assign RBAC roles
title: Assign Grafana RBAC roles
weight: 40

View File

@@ -2,6 +2,10 @@
aliases:
- ../../../enterprise/access-control/configure-rbac/
description: Learn how to configure RBAC.
labels:
products:
- cloud
- enterprise
menuTitle: Configure RBAC
title: Configure RBAC in Grafana
weight: 30

View File

@@ -3,6 +3,10 @@ aliases:
- ../../../enterprise/access-control/custom-role-actions-scopes/
- ../../../enterprise/access-control/permissions/
description: Learn about Grafana RBAC permissions, actions, and scopes.
labels:
products:
- cloud
- enterprise
menuTitle: RBAC permissions, actions, and scopes
title: Grafana RBAC permissions, actions, and scopes
weight: 80

View File

@@ -5,6 +5,10 @@ aliases:
- ../../../enterprise/access-control/provisioning/
description: Learn how to view permissions associated with roles, create custom roles,
and update and delete roles in Grafana.
labels:
products:
- cloud
- enterprise
menuTitle: Manage RBAC roles
title: Manage Grafana RBAC roles
weight: 50

View File

@@ -4,6 +4,10 @@ aliases:
- ../../../enterprise/access-control/usage-scenarios/
description: Plan your RBAC rollout strategy before you begin assigning roles to users
and teams.
labels:
products:
- cloud
- enterprise
menuTitle: Plan your RBAC rollout strategy
title: Plan your Grafana RBAC rollout strategy
weight: 20

View File

@@ -4,6 +4,10 @@ aliases:
- ../../../enterprise/access-control/rbac-fixed-basic-role-definitions/
description: This topic includes a table that lists permission associated with Grafana
fixed and basic roles.
labels:
products:
- cloud
- enterprise
menuTitle: RBAC role definitions
title: Grafana RBAC role definitions
weight: 70
@@ -97,7 +101,7 @@ The following tables list permissions associated with basic and fixed roles.
### Alerting roles
If alerting is [enabled]({{< relref "../../../../alerting/set-up/migrating-alerts/opt-out/" >}}), you can use predefined roles to manage user access to alert rules, alert instances, and alert notification settings and create custom roles to limit user access to alert rules in a folder.
If alerting is [enabled]({{< relref "../../../../alerting/set-up/migrating-alerts" >}}), you can use predefined roles to manage user access to alert rules, alert instances, and alert notification settings and create custom roles to limit user access to alert rules in a folder.
Access to Grafana alert rules is an intersection of many permissions:

View File

@@ -4,6 +4,10 @@ aliases:
- rbac-provisioning/
description: Learn about RBAC Grafana provisioning and view an example YAML provisioning
file that configures Grafana role assignments.
labels:
products:
- cloud
- enterprise
menuTitle: Provisioning RBAC with Grafana
title: Provisioning RBAC with Grafana
weight: 60

View File

@@ -3,6 +3,10 @@ aliases:
- ../../../enterprise/access-control/rbac-provisioning/rbac-terraform-provisioning/
description: Learn about RBAC Terraform provisioning and view an example of provisioning
configuration for Grafana roles and role assignments.
labels:
products:
- cloud
- enterprise
menuTitle: Provisioning RBAC with Terraform
title: Provisioning RBAC with Terraform
weight: 60

View File

@@ -1,12 +1,11 @@
---
aliases:
- ../../../enterprise/access-control/troubleshooting/
description: RBAC troubleshooting guide.
labels:
products:
- cloud
- enterprise
- oss
description: RBAC troubleshooting guide.
menuTitle: Troubleshooting RBAC
title: Troubleshooting RBAC
weight: 80
@@ -28,7 +27,7 @@ filters = accesscontrol:debug accesscontrol.evaluator:debug dashboard.permission
## Enable audit logging
{{% admonition type="note" %}}
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) version 7.3 and later, and [Grafana Cloud](/docs/grafana-cloud).
Available in [Grafana Enterprise]({{< relref "../../../../introduction/grafana-enterprise/" >}}) version 7.3 and later, and [Grafana Cloud](/docs/grafana-cloud).
{{% /admonition %}}
You can enable auditing in the Grafana configuration file.

View File

@@ -8,6 +8,10 @@ description: This page contains information about service accounts in Grafana
keywords:
- API keys
- Service accounts
labels:
products:
- enterprise
- oss
menuTitle: Service accounts
title: Service accounts
weight: 800

View File

@@ -11,6 +11,10 @@ keywords:
- configuration
- server
- settings
labels:
products:
- cloud
- enterprise
title: View server statistics and license
weight: 400
---

View File

@@ -4,6 +4,10 @@ aliases:
- ../manage-users/create-or-remove-team/
- ../manage-users/manage-teams/
- manage-users-and-permissions/manage-teams/
labels:
products:
- enterprise
- oss
title: Team management
weight: 400
---

View File

@@ -1,6 +1,10 @@
---
aliases:
- manage-users-and-permissions/
labels:
products:
- enterprise
- oss
title: User management
weight: 200
---

View File

@@ -2,6 +2,10 @@
aliases:
- ../../permissions/dashboard_folder_permissions/
- ../manage-users-and-permissions/manage-dashboard-permissions/
labels:
products:
- enterprise
- oss
title: Manage dashboard permissions
weight: 500
---

View File

@@ -7,6 +7,10 @@ aliases:
- ../manage-users-and-permissions/manage-org-users/manage-pending-invites/
- ../manage-users-and-permissions/manage-org-users/remove-user-from-org/
- ../manage-users-and-permissions/manage-org-users/view-list-org-users/
labels:
products:
- enterprise
- oss
title: Manage users in an organization
weight: 400
---

View File

@@ -8,6 +8,10 @@ aliases:
- ../manage-users-and-permissions/manage-server-users/view-edit-user-account/
- ../manage-users-and-permissions/manage-server-users/view-list-users/
- ../manage-users-and-permissions/manage-server-users/view-user-account-details/
labels:
products:
- enterprise
- oss
title: Server user management
weight: 100
---

View File

@@ -4,6 +4,10 @@ aliases:
- ../../manage-users-and-permissions/manage-server-users/add-user-to-org/
description: Describes how a Grafana server administrator can add or remove users
in an organization
labels:
products:
- enterprise
- oss
title: Add or remove a user in an organization
weight: 30
---

View File

@@ -3,6 +3,10 @@ aliases:
- ../../manage-users-and-permissions/manage-server-users/assign-remove-server-admin-privileges/
description: Describes how to assign and remove Grafana administrator privileges from
a server user.
labels:
products:
- enterprise
- oss
title: Assign or remove Grafana server administrator privileges
weight: 20
---

View File

@@ -1,6 +1,10 @@
---
aliases:
- ../../manage-users-and-permissions/manage-server-users/change-user-org-permissions/
labels:
products:
- enterprise
- oss
title: Change a user's organization permissions
weight: 50
---

View File

@@ -1,6 +1,10 @@
---
aliases:
- ../../manage-users-and-permissions/manage-server-users/grant-editor-admin-permissions/
labels:
products:
- enterprise
- oss
title: Grant editors administrator permissions
weight: 60
---

View File

@@ -8,6 +8,10 @@ keywords:
- change
- organization
- change
labels:
products:
- enterprise
- oss
title: Manage user preferences
weight: 400
---

View File

@@ -1,8 +1,15 @@
---
aliases:
- about-alerting/
- unified-alerting/alerting/
- ./unified-alerting/alerting/
- ./alerting/unified-alerting/
canonical: https://grafana.com/docs/grafana/latest/alerting/
description: Intro to key benefits and features of Grafana Alerting
labels:
products:
- cloud
- enterprise
- oss
title: Alerting
weight: 114
---

View File

@@ -1,10 +1,17 @@
---
menuTitle: Configure
aliases:
- old-alerting/create-alerts/
- rules/
- unified-alerting/alerting-rules/
- ./create-alerts/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/
description: Configure alerting
labels:
products:
- cloud
- enterprise
- oss
menuTitle: Configure
title: Configure Alerting
weight: 130
---

View File

@@ -1,6 +1,7 @@
---
aliases:
- ../unified-alerting/alerting-rules/create-grafana-managed-rule/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-grafana-managed-rule/
description: Create Grafana managed alert rule
keywords:
- grafana
@@ -8,6 +9,11 @@ keywords:
- guide
- rules
- create
labels:
products:
- cloud
- enterprise
- oss
title: Create Grafana-managed alert rules
weight: 400
---

View File

@@ -2,6 +2,7 @@
aliases:
- ../unified-alerting/alerting-rules/create-cortex-loki-managed-recording-rule/
- ../unified-alerting/alerting-rules/create-mimir-loki-managed-recording-rule/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-mimir-loki-managed-recording-rule/
description: Create Grafana Mimir or Loki managed recording rule
keywords:
- grafana
@@ -10,6 +11,11 @@ keywords:
- rules
- recording rules
- create
labels:
products:
- cloud
- enterprise
- oss
title: Create Grafana Mimir or Loki managed recording rules
weight: 400
---

View File

@@ -3,6 +3,7 @@ aliases:
- ../unified-alerting/alerting-rules/create-cortex-loki-managed-recording-rule/
- ../unified-alerting/alerting-rules/create-mimir-loki-managed-recording-rule/
- ../unified-alerting/alerting-rules/create-mimir-loki-managed-rule/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-mimir-loki-managed-rule/
description: Create Grafana Mimir or Loki managed alerting rule
keywords:
- grafana
@@ -10,6 +11,11 @@ keywords:
- guide
- rules
- create
labels:
products:
- cloud
- enterprise
- oss
title: Create Grafana Mimir or Loki managed alert rules
weight: 400
---

View File

@@ -3,6 +3,7 @@ aliases:
- ../notifications/
- ../old-alerting/notifications/
- ../unified-alerting/notifications/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-notification-policy/
description: Notification policies
keywords:
- grafana
@@ -10,6 +11,11 @@ keywords:
- guide
- notification policies
- routes
labels:
products:
- cloud
- enterprise
- oss
title: Configure notification policies
weight: 420
---
@@ -48,10 +54,12 @@ Before Grafana v8.2, the configuration of the embedded Alertmanager was shared a
## Add new nested policy
To create a new notification policy, you need to follow its tree structure. New policies created on the trunk of the tree (default policy), are the tree branches. And, subsequently, each branch can bear their own child policies. This is why you will always be adding a new **nested** policy under either the default policy, or under a already nested policy.
1. In the left-side menu, click **Alerts & IRM** and then **Alerting**.
1. Click **Notification policies**.
1. From the **Choose Alertmanager** dropdown, select an Alertmanager. By default, the **Grafana Alertmanager** is selected.
1. To add a top level specific policy, go to the Specific routing section and click **+New specific policy**.
1. To add a top level specific policy, go to the Specific routing section (either to the default policy, or to another existing policy in which you would like to add a new nested policy) and click **+New nested policy**.
1. In the Matching labels section, add one or more rules for matching alert labels.
1. In the **Contact point** dropdown, select the contact point to send notification to if alert matches only this specific policy and not any of the nested policies.
1. Optionally, enable **Continue matching subsequent sibling nodes** to continue matching sibling policies even after the alert matched the current policy. When this option is enabled, you can get more than one notification for one alert.

View File

@@ -2,6 +2,7 @@
aliases:
- ../unified-alerting/alerting-rules/edit-cortex-loki-namespace-group/
- ../unified-alerting/alerting-rules/edit-mimir-loki-namespace-group/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/edit-mimir-loki-namespace-group/
description: Edit Grafana Mimir or Loki rule groups and namespaces
keywords:
- grafana
@@ -11,6 +12,11 @@ keywords:
- namespace
- grafana mimir
- loki
labels:
products:
- cloud
- enterprise
- oss
title: Grafana Mimir or Loki rule groups and namespaces
weight: 405
---

View File

@@ -1,11 +1,13 @@
---
aliases:
- ../../contact-points/create-contact-point/
- ../../contact-points/delete-contact-point/
- ../../contact-points/edit-contact-point/
- ../../contact-points/test-contact-point/
- ../create-contact-point/
- alerting/manage-notifications/manage-contact-points/
- ../contact-points/ # /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/
- ../contact-points/create-contact-point/ # /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/create-contact-point/
- ../contact-points/delete-contact-point/ # /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/delete-contact-point/
- ../contact-points/edit-contact-point/ # /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/edit-contact-point/
- ../contact-points/test-contact-point/ # /docs/grafana/<GRAFANA_VERSION>/alerting/contact-points/test-contact-point/
- ../manage-notifications/manage-contact-points/ # /docs/grafana/<GRAFANA_VERSION>/alerting/manage-notifications/manage-contact-points/
- create-contact-point/ # /docs/grafana/<GRAFANA_VERSION>/alerting/alerting-rules/create-contact-point/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/manage-contact-points/
description: How to manage your contact points
keywords:
- grafana
@@ -13,6 +15,11 @@ keywords:
- guide
- contact point
- templating
labels:
products:
- cloud
- enterprise
- oss
title: Configure contact points
weight: 410
---

View File

@@ -1,6 +1,7 @@
---
aliases:
- alerting/manage-notifications/manage-contact-points/configure-integrations/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/manage-contact-points/configure-integrations/
description: Configure integrations
keywords:
- Grafana
@@ -9,6 +10,11 @@ keywords:
- notifications
- integrations
- contact points
labels:
products:
- cloud
- enterprise
- oss
title: Configure integrations
weight: 100
---

View File

@@ -3,6 +3,7 @@ aliases:
- ../contact-points/notifiers/webhook-notifier/
- ../fundamentals/contact-points/webhook-notifier/
- alerting/manage-notifications/manage-contact-points/webhook-notifier/
canonical: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/manage-contact-points/webhook-notifier/
description: Configure the webhook notifier for notifications
keywords:
- grafana
@@ -10,6 +11,11 @@ keywords:
- guide
- contact point
- templating
labels:
products:
- cloud
- enterprise
- oss
title: Configure the webhook notifier
weight: 200
---

View File

@@ -1,19 +1,26 @@
---
_build:
list: false
aliases:
- unified-alerting/difference-old-new/
description: What's New with Grafana alerts
draft: true
canonical: https://grafana.com/docs/grafana/latest/alerting/difference-old-new/
description: Compare new unified alerting compared to legacy dashboard alerting
keywords:
- grafana
- alerting
- guide
title: What's new in Grafana Alerting
labels:
products:
- cloud
- enterprise
- oss
title: Grafana Alerting vs Legacy dashboard alerting
weight: 108
---
# What's new in Grafana Alerting
# Grafana Alerting vs Legacy dashboard alerting
Grafana Alerting has several enhancements over legacy dashboard alerting.
Introduced in Grafana 8.0, and the only system since Grafana 10.0, Grafana Alerting has several enhancements over legacy dashboard alerting.
## Multi-dimensional alerting

View File

@@ -1,9 +1,15 @@
---
menuTitle: Introduction
aliases:
- metrics/
- unified-alerting/fundamentals/
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/
description: Intro to the key concepts in Alerting and how it works
labels:
products:
- cloud
- enterprise
- oss
menuTitle: Introduction
title: Introduction to Alerting
weight: 105
---

View File

@@ -1,9 +1,15 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/
description: About Grafana alert rules
keywords:
- grafana
- alerting
- rules
labels:
products:
- cloud
- enterprise
- oss
title: Alert rules
weight: 105
---

View File

@@ -1,9 +1,15 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/alert-instances/
description: Learn about Grafana alert instances
keywords:
- grafana
- alerting
- instances
labels:
products:
- cloud
- enterprise
- oss
title: Alert instances
weight: 104
---

View File

@@ -1,9 +1,15 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/alert-rule-types/
description: Learn about the different alert rule types
keywords:
- grafana
- alerting
- rule types
labels:
products:
- cloud
- enterprise
- oss
title: Alert rule types
weight: 102
---

View File

@@ -3,6 +3,7 @@ aliases:
- ../../contact-points/message-templating/
- ../../message-templating/
- ../../unified-alerting/message-templating/
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/message-templating/
description: Notification templating
keywords:
- grafana
@@ -10,6 +11,11 @@ keywords:
- guide
- contact point
- templating
labels:
products:
- cloud
- enterprise
- oss
title: Notification templating
weight: 415
---
@@ -53,11 +59,11 @@ Alert summary:
You can use any of the following built-in template options to embed custom templates.
| Name | Notes |
| ----------------------- | ------------------------------------------------------------- |
| `default.title` | Displays high-level status information. |
| `default.message` | Provides a formatted summary of firing and resolved alerts. |
| `teams.default.message` | Similar to `default.messsage`, formatted for Microsoft Teams. |
| Name | Notes |
| ----------------------- | ------------------------------------------------------------ |
| `default.title` | Displays high-level status information. |
| `default.message` | Provides a formatted summary of firing and resolved alerts. |
| `teams.default.message` | Similar to `default.message`, formatted for Microsoft Teams. |
### HTML in notification templates

View File

@@ -1,9 +1,15 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/organising-alerts/
description: Learn how to organize alert rules
keywords:
- grafana
- alerting
- organization
labels:
products:
- cloud
- enterprise
- oss
title: Organising alert rules
weight: 105
---

View File

@@ -1,12 +1,18 @@
---
title: Queries and conditions
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/queries-conditions/
description: Introduction to queries and conditions
weight: 103
keywords:
- grafana
- alerting
- queries
- conditions
labels:
products:
- cloud
- enterprise
- oss
title: Queries and conditions
weight: 103
---
# Queries and conditions
@@ -91,6 +97,27 @@ Checks if any time series data matches the alert condition.
Classic condition expression queries always produce one alert instance only, no matter how many time series meet the condition.
Classic conditions exist mainly for compatibility reasons and should be avoided if possible.
## Aggregations
Grafana Alerting provides the following aggregation functions to enable you to further refine your query.
These functions are available for **Reduce** and **Classic condition** expressions only.
| Function | Expression | What it does |
| ---------------- | ---------------- | ------------------------------------------------------------------------------- |
| avg | Reduce / Classic | Displays the average of the values |
| min | Reduce / Classic | Displays the lowest value |
| max | Reduce / Classic | Displays the highest value |
| sum | Reduce / Classic | Displays the sum of all values |
| count | Reduce / Classic | Counts the number of values in the result |
| last | Reduce / Classic | Displays the last value |
| median | Reduce / Classic | Displays the median value |
| diff | Classic | Displays the difference between the newest and oldest value |
| diff_abs | Classic | Displays the absolute value of diff |
| percent_diff | Classic | Displays the percentage value of the difference between newest and oldest value |
| percent_diff_abs | Classic | Displays the absolute value of percent_diff |
| count_non_null | Classic | Displays a count of values in the result set that aren't `null` |
## Alert condition
An alert condition is the query or expression that determines whether the alert will fire or not depending on the value it yields. There can be only one condition which will determine the triggering of the alert.

View File

@@ -1,11 +1,17 @@
---
title: Alert rule evaluation
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/rule-evaluation/
description: Introduction to alert rule evaluation
weight: 106
keywords:
- grafana
- alerting
- evaluation
labels:
products:
- cloud
- enterprise
- oss
title: Alert rule evaluation
weight: 106
---
# Alert rule evaluation
@@ -16,9 +22,11 @@ To do this, you need to make sure that your alert rule is in the right evaluatio
## Evaluation group
Every alert rule is part of an evaluation group. Each evaluation group contains an evaluation interval that determines how frequently the alert rule is checked. Alert rules within the same group are evaluated one after the other, while alert rules in different groups can be evaluated simultaneously.
Every alert rule is part of an evaluation group. Each evaluation group contains an evaluation interval that determines how frequently the alert rule is checked.
This feature is especially useful for Prometheus/Mimir rules when you want to ensure that recording rules are evaluated before any alert rules.
**Data-source managed** alert rules within the same group are evaluated one after the other, while alert rules in different groups can be evaluated simultaneously. This feature is especially useful when you want to ensure that recording rules are evaluated before any alert rules.
**Grafana-managed** alert rules are evaluated at the same time, regardless of alert rule group. The default evaluation interval is set at 10 seconds, which means that Grafana-managed alert rules are evaluated every 10 seconds to the closest 10-second window on the clock, for example, 10:00:00, 10:00:10, 10:00:20, and so on. You can also configure your own evaluation interval, if required.
**Note:**
@@ -39,7 +47,7 @@ Evaluation will occur as follows:
[00:30] First evaluation - condition not met.
[01:00] Second evaluation - condition breached.
Pending counter starts. **Alert stars pending.**
Pending counter starts. **Alert starts pending.**
[01:30] Third evaluation - condition breached. Pending counter = 30s. **Pending state.**

View File

@@ -1,12 +1,18 @@
---
aliases:
- ../unified-alerting/alerting-rules/state-and-health/
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/state-and-health/
description: State and Health of alerting rules
keywords:
- grafana
- alerting
- guide
- state
labels:
products:
- cloud
- enterprise
- oss
title: State and health of alerting rules
weight: 405
---

View File

@@ -4,7 +4,13 @@ aliases:
- ../metrics/
- ../unified-alerting/fundamentals/alertmanager/
- alerting/manage-notifications/alertmanager/
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alertmanager/
description: Intro to the different Alertmanagers
labels:
products:
- cloud
- enterprise
- oss
title: Alertmanager
weight: 103
---

View File

@@ -2,6 +2,7 @@
aliases:
- ../alerting-rules/alert-annotation-label/
- ../unified-alerting/alerting-rules/alert-annotation-label/
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/
description: Annotations and labels for alerting
keywords:
- grafana
@@ -9,6 +10,11 @@ keywords:
- guide
- rules
- create
labels:
products:
- cloud
- enterprise
- oss
title: Labels and annotations
weight: 110
---

View File

@@ -1,10 +1,16 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/how-to-use-labels/
description: Learn about labels and label matchers in alerting
keywords:
- grafana
- alerting
- guide
- fundamentals
labels:
products:
- cloud
- enterprise
- oss
title: Labels in Grafana Alerting
weight: 117
---

View File

@@ -1,12 +1,18 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/labels-and-label-matchers/
description: Learn about labels and label matchers in alerting
keywords:
- grafana
- alerting
- guide
- fundamentals
title: How label matching works
labels:
products:
- cloud
- enterprise
- oss
menuTitle: Label matchers
title: How label matching works
weight: 117
---
@@ -44,3 +50,15 @@ then:
- A label matcher defined as `id=~[0-9]+` matches this alert rule.
- A label matcher defined as `baz!~[0-9]+` matches this alert rule.
- Two label matchers defined as `foo=bar` and `id=~[0-9]+` match this alert rule.
## Exclude labels
You can also write label matchers to exclude labels.
Here is an example that shows how to exclude the label `Team`. You can choose between any of the values below to exclude labels.
| Label | Operator | Value |
| ------ | -------- | ----- |
| `team` | `=` | `""` |
| `team` | `!~` | `.+` |
| `team` | `=~` | `^$` |

View File

@@ -1,4 +1,5 @@
---
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/annotation-label/variables-label-annotation/
description: Learn about templating of labels and annotations
keywords:
- grafana
@@ -6,6 +7,11 @@ keywords:
- templating
- labels
- annotations
labels:
products:
- cloud
- enterprise
- oss
title: Templating labels and annotations
weight: 117
---
@@ -97,15 +103,35 @@ If you were to print the value of the expression with RefID `B` in the summary o
The summary will contain just the value:
```
api has an over 5% of responses with 5xx errors: 6.789%
api has over 5% of responses with 5xx errors: 6.78912%
```
However, while `{{ $values.B }}` prints the number 6.789, it is actually a string as you are printing the object that contains both the labels and value for RefID B, not the floating point value of B. To use the floating point value of RefID B you must use the `Value` field from `$values.B`. If you were to humanize the floating point value in the summary of an alert:
However, while `{{ $values.B }}` prints the number 6.78912, it is actually a string as you are printing the object that contains both the labels and value for RefID B, not the floating point value of B. To use the floating point value of RefID B you must use the `Value` field from `$values.B`.
If you were to print the humanized floating point value in the summary of an alert:
```
{{ $labels.service }} has over 5% of responses with 5xx errors: {{ humanize $values.B.Value }}%
```
The summary will contain the humanized value:
```
api has over 5% of responses with 5xx errors: 6.789%
```
You can also compare the floating point value using the `eq`, `ne`, `lt`, `le`, `gt` and `ge` comparison operators:
```
{{ if gt $values.B.Value 50.0 -}}
Critical 5xx error rate
{{ else -}}
Elevated 5xx error rate
{{ end }}
```
When using comparison operators with `$values` make sure to compare it to a floating point number such as `50.0` and not an integer such as `50`. Go templates do not support implicit type coercion, and comparing a floating point number to an integer will break your template.
### No data, execution errors and timeouts
If the query in your alert rule returns no data, or fails because of a datasource error or timeout, then any Threshold, Reduce or Math expressions that use that query will also return no data or an error. When this happens these expression will be absent from `$values`. It is good practice to check that a RefID is present before using it as otherwise your template will break should your query return no data or an error. You can do this using an if statement:

Some files were not shown because too many files have changed in this diff Show More