Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13059 Grafana 10.4.2 #745

Merged
merged 139 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
e52118c
[v10.4.x] Logs Panel: Add option extra UI functionality for log conte…
grafana-delivery-bot[bot] Feb 20, 2024
8e9fb37
[v10.4.x] Alerting docs: adds simplified alert routing (#83159)
grafana-delivery-bot[bot] Feb 21, 2024
f6ab4e1
[v10.4.x] Alerting docs: Fix migrating alert links (#83165)
grafana-delivery-bot[bot] Feb 21, 2024
6e7ba7c
[v10.4.x] Alerting docs: fixes oncall broken links (#83167)
grafana-delivery-bot[bot] Feb 21, 2024
2fbc070
[v10.4.x] Snapshots: delete from same org (#83170)
grafana-delivery-bot[bot] Feb 21, 2024
fedf3e2
[v10.4.x] Alerting: Protect possible undefined (#83186)
grafana-delivery-bot[bot] Feb 21, 2024
e3d8fca
[v10.4.x] Docs: add information about filtering for annotations (#83194)
grafana-delivery-bot[bot] Feb 21, 2024
13e7099
[v10.4.x] QueryVariableEditor: Select a variable ds does not work (#8…
grafana-delivery-bot[bot] Feb 21, 2024
272ca9a
[v10.4.x] Alerting: Fix dashboard nav drawers disappearing (#83205)
grafana-delivery-bot[bot] Feb 22, 2024
e229eef
[v10.4.x] Alerting: Fix saving evaluation group. (#83234)
grafana-delivery-bot[bot] Feb 22, 2024
fed9e2f
[v10.4.x] Docs: update import troubleshoot dashboards links (#83245)
grafana-delivery-bot[bot] Feb 22, 2024
a0c2fb1
[v10.4.x] AuthProxy: Invalidate previous cached item for user when ch…
grafana-delivery-bot[bot] Feb 23, 2024
deb12d4
[v10.4.x] DataQuery: Track panel plugin id not type (#83164)
grafana-delivery-bot[bot] Feb 23, 2024
dadc81b
[v10.4.x] remove oss from security config docs (#83326)
grafana-delivery-bot[bot] Feb 23, 2024
58d6e0b
[v10.4.x] Docs: restructure Configure field overrides (#83348)
grafana-delivery-bot[bot] Feb 23, 2024
09663d8
[v10.4.x] Docs/grafana helm (#83429)
grafana-delivery-bot[bot] Feb 26, 2024
8290d41
[v10.4.x] Plugins: Angular deprecation: Fix AngularDeprecationNotice …
grafana-delivery-bot[bot] Feb 27, 2024
ff860eb
[v10.4.x] Annotations: Improve query performance when using dashboard…
grafana-delivery-bot[bot] Feb 27, 2024
ceb30ce
[v10.4.x] Docs: Add missing visualizations to Grafana vizualization i…
grafana-delivery-bot[bot] Feb 27, 2024
01d742f
[v10.4.x] Elasticsearch: Fix adhoc filters not applied in frontend mo…
grafana-delivery-bot[bot] Feb 28, 2024
f30ffd8
[v10.4.x] docs: link annotation queries video to documentation (#83622)
grafana-delivery-bot[bot] Feb 28, 2024
a8ef92b
[v10.4.x] Review "Team LBAC" page (#83627)
eleijonmarck Feb 29, 2024
cc010b6
[v10.4.x] Anonymous: Add docs for anon users charged on enterprise (#…
grafana-delivery-bot[bot] Feb 29, 2024
e74ffd5
[v10.4.x] Tempo: Better fallbacks for metrics query (#83688)
grafana-delivery-bot[bot] Feb 29, 2024
e31e447
[v10.4.x] Tempo: Add template variable interpolation for filters (#83…
grafana-delivery-bot[bot] Feb 29, 2024
14982f1
[v10.4.x] Docs: restructure Configure panel options (#83655)
grafana-delivery-bot[bot] Feb 29, 2024
6263884
[v10.4.x] CI: Bump `alpine` image version (#83723)
aangelisc Feb 29, 2024
676fd4c
[v10.4.x] Fix typos (#83682)
jdbaldry Feb 29, 2024
d308b47
[v10.4.x] Docs: fix config file info in upgrade guide (#83703)
grafana-delivery-bot[bot] Feb 29, 2024
c0da5fd
[v10.4.x] LDAP: Fix LDAP users authenticated via auth proxy not being…
grafana-delivery-bot[bot] Mar 1, 2024
dcec8aa
[v10.4.x] Fix: Cache busting of plugins module.js file (#83791)
grafana-delivery-bot[bot] Mar 1, 2024
1c79d8e
[v10.4.x] Chore: Improve domain validation for Google OAuth - Backpor…
linoman Mar 4, 2024
deec536
[v10.4.x] Alerting docs: update the Terraform Provision guide (#83820)
ppcano Mar 4, 2024
f2333ae
Update whats new url
aangelisc Mar 4, 2024
906490e
[v10.4.x] alerting:clarify silence preview (#83838)
grafana-delivery-bot[bot] Mar 4, 2024
3171158
[v10.4.x] GenAI: Update the component only when the response is fully…
grafana-delivery-bot[bot] Mar 5, 2024
fa8a096
[v10.4.x] [DOC] Add profile-traces intro material; update Pyroscope d…
knylander-grafana Mar 5, 2024
9dcf8e6
[v10.4.x] chore: bump Go to 1.21.8 (#83937)
hairyhenderson Mar 5, 2024
23320f3
[v10.4.x] Docs: What’s new & Upgrade guide 10.4 (#83944)
grafana-delivery-bot[bot] Mar 6, 2024
4d40128
[v10.4.x] Docs: fix commented out Slack team names (#83949)
grafana-delivery-bot[bot] Mar 6, 2024
2c3f958
Backport alerting docs changes to v10.4.x (#83898)
ppcano Mar 6, 2024
90b9cef
[v10.4.x] Alerting docs: update file provisioning guide (#83957)
ppcano Mar 6, 2024
f527195
[v10.4.x] Serviceaccounts: Add ability to add samename SA for differe…
grafana-delivery-bot[bot] Mar 6, 2024
fbd2400
[v10.4.x] Docs: comment youtube videos back in (#83977)
grafana-delivery-bot[bot] Mar 6, 2024
391a240
[v10.4.x] Docs/datasources usman (#83985)
grafana-delivery-bot[bot] Mar 6, 2024
b379816
[v10.4.x] Changelog: Updated changelog for 10.4.0 (#83988)
grafana-delivery-bot[bot] Mar 6, 2024
303a80c
Release: Bump version to 10.4.1 (#83989)
grafana-delivery-bot[bot] Mar 6, 2024
b48e210
[v10.4.x] Configure Grafana docs: fix custom configuration file locat…
grafana-delivery-bot[bot] Mar 6, 2024
b78ecdd
[v10.4.x] Docs: comment in SSO for terraform video (#84013)
grafana-delivery-bot[bot] Mar 6, 2024
ee475ad
[v10.4.x] disable_sanitize_html update (#84022)
grafana-delivery-bot[bot] Mar 6, 2024
5c2b7e5
[v10.4.x] Alerting docs: update the supported export template functio…
grafana-delivery-bot[bot] Mar 7, 2024
b30b93d
[v10.4.x] Update angular-plugins.md (#83664)
grafana-delivery-bot[bot] Mar 7, 2024
595d967
[v10.4.x] Chore: Bump docker image versions (#84065)
grafana-delivery-bot[bot] Mar 7, 2024
980352f
[v10.4.x] Embed two visualization videos from the Grafana for Beginne…
grafana-delivery-bot[bot] Mar 7, 2024
7f48c31
[v10.4.x] docs: adds alt text to images where missing (#84093)
grafana-delivery-bot[bot] Mar 7, 2024
32e7839
[v10.4.x] Dashboard: Fix issue where out-of-view shared query panels …
grafana-delivery-bot[bot] Mar 11, 2024
5d46a9c
[v10.4.x] Docs: corrected data source management information (#84209)
grafana-delivery-bot[bot] Mar 11, 2024
ab89de7
[v10.4.x] Docs: fix broken link (#84220)
grafana-delivery-bot[bot] Mar 11, 2024
1b43fc9
[v10.4.x] Docs: add missing alt text (#84216)
grafana-delivery-bot[bot] Mar 11, 2024
e430baa
[v10.4.x] docs: update angular deprecation notice (#84228)
grafana-delivery-bot[bot] Mar 11, 2024
9bbd9cf
[v10.4.x] Postgres: Allow disabling SNI on SSL-enabled connections (#…
grafana-delivery-bot[bot] Mar 12, 2024
0a0e9f7
[v10.4.x] OrgUsers: Refactor change `LastSeenAtAge` from '10 years' t…
grafana-delivery-bot[bot] Mar 12, 2024
1d58241
[v10.4.x] Users: Add back check for undefined / null for value for `l…
grafana-delivery-bot[bot] Mar 12, 2024
0b50a9b
[v10.4.x] Docs: add table visualization for logs entry to what's new …
grafana-delivery-bot[bot] Mar 12, 2024
e865301
[v10.4.x] Docs: clarify query formatting for time range variable quer…
grafana-delivery-bot[bot] Mar 12, 2024
2710732
[v10.4.x] SSO: fix mergeSettings() in case the DB contains empty URLs…
grafana-delivery-bot[bot] Mar 13, 2024
af6316a
[v10.4.x] Alerting: Improve alert list panel and alert rules toolbar …
grafana-delivery-bot[bot] Mar 13, 2024
45e78b3
[v10.4.x] Auth: Only call rotate token if we have a session expiry co…
grafana-delivery-bot[bot] Mar 13, 2024
1d73820
[v10.4.x] docs: update angular guidance (#84396)
grafana-delivery-bot[bot] Mar 13, 2024
f4a9aa1
[v10.4.x] Loki: Fix null pointer exception in case request returned a…
grafana-delivery-bot[bot] Mar 13, 2024
335aa31
[v10.4.x] Alerting: Add "Keep Last State" backend functionality (#84406)
grafana-delivery-bot[bot] Mar 13, 2024
3f596e8
[v10.4.x] Alerting docs: document HTTP API to create templates (#84424)
grafana-delivery-bot[bot] Mar 14, 2024
1cca653
[v10.4.x] Chore: Bump update checker interval to 1 day (#84452)
grafana-delivery-bot[bot] Mar 14, 2024
54d6cb7
[v10.4.x] Chore: Adding log also for cases where datasource UID lengt…
grafana-delivery-bot[bot] Mar 14, 2024
b946bca
[v10.4.x] Chore: Removing error object from tracking (#84506)
grafana-delivery-bot[bot] Mar 14, 2024
4b0a5f0
[v10.4.x] Docs: add alt text (#84581)
grafana-delivery-bot[bot] Mar 15, 2024
17ab162
[v10.4.x] InfluxDB: Fix sql query generation by adding quotes around …
grafana-delivery-bot[bot] Mar 15, 2024
0f16516
[v10.4.x] InfluxDB: Fix escaping template variable when it was used i…
grafana-delivery-bot[bot] Mar 15, 2024
7db05f5
[v10.4.x] ExtSvcAccounts: FIX prevent service account deletion (#84511)
grafana-delivery-bot[bot] Mar 15, 2024
e258f2e
[v10.4.x] InfluxDB: Fix interpolation of multi value template variabl…
itsmylife Mar 15, 2024
035e271
[v10.4.x] Service accounts: Same Org fix migration to account for dup…
grafana-delivery-bot[bot] Mar 15, 2024
2fb6deb
[v10.4.x] Alerting: Fix optional fields requiring validation rule (#8…
grafana-delivery-bot[bot] Mar 15, 2024
de5b771
[v10.4.x] Alerting docs: Fix broken links in TF Provisioning page (#8…
ppcano Mar 15, 2024
591cb82
[v10.4.x] Alerting/Annotations: Prevent panics from composite store j…
grafana-delivery-bot[bot] Mar 15, 2024
1e4235c
[v10.4.x] Chore: Fix changelog for v10.4.0 (#84554)
zserge Mar 18, 2024
d8c0674
[DOC] V10.4 loki query tempo deprecate (#84326)
knylander-grafana Mar 18, 2024
80ac64c
[v10.4.x] docs: initial updates to state timeline documentation (#84758)
grafana-delivery-bot[bot] Mar 19, 2024
c17383d
[v10.4.x] Visualizations-TablePanel: added YouTube link to Table Pane…
grafana-delivery-bot[bot] Mar 19, 2024
d486fa8
[v10.4.x] Elasticsearch: Fix legend for alerting, expressions and pre…
grafana-delivery-bot[bot] Mar 20, 2024
d3ce857
[v10.4.x] alerting docs: slack integration (#84823)
ppcano Mar 20, 2024
04f6c66
[v10.4.x] Alerting: Marshal incoming json.RawMessage in diff (#84853)
grafana-delivery-bot[bot] Mar 20, 2024
d94d597
[v10.4.x] Docs: Specify `Recorded queries` is available in `Grafana C…
grafana-delivery-bot[bot] Mar 21, 2024
00477e3
[v10.4.x] Docs: restructure Configure standard options (#84918)
grafana-delivery-bot[bot] Mar 21, 2024
e9ea783
[v10.4.x] Changelog: Updated changelog for 10.4.1 (#84924)
grafana-delivery-bot[bot] Mar 21, 2024
1aea2dd
Release: Bump version to 10.4.2 (#84926)
grafana-delivery-bot[bot] Mar 21, 2024
95604c1
[v10.4.x] Alerting: Add docs for "Keep Last State" feature (#84943)
grafana-delivery-bot[bot] Mar 21, 2024
554cca4
[v10.4.x] Docs: add Configure tooltips page (#84945)
grafana-delivery-bot[bot] Mar 21, 2024
75f5cee
[v10.4.x] CloudMonitoring: Only run query if filters are complete (#8…
grafana-delivery-bot[bot] Mar 22, 2024
f04c5d3
[v10.4.x] Docs: Fixed a typo in the Azure config page (#84862)
lwandz13 Mar 22, 2024
a678a46
[v10.4.x] alerting: get started tutorial (#85072)
grafana-delivery-bot[bot] Mar 25, 2024
6c09bfa
[v10.4.x] docs: update text panel documentation (#85098)
grafana-delivery-bot[bot] Mar 25, 2024
01395e3
[v10.4.x] docs: updates to stat panel documentation (#85101)
grafana-delivery-bot[bot] Mar 25, 2024
6a8944a
[v10.4.x] docs: update status history panel (#85105)
grafana-delivery-bot[bot] Mar 25, 2024
e1fc1e9
[v10.4.x] Chore: Update grafana-plugin-sdk (#85087)
wbrowne Mar 25, 2024
3328ac8
[v10.4.x] Prometheus: Prevent duplicate registration of custom header…
grafana-delivery-bot[bot] Mar 25, 2024
41d5166
[v10.4.x] Access control: Improve annotation delete performance (#85150)
grafana-delivery-bot[bot] Mar 26, 2024
b560729
[v10.4.x] SQLEngine: Use `debug` method instead of custom implementat…
grafana-delivery-bot[bot] Mar 26, 2024
d26a145
[v10.4.x] Plugins: Pass PDC file contents in requests (#85144)
wbrowne Mar 26, 2024
b1e4fc1
[v10.4.x] Get started with alerting fixes for publish (#85174)
grafana-delivery-bot[bot] Mar 26, 2024
e743c4a
[v10.4.x] Alerting: Fix receiver inheritance when provisioning a noti…
grafana-delivery-bot[bot] Mar 26, 2024
fef4ca3
[v10.4.x] Clarify AWS Auth instructions for Grafana Cloud users (#85208)
grafana-delivery-bot[bot] Mar 26, 2024
c5e9aa0
[v10.4.x] correct a url (#85246)
grafana-delivery-bot[bot] Mar 27, 2024
eaf0dbe
[v10.4.x] Added YouTube video to index.md on Time Series (#85276)
grafana-delivery-bot[bot] Mar 27, 2024
5430b14
[v10.4.x] Plugins: Pass PDC info as file paths (#85279)
wbrowne Mar 27, 2024
fe62687
[v10.4.x] AuthProxy: Fix missing session for ldap auth proxy users (#…
Jguer Mar 27, 2024
0f77915
[v10.4.x] Docs: fix availability note (#85345)
grafana-delivery-bot[bot] Mar 28, 2024
30100b2
[v10.4.x] [DOC] Clarify compatible log stores for traces to logs (#85…
grafana-delivery-bot[bot] Mar 28, 2024
df08b79
[v10.4.x] docs: update histogram visualization (#85363)
grafana-delivery-bot[bot] Mar 28, 2024
1565cc3
[v10.4.x] OptionsPicker: Allow storing raw input even when matches ex…
grafana-delivery-bot[bot] Mar 29, 2024
726f389
[10.4.x] Plugins: Send PDC file paths and contents for backwards comp…
wbrowne Mar 29, 2024
78e07dc
[v10.4.x] Plugins: Set correct PDC config values for proxy requests (…
grafana-delivery-bot[bot] Mar 29, 2024
d5e252f
[v10.4.x] alerging-get-started: update (#85511)
grafana-delivery-bot[bot] Apr 3, 2024
8da9710
[v10.4.x] Docs: add YouTube video link and description (#85537)
grafana-delivery-bot[bot] Apr 3, 2024
6b124e2
[v10.4.x] Canvas: Infinite Pan Backport (#85608)
drew08t Apr 4, 2024
af94019
[v10.4.x] Docs: added infinite pan to canvas docs (#85610)
imatwawana Apr 4, 2024
71bee57
[v10.4.x] Angular deprecation: Prefer local "angularDetected" value t…
xnyo Apr 5, 2024
1eab6e5
[v10.4.x] docs: add missing viz types to index (#85685)
imatwawana Apr 5, 2024
8358e3d
[v10.4.x] Alerting docs: update `disable_provenance` TF mute_timing (…
grafana-delivery-bot[bot] Apr 8, 2024
125ec4b
[v10.4.x] Docs: What’s new & Upgrade guide & Breaking changes v11.0-p…
grafana-delivery-bot[bot] Apr 8, 2024
f7070df
[v10.4.x] Alerting docs: add `Template variable interpolation` sectio…
grafana-delivery-bot[bot] Apr 8, 2024
46f6336
[v10.4.x] Docs: Re-order features and update intro in Grafana 11.0-pr…
imatwawana Apr 8, 2024
2c9344a
[v10.4.x] Docs: add youtube links to g11 preview what's new (#85751)
grafana-delivery-bot[bot] Apr 8, 2024
5591796
[v10.4.x] PR to document Explore Metrics (previously datatrails) (#85…
grafana-delivery-bot[bot] Apr 8, 2024
acb8d03
[v10.4.x] Docs: g11 preview whats new fixes (#85762)
grafana-delivery-bot[bot] Apr 8, 2024
87f391e
[v10.4.x] Chore: Update RPM docs to include beta release references (…
grafana-delivery-bot[bot] Apr 9, 2024
f97672f
[v10.4.x] Docs: add updated youtube link (#85802)
grafana-delivery-bot[bot] Apr 9, 2024
7ceb112
[v10.4.x] Docs: Fix wrong word for tempo example config (#85817)
grafana-delivery-bot[bot] Apr 9, 2024
22809de
[v10.4.x] Docs: add unit scaling clarification (#85871)
grafana-delivery-bot[bot] Apr 10, 2024
530ca45
PMM-13059 Grafana release 10.4.2
matejkubinec Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 120 additions & 100 deletions .betterer.results.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Comment commands:

Label commands:

* Add label `bot/question` the the bot will close with standard question message and add label `type/question`
* Add label `bot/duplicate` the the bot will close with standard duplicate message and add label `type/duplicate`
* Add label `bot/question` the bot will close with standard question message and add label `type/question`
* Add label `bot/duplicate` the bot will close with standard duplicate message and add label `type/duplicate`
* Add label `bot/needs more info` for bot to request more info (or use comment command mentioned above)
* Add label `bot/close feature request` for bot to close a feature request with standard message and adds label `not implemented`
* Add label `bot/no new info` for bot to close an issue where we asked for more info but has not received any updates in at least 14 days.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
doc-validator:
runs-on: "ubuntu-latest"
container:
image: "grafana/doc-validator:v4.0.0"
image: "grafana/doc-validator:v4.1.1"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
Expand Down
243 changes: 243 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1

ARG BASE_IMAGE=alpine:3.18.5
ARG JS_IMAGE=node:20-alpine3.18
ARG BASE_IMAGE=alpine:3.19.1
ARG JS_IMAGE=node:20-alpine
ARG JS_PLATFORM=linux/amd64
ARG GO_IMAGE=golang:1.21.8-alpine3.18
ARG GO_IMAGE=golang:1.21.8-alpine

ARG GO_SRC=go-builder
ARG JS_SRC=js-builder
Expand All @@ -20,6 +20,8 @@ COPY packages packages
COPY plugins-bundled plugins-bundled
COPY public public

RUN apk add --no-cache make build-base python3

RUN yarn install --immutable

COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js ./
Expand Down
4 changes: 4 additions & 0 deletions conf/defaults.ini
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ log_queries =
# For "mysql", use either "true", "false", or "skip-verify".
ssl_mode = disable

# For "postregs", use either "1" to enable or "0" to disable SNI
ssl_sni =

# Database drivers may support different transaction isolation levels.
# Currently, only "mysql" driver supports isolation levels.
# If the value is empty - driver's default isolation level is applied.
Expand Down Expand Up @@ -679,6 +682,7 @@ token_url = https://oauth2.googleapis.com/token
api_url = https://openidconnect.googleapis.com/v1/userinfo
signout_redirect_url =
allowed_domains =
validate_hd = false
hosted_domain =
allowed_groups =
role_attribute_path =
Expand Down
4 changes: 4 additions & 0 deletions conf/sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@
# For "mysql", use either "true", "false", or "skip-verify".
;ssl_mode = disable

# For "postregs", use either "1" to enable or "0" to disable SNI
;ssl_sni =

# Database drivers may support different transaction isolation levels.
# Currently, only "mysql" driver supports isolation levels.
# If the value is empty - driver's default isolation level is applied.
Expand Down Expand Up @@ -643,6 +646,7 @@
;api_url = https://openidconnect.googleapis.com/v1/userinfo
;signout_redirect_url =
;allowed_domains =
;validate_hd =
;hosted_domain =
;allowed_groups =
;role_attribute_path =
Expand Down
2 changes: 1 addition & 1 deletion contribute/style-guides/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
});
```

Use hook useStyles2(getStyles) to memoize the styles generation and try to avoid passing props to the the getStyles function and instead compose classes using emotion cx function.
Use hook useStyles2(getStyles) to memoize the styles generation and try to avoid passing props to the getStyles function and instead compose classes using emotion cx function.

#### Use `ALL_CAPS` for constants.

Expand Down
5 changes: 3 additions & 2 deletions docs/sources/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ labels:
- oss
cascade:
TEMPO_VERSION: latest
PYROSCOPE_VERSION: latest
title: Grafana open source documentation
---

Expand Down Expand Up @@ -81,8 +82,8 @@ title: Grafana open source documentation
<h4>Provisioning</h4>
<p>Learn how to automate your Grafana configuration.</p>
</a>
<a href="{{< relref "whatsnew/whats-new-in-v10-3/" >}}" class="nav-cards__item nav-cards__item--guide">
<h4>What's new in v10.3</h4>
<a href="{{< relref "whatsnew/whats-new-in-v10-4/" >}}" class="nav-cards__item nav-cards__item--guide">
<h4>What's new in v10.4</h4>
<p>Explore the features and enhancements in the latest release.</p>
</a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: Data source management information for Grafana administrators
labels:
products:
- enterprise
- oss
- cloud
title: Data source management
weight: 100
---
Expand All @@ -21,27 +21,15 @@ Grafana supports many different storage backends for your time series data (data
Refer to [data sources]({{< relref "../../datasources" >}}) for more information about using data sources in Grafana.
Only users with the organization admin role can add data sources.

## Add a data source

Before you can create your first dashboard, you need to add your data source.

{{% admonition type="note" %}}
Only users with the organization admin role can add data sources.
{{% /admonition %}}

**To add a data source:**

1. Click **Connections** in the left-side menu.
1. Enter the name of a specific data source in the search dialog. You can filter by **Data source** to only see 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" >}}).

## Data source permissions

You can configure data source permissions to allow or deny certain users the ability to query, edit, or administrate a data source. Each data source’s configuration includes a Permissions tab where you can restrict data source permissions to specific users, service accounts, teams, or roles.
Query permission allows users to query the data source. Edit permission allows users to query the data source, edit the data source’s configuration and delete the data source. Admin permission allows users to query and edit the data source, change permissions on the data source and enable or disable query caching for the data source.

- The `query` permission allows users to query the data source.
- The `edit` permission allows users to query the data source, edit the data source’s configuration and delete the data source.
- The `admin` permission allows users to query and edit the data source, change permissions on the data source and enable or disable query caching for the data source.

{{% admonition type="note" %}}
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}) and [Grafana Cloud](/docs/grafana-cloud).
Expand Down Expand Up @@ -71,7 +59,7 @@ You can assign data source permissions to users, service accounts, teams, and ro
1. Click **Connections** in the left-side menu.
1. Under Your connections, click **Data sources**.
1. Select the data source for which you want to edit permissions.
1. On the Permissions tab, find the user, service account, team, or role permission you want to update.
1. On the Permissions tab, find the **User**, **Service Account**, **Team**, or **Role** permission you want to update.
1. Select a different option in the **Permission** dropdown.

<div class="clearfix"></div>
Expand All @@ -81,7 +69,7 @@ You can assign data source permissions to users, service accounts, teams, and ro
1. Click **Connections** in the left-side menu.
1. Under Your connections, click **Data sources**.
1. Select the data source from which you want to remove permissions.
1. On the Permissions tab, find the user, service account, team, or role permission you want to remove.
1. On the Permissions tab, find the **User**, **Service Account**, **Team**, or **Role** permission you want to remove.
1. Click the **X** next to the permission.

<div class="clearfix"></div>
Expand Down Expand Up @@ -178,22 +166,3 @@ This action impacts all cache-enabled data sources. If you are using Memcached,
### Sending a request without cache

If a data source query request contains an `X-Cache-Skip` header, then Grafana skips the caching middleware, and does not search the cache for a response. This can be particularly useful when debugging data source queries using cURL.

## Add data source plugins

Grafana ships with several [built-in data sources]({{< relref "../../datasources#built-in-core-data-sources" >}}).
You can add additional data sources as plugins, which you can install or create yourself.

### Find data source plugins in the plugin catalog

To view available data source plugins, go to the [plugin catalog](/grafana/plugins/?type=datasource) and select the "Data sources" filter.
For details about the plugin catalog, refer to [Plugin management]({{< relref "../../administration/plugin-management/" >}}).

You can further filter the plugin catalog's results for data sources provided by the Grafana community, Grafana Labs, and partners.
If you use [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}), you can also filter by Enterprise-supported plugins.

For more documentation on a specific data source plugin's features, including its query language and editor, refer to its plugin catalog page.

### Create a data source plugin

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).
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,55 @@ weight: 100

# Team LBAC

{{% admonition type="note" %}}
Creating Team LBAC rules is available for preview preview for logs with Loki in Grafana Cloud. Report any unexpected behavior to the Grafana Support team.
{{% /admonition %}}
Team Label Based Access Control (LBAC) simplifies and streamlines data source access management based on team memberships.

**Current Limitation:**
{{< admonition type="note" >}}
Creating Team LBAC rules is available for preview for logs with Loki in Grafana Cloud.
Report any unexpected behavior to the Grafana Support team.
{{< /admonition >}}

- Any user with `query` permissions for a Loki data source can query all logs if there are no Team LBAC rules configured for any of the users team.
- An admin that is part of a team, would have it's Team LBAC rules applied to the request.
You can configure user access based upon team memberships using LogQL.
Team LBAC controls access to logs depending on the rules set for each team.

Grafana's new **Team LBAC** (Label Based Access Control) feature for Loki is a significant enhancement that simplifies and streamlines data source access management based on team memberships.
This feature addresses two common challenges faced by Grafana users:

**Team LBAC** in the context of Loki, is a way to control access to logs based on labels present depending on the rules set for each team. Users wanting fine grained access to their logs in Loki, can now configure their users access based on their team memberships via **LogQL**.
1. Having a high number of Grafana Cloud data sources.
Team LBAC lets Grafana administrators reduce the total number of data sources per instance from hundreds, to one.
1. Using the same dashboard across multiple teams.
Team LBAC lets Grafana Teams use the same dashboard with different access control rules.

This feature addresses two common challenge faced by Grafana users:
To set up Team LBAC for a Loki data source, refer to [Configure Team LBAC](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/teamlbac/configure-teamlbac-for-loki/).

1. High volume of Grafana Cloud datasource. Team LBAC lets Grafana Admins reduce the total volume of data sources per instance from hundreds, to one.
1. Hard for teams to share dashboard. Team LBAC lets Grafana Teams share the same dashboard despite different access control rules.
## Limitations

For setting up Team LBAC for a Loki data source, refer to [Configure Team LBAC]({{< relref "./configure-teamlbac-for-loki/" >}}).
- If there are no Team LBAC rules for a user's team, that user can query all logs.
- If an administrator is part of a team with Team LBAC rules, those rules are applied to the administrator requests.
- Cloud Access Policies (CAP) LBAC rules override Team LBAC rules.
Cloud Access Policies are the access controls from Grafana Cloud.
If there are any CAP LBAC rules configured for the same data source, then only the CAP LBAC rules are applied.

#### Datasource Permissions
You must remove any label selectors from your Cloud Access Policies to use Team LBAC.
For more information about CAP label selectors, refer to [Use label-based access control (LBAC) with access policies](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/access-policies/label-access-policies/).

Datasource permissions allow the users access to query the datasource. The permissions are set at the datasource level and are inherited by all the teams and users that are part of the datasource.
## Data source permissions

We recommend to create a new loki datasource for Team LBAC rules with only teams having `query` permission. This will allow you to have a clear separation of datasources for Team LBAC and the datasources that are not using Team LBAC.
Data source permissions allow the users access to query the data source.
Administrators set the permissions at the data source level.
All the teams and users that are part of the data source inherit those permissions.

## Team LBAC rules

Team LBAC rules are added to the http request to Loki data source. Setting up Team LBAC rules for any team will apply those rules to the teams.
Users who want teams with a specific set of label selectors can add rules for each team.

Configuring multiple rules for a team, each rule is evaluated separately. If a team has `X` number of rules configured for it, all rules will be applied to the request and the result will be the an "OR" operation of the `X` number of rules.

Only users with data source Admin permissions can edit LBAC rules at the data source permissions tab. Changing LBAC rules requires the same access level as editing data source permissions (admin permission for data source).

For setting up Team LBAC Rules for the data source, refer to [Create Team LBAC rules]({{< relref "./create-teamlbac-rules/" >}}).
## Recommended setup

### FAQ
It's recommended that you create a single Loki data source for using Team LBAC rules so you have a clear separation of data sources using Team LBAC and those that aren't.
All teams should have with only teams having `query` permission.
You should create another Loki data source configured without Team LBAC for full access to the logs.

> #### "If a team does not have a rule, what happens?"

If a team does not have a rule; any users that are part of that team having query permissions for loki will have access to **all** logs.

> #### "Can I use CAPs (cloud access policies) together with TeamLBAC rules?"

No, CAP (cloud access policies) always have precedence. If there are any CAP LBAC configured for the same datasource and there are TeamLBAC rules configured, then only the CAP LBAC will be applied.
## Team LBAC rules

Cloud access policies are the access controls from Grafana Cloud, the CAP configured for loki should only to be used to gain read access to the logs.
Grafana adds Team LBAC rules to the HTTP request via the Loki data source.

> #### "If administrator forget to add rule for a team, what happens?"
If you configure multiple rules for a team, each rule is evaluated separately.
Query results include lines that match any of the rules.

The teams that does not have a rule applied to it, would be able to query all logs if `query` permissions are setup for their role within Grafana.
Only users with data source `Admin` permissions can edit Team LBAC rules in the **Data source permissions** tab because changing LBAC rules requires the same access level as editing data source permissions.

**Note:** A user who is part of a team within Grafana without a rule will be able to query all logs if there are role based queriying setup.
To set up Team LBAC for a Loki data source, refer to [Configure Team LBAC](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/administration/data-source-management/teamlbac/configure-teamlbac-for-loki/).
2 changes: 1 addition & 1 deletion docs/sources/administration/recorded-queries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Recorded queries allow you to see trends over time by taking a snapshot of a dat
For our plugins that do not return time series, it might be useful to plot historical data. For example, you might want to query ServiceNow to see a history of request response times but it can only return current point-in-time metrics.

{{% admonition type="note" %}}
Available in [Grafana Enterprise]({{< relref "../../introduction/grafana-enterprise/" >}}).
Available in [Grafana Enterprise](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/introduction/grafana-enterprise/) and [Grafana Cloud](https://grafana.com/docs/grafana-cloud/).
{{% /admonition %}}

## How recorded queries work
Expand Down
Loading
Loading