5699 Commits

Author SHA1 Message Date
ba384d29f6 Alerting: Fix order of the Alerting docs (#77084) 2023-10-24 19:31:03 +01:00
be6b407d73 docs: What’s new & Upgrade guide 10.2 (#75909)
* Added 10.2 what's new and upgrade guide

* Fixed title and added guidance

* add: no basic role feature to whats new

* Revert "add: no basic role feature to whats new"

This reverts commit eb2e31c3dcf013c45b4102f3a149826f5d4c7fe5.

* Add field min/max calculation to what's new

* refresh token handling

* update

* Remove whitespace

* Revert "Add field min/max calculation to what's new"

This reverts commit 9b66ddd0ecfed3b9c3b1dee9cdac6d748e24cffa.

* Revert refresh token handling and move it to separate PR

* Docs: Add permission validation enabled by default to what's new (#76376)

* Add permission validation enabled by default to whats new

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* update

* Apply suggestions from code review

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

* Fix Grafana editions note

* run prettier

---------

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

* Fixed typo

* Docs: Add No basic role feature description (#76345)

* add whats next for cloud

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* Update docs/sources/whatsnew/whats-new-next/index.md

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

---------

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

* Auth: Whats new v10.2 (#76369)

* add whatsnew auth

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Apply suggestions from code review

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

* Apply suggestions from code review

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

* separate ds and db managed permissions whats new

* Apply suggestions from code review

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

---------

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

* What's new in transformations 10.2 (#76430)

* first draft

* spelling

* Add doc links and images

* Fix relrefs

* Apply suggestions from code review

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

* Add information about availability

* update availability for string format transform

* add field from calc modifications

* Fixed link version syntax

* Apply suggestions from code review

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

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Victor Marin <victor.marin@grafana.com>

* Add field min/max calculation to what's new (#76401)

* Add field min/max calculation to what's new

* fix whitespace

* Fix which editions it's available in

* Apply suggestions from code review

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

* change availability

* reduce image size

---------

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

* Removed What's new next addition from this PR

* Added alertmanager update (#76584)

* Added alertmanager update

* Fixed order of items

* Added availability info

* remove typo

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* Remove heading formatting

* initial draft of dataviz squad deliverables for 10.2 whats new

* add dashgpt (#dashboard-ai) whats new draft

* What's New: Correlations in 10.2 (#76505)

* What's new about correlations

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update availability

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

* Update docs/sources/whatsnew/whats-new-in-v10-2.md

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

---------

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

* Updated linking guidance in template and fixed links

* Fixed link

Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com>

* Docs: update whats new links (#76639)

Replaced relrefs with fully qualified URLs

* DashGPT: update availability status to public preview

* Update What's New to Include information on Timezone and Applicability changes in transformations (#76571)

* Update what's new

* Fix misspelling

* Update to fix wording

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

* Remove merge conflict flag

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

* Fix capitalization

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

* Fix wording

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

* Sentence casing

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

* Fix up wording

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

* Fix availability

* One last fix :)

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

* Fixed typo (I introduced!)

---------

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

* Docs: add Cloud what's new items to 10.2 what's new (#76642)

* Added Cloud what's new content

* Apply suggestions from code review

Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>

* Updated link formatting

* Updated Browse Dashboards with the latest content

* Updated availability

* Updated wording

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>

* Fixed typo

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>

---------

Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>

* Fixed title

* Removed all editions language

* General edits

* Copy edits

* Fixed availability note

* Copy editing

Removed Visualize enum entry

Added sharing section

Added alerting entry

Added introduction

Made minor copy edits

* Fixed capitalization

* Fixed typo

* add CTA and gif to AI features

* update recorded queries text

* Update edition availability

Cloud permissions were missing (even though this is an OSS release I think it's important to include details about Cloud availability) and some features listed the wrong availability.

* reorder topics for emphasis

Emphasize the most exciting improvements

* add links to feature toggle docs

* move recorded queries

* update wording and titles for readability

* add visualization media

* update wording in dataviz section

* dashgpt: finalize whats new for 10.2 (finally) 😬

* Fixed typo

* DataViz: finalize whats new content 😬

* Copy edits

* update enterprise ds availability

* Update whats-new-in-v10-2.md

* Fixed style issues and availability note

* Added missing Alerting items

* Updated availability note

* Fixed styling

* Reverted what's new link to relref

* update availability of No Basic Role

I consulted with Eric before making this change.

* Removed item not going out in this release

* Update Alerting items

* Fixed linting

---------

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Jo <joao.guerreiro@grafana.com>
Co-authored-by: Victor Marin <victor.marin@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Kate Brenner <32871890+katebrenner@users.noreply.github.com>
Co-authored-by: Kyle Cunningham <codeincarnate@users.noreply.github.com>
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com>
Co-authored-by: Miguel Palau <mpalauzarza@gmail.com>
2023-10-24 19:56:09 +03:00
9a563a4d19 Docs: Clarify open source documentation (#77077)
* Docs: Clarify open source documentation

* Update docs/sources/_index.md

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

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
2023-10-24 09:30:45 -07:00
41db5b645c Transformations: Separate useful doc content for UI use (#75781)
* baldm0mma/doc_builder/ add to gitignore

* baldm0mma/doc_builder/ add makefile commands

* baldm0mma/doc_builder/ add content

* baldm0mma/doc_builder/ format content

* baldm0mma/doc_builder/ update makefile

* baldm0mma/docs_builder/ update content

* baldm0mma/doc_builder/ add back content

* baldm0mma/doc_builder/ run builder

* baldm0mma/doc_builder/ update naming

* baldm0mma/doc_builder/ remove unused note

* baldm0mma/doc_builder/ update template

* baldm0mma/doc_builder/ add new line in makefile

* baldm0mma/doc_builder/ rem new line

* baldm0mma/doc_builder/ add final line

* Much of this full PR was Co-Authored-By: Jack Baldry <jack.baldry@grafana.com>

* baldm0mma/doc_builder/ update readme

* baldm0mma/doc_builder/ update guidlines

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update docs/README.md

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

* Update docs/README.md

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

* Update scripts/docs/generate-transformations.ts

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

* baldm0mma/doc_builder/ update concat

* baldmomma/doc_builder/ finish concat table

* baldm0mma/docs_builder/ update with suggestions

* baldm0mma/doc_builder/ update content to use getHelperDocs

* baldm0mma/doc_builder/ update calculateField

* baldm0mma/doc_builder/ update to byRefId

* baldm0mma/doc_builder/ update filterByValue

* baldm0mma/doc_builder/ update filterFieldsByName

* baldm0mma/doc_builder/ update formatTime

* baldm0mma/doc_builder/ update groupBy

* baldm0mma/doc_builder/ update groupingToMatrix

* baldm0mma/doc_update/ update heatmap

* baldm0mma/doc_builder/ update histogram

* baldm0mma/doc_builder/ update joinByField

* baldm0mma/doc_builder/ update joinByLabels

* baldm0mma/doc_builder/ update labelsToFields

* baldm0mma/doc_builder/ update limit

* baldm0mma/doc_builder/ update merge

* baldm0mma/doc_builder/ update organize

* baldm0mma/doc_builder/ update partitionByValues

* baldm0mma/doc_builder/ update prepareTimeSeries

* baldm0mma/doc_builder/ update reduce

* baldm0mma/doc_builder/ update renameByRegex

* baldm0mma/doc_builder/ update rowsToFields

* baldm0mma/doc_builder/ update seriesToRows

* baldm0mma/doc_builder/ update sortBy

* baldm0mma/doc_builder/ update spatial

* baldm0mma/doc_builder/ update timeSeriesTable

* baldm0mma/doc_builder/ rerender all

* baldm0mma/doc_builder/ update calculateField

* baldm0mma/doc_builder/ gitignore conflicts

* baldm0mma/doc_builder/ add formatString

* baldm0mma/doc_builder/ update vars

* baldm0mma/doc_builder/ update naming

* baldm0mma/doc_builder/ rerender markdown

* Update public/app/features/transformers/docs/content.ts

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

* baldm0mma/doc_builder/ update content

* baldm0mma/doc_builder/ add to codeownders

* baldm0mma/doc_builder/ correct spelling

* baldm0mma/doc_builder/ update comment

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-24 10:30:10 -06:00
2c2d8bcc74 Alerting: Feedback on docs (#77068) 2023-10-24 16:53:26 +01:00
33f959612f Docs: Clarify content on Getting started page (#77010)
* Clarify content

Users coming to this page need to understand that they have landed on the OSS page, and be provided direction to the Cloud getting started if they have landed here by mistake.

* Update link

update link

* Remove duplicate content

* Add link to cloud docs

* Update docs/sources/getting-started/_index.md

try this

* Update docs/sources/getting-started/_index.md

* Update docs/sources/getting-started/_index.md

* Update _index.md

* Fixed linting issues

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2023-10-24 07:11:17 -07:00
7a9ec6b4e0 RBAC: update data source permission API reference (#76613)
* update data source permission docs

* Update datasource_permissions.md

* Update docs/sources/developers/http_api/datasource_permissions.md

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-10-24 16:51:12 +03:00
b2eda16023 Docs: Updates based on UI changes, support request (#76907)
* added additional links on Lucene queries

* cosmetic updates to query editor

* updated config doc to reflect UI changes

* removed Explore elements from query editor doc

* ran prettier
2023-10-24 08:42:40 -05:00
b8d005ae23 Plugins: Improvements to NodeGraph (#76879) 2023-10-24 15:16:10 +02:00
765defea1e Loki Queries: Query Splitting enabled by default (#75876)
* Loki Query Splitting: enable by default

* Query splitting: add gdev dashboard

* Update testdata file

* Update devenv/dev-dashboards/datasource-loki/loki_query_splitting.json

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

* Revert "Update testdata file"

This reverts commit 5a891ba1f2b938746908382373c490e502848193.

* Update feature-toggles readme

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-10-24 16:09:30 +03:00
1cb1d174fd 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
2023-10-24 12:41:08 +01:00
272a901e5e Alerting: Improve order of docs pages (#76998) 2023-10-24 10:50:19 +01:00
0fc9da1422 Alerting: Improve documentation on high availability (#76434) 2023-10-24 10:15:38 +01:00
32f48ee64a Alerting: Fix link in docs (#76982) 2023-10-23 16:53:31 -05:00
4e8c4869d1 Docs: add Dataviz features to Cloud what's new (#76722)
* Added Dataviz features

* Removed enum data entry

* Updated datafiz features based on 10.2 what's new

* Fixed headings

* Fixed heading

* Added clarifying language

* Added release dates

* Moved dataviz features so they're ordered by date

* Update docs/sources/whatsnew/whats-new-next/index.md

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

---------

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
2023-10-23 21:43:22 +03:00
fae193e452 Docs: add unusable transformations content (#76644)
* Added unusable transformations content

* Make note clearer

* Add release date and remove on-prem instructions

* Moved item to be in order by date and fixed heading level

---------

Co-authored-by: Kyle Cunningham <kyle@codeincarnate.com>
2023-10-23 14:27:55 -04:00
961ed14084 OwenSmallwood/Docs: Updates min cpu for k8s minimum requirements (#76908)
updates min cpu for k8s minimum requirements
2023-10-23 11:00:40 -06:00
a03f9e7660 Feature toggle: Mark dashgpt as GA (#76304)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-23 09:39:12 -07:00
4f2bbd490f Canvas: Add PUT to Canvas Button (#76844)
* Add PUT to canvas button

* Update cue file to include PUT

* Re run make gen cue

* fix gen-cue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-23 09:24:34 -07:00
65a7bddcee Analytics: Add option to pass destSDKBaseURL to rudderstack load method (#74926)
* Add option to pass destSDKBaseURL to rudderstack load method

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

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

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

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

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-10-23 12:43:33 +00:00
e94e283cc6 Alerting: Improve Introduction to Alerting docs (#76591) 2023-10-23 13:03:20 +03:00
622ecbb722 Alerting: Improve the docs for grouping and timers (#76589) 2023-10-23 09:48:24 +01:00
e743aa54b8 Alerting: Improve the docs on templating labels and annotations (#76593)
The previous version of this page I wrote with the expectation that
readers would first learn the templating language and then write
their templates. This doesn't seem to have worked out as well as I
had expected, and so I've rewritten the documentation to explain
the language using relevant and useful examples instead.
2023-10-23 09:43:13 +01:00
a26318714f Alerting: Update docs with the new create alert menu option in panels (#76825)
* Update docs with the new create alert menu option in panels

* fix errors

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-10-23 10:21:34 +02:00
03bf6d6ed4 Docs: Add missing step to install plugin doc (#76853)
Add missing step to install plugin doc
2023-10-23 08:30:07 +01:00
677f7c38e8 docs: Update canvas docs with latest button element video (#76915) 2023-10-20 18:02:45 -06:00
ecbc52f515 CloudWatch: Update query batching logic (#76075) 2023-10-20 15:09:41 -04:00
cae08aaad7 docs: minor grammar update (#76900) 2023-10-20 16:31:32 +00:00
c3102c7d0a Caching: Enable useCachingService feature toggle by default (#76845)
* enable by default

* update docs

* add helpful comment
2023-10-20 10:00:37 -04:00
bfe7986ab7 Docs: add service accounts to the list of entities that can be assigned permissions (#76876)
call out that dash, folder and DS permissions can be assigned to service accounts
2023-10-20 13:53:36 +01:00
6749421bf2 Docs: Update geomap marker layer docs for 10.2 (#76784) 2023-10-19 21:50:43 +00:00
ca86dab48b Docs: order Cloud what's new entries by date (#76839)
* Ordered entries by date

* Added ordering guidance to readme
2023-10-19 16:58:48 -04:00
6cb5e0806e Docs: Update canvas docs for 10.2 (#76786)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-19 13:03:10 -07:00
714fa2bb13 Docs: Update timeseries axis docs for 10.2 (#76782)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-19 20:55:10 +01:00
4073e50da9 Update angular-plugins.md (#76829)
Remove oracle plugins as these have migrated
2023-10-19 16:14:22 +00:00
5580d06101 Prometheus: PromQAIL frontend, drawer, feature toggle, workflow, etc. (#73020)
* initial commit for PromQAIL

* add feature toggle and start button

* add drawer

* set up drawer and state

* fix styles and start the conditional text display

* add data info list going to ai

* add logos and style

* metric display table style, neeed to make responsive

* make feature toggle frontend only

* add logic for want prompt for list or not, add helpers, addquerysuggestion type

* make query suggestion component

* add buttons to add or refine prompt

* refactor logic to add interactions to have multiple AI or historical interactions

* refactor and enable multiple questions, all flow

* add colorful AI icon to drawer open button

* fix linting

* refactor for hooking up promQail app and only giving one suggestion

* design fixes

* fix next prompt button styling

* historical suggestions give us 5, fixed that and some design things

* hook up the api, provide defense filler if it's down, refactor lots

* use query, fix linting

* add metadata to explain for ai suggestions

* styling fixes

* give metadata for historical suggestions by parsing query on the fly

* no prompt field to query-suggestion endpoint if prompt is empty

* fix linting

* use suggest rte for historical list, fix long code style

* use suggest rte for historical list, fix long code style

* fix historical bug

* added prompt file

* updated llm logic in explainer helper

* bump @grafana/experimental from 1.7.0 to 1.7.2

* use llmservice and vectorservice

* cleanup prompts + streaming explainer

* promqail feature toggle: fix re-order

* PromQL non-llm failback recommendation logic (#75469)

* added template recommendation logic directly in helpers

* also added selected labels to recommendation

* PromQail: query gen: fix prompt formatting and fetch metric labels to be used (#75450)

* PromQail: query gen: fix prompt formatting and fetch metric labels to be used

* Code fixes as suggested

* Use newly decided collection name for promql templates

* Prometheus: Promqail tests and bug fixes (#75852)

* add tests for drawer

* refine one prompt at a time, fix css

* scroll into view on interaction change

* fix styles for light

* disable prompt input after getting sugestions for that interaction

* make buttons disappear after selecting refine prompt or show historical queries to prevent user from clicking many times

* fix border radius

* fix new eslint rule about css requiring objects and not template literals

* add scrollIntoView for test

* grafana_prometheus_promqail_explanation_feedback - add feedback rudderstack interaction for explanation

* add form link to feedback for query suggestions

* fix bugs

* for prettier

* PromQL Builder Explainer: Added promql documentation and updated prompt (#75593)

* added promql documentation and updated prompt

* refactor prompt generation into isolated function

* updated prompt to answer with a question

* removed commented code

* updated metadata logic

* updated documentation body logic

* Prometheus: PromQAIL UI fixes (#76654)

* align buttons at 16px

* only autoscroll when an interaction has been added or the suggestions have been updated

* add 12px below explain for suggested queries

* add . after suggestion number

* fix linting error

* Prometheus: PromQAIL feedback improvements (#76711)

* align buttons at 16px

* only autoscroll when an interaction has been added or the suggestions have been updated

* add 12px below explain for suggested queries

* add . after suggestion number

* add text indication for explanation feedback

* add form for suggestion feedback, add form for not helpful explanation feedback

* fix linting error

* make radio button feedback required

* required text, padding additions, thank you for your feedback

* PromQL Builder Suggestion: Added type level templates and removed explainer steps for fallback suggestion logic (#75764)

* adding more detailed templates to promql fallback suggest

* remove debug logs

* added missing explain logic

* Fix brendan's type issue

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
Co-authored-by: bohandley <brendan.ohandley@gmail.com>

* make yarn.lock equal to current in main

* fix feature toggles

* fix prettier issues

---------

Co-authored-by: Edward Qian <edward.qian@grafana.com>
Co-authored-by: Yasir Ekinci <yas.ekinci@grafana.com>
Co-authored-by: Edward Qian <edward.c.qian@gmail.com>
Co-authored-by: Gerry Boland <gerboland@users.noreply.github.com>
2023-10-19 10:45:32 -05:00
94fec65192 RBAC: introduce a data source admin role (#75915)
* introduce data source admin role and fix frontend check

* introduce fixed roles for data source creator and team reader

* add documentation

* undo an unintended change
2023-10-19 14:36:41 +01:00
87ca68540b 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>
2023-10-19 11:57:37 +03:00
d98edad953 Docs: Add Alerting export to what's new (#76775)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-18 15:38:56 -04:00
91ad07719f Azure monitor: Support Logs visualization (#76594)
* logs view

* cant add a library

* gzip doesnt work

* remove link code :(

* clean up

* linter

* linter

* betterer. cant run this locally??

* Remove unneeded conversions

* Return portal link for log queries from backend

* Display portal link

* Update tests

* Lint

* Prettier

* Unused import

* Add Azure Monitor to explore docs

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2023-10-18 18:19:35 +03:00
756df61a88 Docs: Fix links to plugin-tools in changelog, breaking changes (#76726)
Fix links to plugin-tools in changelog, breaking changes
2023-10-18 08:08:05 -07:00
43add83d1a Plugins: Add feat toggle to install managed plugins (#75973) 2023-10-18 15:17:03 +02:00
de1ed216f4 Feat: Add cloud plugin cost management to admin section (#76547)
* feat: add cost management to admin and put adaptive metrics and log volume under it

* test: fix applinks test

* chore: fix lint error

* remove "new" from feature toggle description

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-10-17 17:15:51 +01:00
3bf9f97a89 Cloudwatch: Revert feature toggle related to a new regions endpoint refactor (#76620)
Cloudwatch: revert feature toggle
2023-10-17 10:15:05 -04:00
91c18e93b9 Docs: Update docs for whatsnew for no basic role (#76681)
* update docs for whatsnew for no basic role

* Update docs/sources/whatsnew/whats-new-next/index.md

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

* linting

* added feature release date

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-17 16:48:29 +03:00
d271c19536 InfluxDB: Enable InfluxDB backend mode by default (#76641)
Enable influxdb backend mode by default
2023-10-17 13:50:15 +02:00
be5ba68132 Team LBAC: Add teamHeaders for datasource proxy requests (#76339)
* Add teamHeaders for datasource proxy requests

* adds validation for the teamHeaders

* added tests for applying teamHeaders

* remove previous implementation

* validation for header values being set to authproxy

* removed unnecessary checks

* newline

* Add middleware for injecting headers on the data source backend

* renamed feature toggle

* Get user teams from context

* Fix feature toggle name

* added test for validation of the auth headers and fixed evaluation to cover headers

* renaming of teamHeaders to teamHTTPHeaders

* use of header set for non-existing header and add for existing headers

* moves types into datasources

* fixed unchecked errors

* Refactor

* Add tests for data model

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Victor Cinaglia <victor@grafana.com>
2023-10-17 11:23:54 +01:00
e1838f92cf Docs: Templating: Replace __value.raw with __data.fields (#76408)
* adds information about __data.fields[0] which has replaced previously used __value.raw for getting both name and value of data

* my prettier ain't working correctly

* Update docs/sources/panels-visualizations/configure-data-links/index.md

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>

* lint

* Update docs/sources/panels-visualizations/configure-data-links/index.md

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

* Update docs/sources/panels-visualizations/configure-data-links/index.md

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

* Update docs/sources/panels-visualizations/configure-data-links/index.md

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

* note: tooltip mode affects __value.raw

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-17 11:59:00 +03:00
f5076d1868 Plugins: Add status_source label to plugin request metrics (#76236)
* Plugins: Chore: Renamed instrumentation middleware to metrics middleware

* Removed repeated logger attributes in middleware and contextual logger

* renamed loggerParams to logParams

* PR review suggestion

* Add pluginsInstrumentationStatusSource feature toggle

* Plugin error source prometheus metrics

* Add error_source to logs

* re-generate feature toggles

* fix compilation issues

* remove unwanted changes

* Removed logger middleware changes, implement error source using context

* Renamed pluginmeta to pluginrequestmeta, changed some method names

* Fix comment

* pluginrequestmeta.go -> plugin_request_meta.go

* Replaced plugin request meta with status source

* Add tests for pluginrequestmeta status source

* Fix potential nil pointer dereference in instrmentation middleware

* Add metrics middleware tests

* Sort imports in clienttest.go

* Add StatusSourceFromContext test

* Add error_source label to plugin_request_duration_seconds

* Re-generate feature flags

* lint

* Use StatusSourcePlugin by default

* re-generate feature flags
2023-10-17 10:27:45 +02:00
8c456ec24b Docs: Update new Browse Dashboards (#76567)
* Docs: Update new Browse Dashboards

* Apply suggestions from code review

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

* add date

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-16 15:24:22 +00:00