Commit Graph

45530 Commits

Author SHA1 Message Date
Nathan Marrs
35b48066ca
Stat: Disable wide layout (#75556)
update stat panel to disable the wide layout
2023-10-03 11:10:51 -07:00
Priyanshu Raj
0ba5dad316
Docs: Fix link to Developing plugins guide (#75795) 2023-10-03 13:03:15 -05:00
Priyanshu Raj
949164232e
Docs: Update grafana configuration documentation (#75717)
* docs: Update grafana configuration documentation

* Update sentence

* convert to multiline
2023-10-03 12:05:19 -05:00
Josh Hunt
33ff164339
Docs: Reword default dashboard permissions explaination (#75838)
* Docs: Reword default dashboard permissions explaination

* Update docs/sources/administration/roles-and-permissions/_index.md

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

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-03 19:00:00 +03:00
lean.dev
091f54bf20
Chore: Bump grafana-plugin-sdk-go to v0.179.0 (#75886) 2023-10-03 12:54:17 -03:00
Nathan Marrs
a417402c77
Legend: Fix desc sort so NaNs are not display first (#75685)
do not put NaNs as first in legend desc sort

Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-03 08:50:57 -07:00
Galen Kistler
5b63cdb5b0
Loki: Cache extracted labels (#75842)
* add simple cache to extracted label values in completion provider
2023-10-03 10:37:32 -05:00
Juan Cabanas
6cfe6d8688
Panel: omit query API call when the panel is a row (#75847) 2023-10-03 12:36:04 -03:00
Ivan Ortega Alba
6aa27607ae
DataSourcePicker: Disable autocomplete for the search input (#75898) 2023-10-03 18:06:27 +03:00
shaviz2000
2b83d7a168
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>
2023-10-03 09:57:53 -05:00
Horst Gutmann
965c1de1f2
Fix: visualization vs visualisation in feature description (#75895) 2023-10-03 17:43:27 +03:00
Jack Westbrook
cc590599de
Chore: Bump storybook 7.4.5 (#75652)
* Wip

* chore(grafana-ui): bump storybook to 7.4.5 and patch blocks
2023-10-03 16:35:29 +02:00
Kristina
4b3d63dcdc
Correlations: Add an editor in Explore (#73315)
* Start adding correlations editor mode

* Add selector for merge conflict resolution

* Enable saving

* Build out new corelation helper component

* flesh out save with label/description, change color

* Have breadcrumb exit correlation editor mode

* Add extension property to show/hide, use it for correlations

* Bring in feature toggle

* Remove unnecessary param

* Cleanup

* Parse logs json

* Work on correlation edit mode bar

* Tinker with a top element for the editor mode

* Handle various explore state changes with correlations editor mode

* WIP - add unsaved changes modal

* Have correlation bar always rendered, sometimes hidden

* Add various prompt modals

* Clear correlations data on mode bar unmount, only use not left pane changes to count as dirty

* Move special logic to explore

* Remove all shouldShow logic from plugin extensions

* remove grafana data changes

* WIP - clean up correlations state

* Interpolate data before sending to onclick

* Override outline button coloring to account for dark background

* More cleanup, more color tweaking

* Prettier formatting, change state to refer to editor

* Fix tests

* More state change tweaks

* ensure correlation save ability, change correlation editor state vars

* fix import

* Remove independent selector for editorMode, work close pane into editor exit flow

* Add change datasource post action

* Clean up based on PR feedback, handle closing left panel with helper better

* Remove breadcrumb additions, add section and better ID to cmd palette action

* Interpolate query results if it is ran with a helper with vars

* Pass the datasource query along with the correlate link to ensure the datasource unique ID requirement passes

* Use different onmount function to capture state of panes at time of close instead of time of mount

* Fix node graph’s datalink not working

* Actually commit the fix to saving

* Fix saving correlations with mixed datasource to use the first query correlation UID

* Add tracking

* Use query datasources in mixed scenario, move exit tracking to click handler

* Add correlations to a place where both can be used in the correlations editor

* Be more selective on when we await the datasource get

* Fix CSS to use objects

* Update betterer

* Add test around new decorator functionality

* Add tests for decorate with correlations

* Some reorganization and a few tweaks based on feedback

* Move dirty state change to state function and out of component

* Change the verbiage around a little

* Various suggestions from Gio

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

* More small Gio-related tweaks

* Tie helper data to datasource - clear it out when the datasource changes

* Missed another Gio tweak

* Fix linter error

* Only clear helper data on left pane changes

* Add height offset for correlation editor bar so it doesn’t scroll off page

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-10-03 09:28:29 -05:00
Abhi Shandilya
6150d1370c
i18n: dashboard settings (#75854)
* feat: i18n dashboard settings

* run i18n extract

* rename titles and use vars

* json editor title

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-10-03 15:12:44 +01:00
Fabrizio
e8a708c16e
Tempo: Highlight errors in TraceQL query (#74697)
* Highlight errors

* Chores

* Refactor

* Address PR comments

* Refactoring

* Fix

* Handle another case

* Handle more use cases
2023-10-03 15:07:42 +01:00
Jack Westbrook
5108430aec
Datasources: Filter plugin errors to only show datasource plugins (#74339)
* feat(plugins): allow filtering of plugin errors by plugin type

* refactor(plugins): migrate PluginsErrorsInfo component to use Alert component

* chore(plugins): remove redundant d3 import

* feat(datasources): filter plugin errors by plugin type

* refactor(plugins): pass plugin.type from selector rather than guess from pluginId

* refactor(plugins): move filtering to selector
2023-10-03 15:54:49 +02:00
Haris Rozajac
36bb03284d
Fix sticky header issue (#75710)
* Fix sticky header issue

* Take ExploreToolbar higher in the DOM tree so the stickiness is not needed

* Remove z-index

* Remove sticky styles
2023-10-03 07:10:59 -06:00
Oscar Kilhed
e0919a340e
Transformations: Extended support for variables in filter by name (#75734)
* Extend support for variables in filter by name

* Simlpify help and include variable support

* Simplify regexp

* Remove id that was left from an erlier implementation attempt

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.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>

* Improve variable name and fix react warning

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-03 15:06:08 +02:00
Sonia Aguilar
1456b26075
Alerting: Fix being redirected to list view when clicking Save rule button (#75510)
* Fix: dont allow 'Save rule' button and let 'Save rule and exit' in case of new rule

* Fix tests
2023-10-03 14:55:42 +02:00
Marcus Efraimsson
e4c1a7a141
Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
Jack Baldry
4432c4c75c
Fix developer links and newly discovered spelling errors (#75875)
* Fix developer links

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

* Fix newly discovered spelling errors

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

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-10-03 13:49:27 +01:00
otilor
3c7c608b5b
i18n: Mark up GeneralSettings for translations (#75827)
* add preliminary i18n

* translate delete btn

* update keys for i18n

* update locales

* add translation

* update locales

* update translation

* add new translation

* add new translation keys

* add new translation

* update keys

* update key structure

* translate auto-refresh

* add new translations for label and description

* Update public/app/features/dashboard/components/DashboardSettings/AutoRefreshIntervals.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DeleteDashboard/DeleteDashboardButton.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* update internationalization key

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* update internationalization key

* Update public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* update label

* fix style

---------

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
2023-10-03 13:15:11 +01:00
Ashley Harrison
18b237879d
DockedMegaMenu: Refactor and rename to simplify (#75872)
* tidy up some styles

* remove NavBarMenuItemWrapper + consolidate components

* lots of renaming

* use object syntax in FeatureHighlight

* fix a couple of missing find+replace

* adjust li positioning

* fix text truncation

* bit more tidy up

* refactor indent into it's own component

* memoize styles in Indent
2023-10-03 13:03:27 +01:00
Gábor Farkas
523d1b46d4
sql: numeric inputs: use it's own simple implementation (#74904)
* sql: numeric inputs: use it's own simple implementation

* simpler approach

* Update connection limit styles (#75226)

* lint fixes

* replace ConfigSection with ConfigSubSection

---------

Co-authored-by: Gareth Dawson <email@garethdawson.xyz>
Co-authored-by: Gareth Dawson <gwdawson.work@gmail.com>
2023-10-03 13:54:51 +02:00
Jack Westbrook
30584dbd8b
Chore: Remove systemjs from renovate ignore (#75646)
chore(renovate): remove systemjs from ignore list and fix storybook patterns
2023-10-03 12:32:37 +02:00
Carl Bergquist
3c8cea0764
instrumentation: rename team to grafana_team to improve alert routing. (#75860)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2023-10-03 12:25:01 +02:00
Giuseppe Guerra
cc9a4aa203
Plugins: Logger middleware: Fix wrong endpoint name for CheckHealth (#75873)
Plugins: Logger middleware: fix wrong endpoint name for CheckHealth
2023-10-03 13:13:06 +03:00
Jack Westbrook
353df04779
Chore: Update Graphql to 16.8.1 (#75636)
chore(npm): update graphql to 16.8.1
2023-10-03 11:04:34 +02:00
Torkel Ödegaard
9201c47e59
DashboardScene: Map timezone and fiscal year to scene model and back (#75715)
* DashboardScene: Map timezone and fiscal year to scene model and back

* weekstart

* update scenes
2023-10-03 11:03:53 +02:00
Krishna Dhakal
a2088c0fb0
i18n: Mark up OpenLibraryPanelModal for translations (#75619)
* draft markup

* locale addition

* revision on the code

* second revision

* final changes after review

* body layout

* body layout

* add missed text
2023-10-03 09:33:08 +01:00
Karl Persson
770b52b02b
DatasourceProxy: Fix spelling (#75859)
* Fix spelling

---------

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2023-10-03 10:23:23 +02:00
Esteban Beltran
9747cdd7d1
Sandbox: Update to latest near membrane version ^0.13.0 (#75605)
* Sandbox: Update to latest near membrane version ^0.13.0

* Use exact version

* Replace throw with reject

* Add nera membrane to renovate skip list
2023-10-03 10:22:17 +02:00
Jack Baldry
9c295ea072
Add front matter that informs Hugo that the Grafana content is versioned (#74259)
This is necessary to allow version inference in CI builds.
Shortcodes like `docs/reference` and `docs/shared` use version inference to avoid the writer having to hardcode specific versions or use relative paths within the documentation set.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-10-03 09:14:06 +01:00
Horst Gutmann
76c6bf88be
CI: Run publish-kinds workflows only on the main repository (#75855) 2023-10-03 10:13:42 +03:00
Esteban Beltran
677a2ad4d8
Sandbox: Patch array vector prototype methods inside the sandbox (#75835) 2023-10-03 09:02:55 +02:00
Adela Almasan
0c404a4cd9
Tooltip: VizTooltip components (#75794) 2023-10-03 06:10:22 +03:00
Nathan Marrs
a7cedee7eb
Chore: lint files in azuremonitor datasource plugin (#75853) 2023-10-02 17:04:27 -07:00
Andreas Christou
03585279e9
Update Azure docs (#75085)
* Update Azure docs

* Add ref to query editor
2023-10-02 17:29:31 +01:00
Joseph Perez
0a298693a2
Docs: Minor link fixes or enhancements related to plugin docs (#75839)
Minor link fixes or enhancements
2023-10-02 09:23:52 -07:00
Virginia Cepeda
9076904173
Alerting: Show Insights only for cloud users (#75676)
* Add functions to detect build edition and env

* Prevent showing insights for OSS

* Use common functions for Declare Incident button

* Address review comments
2023-10-02 13:06:30 -03:00
Yuri Tseretyan
027bd9356f
Alerting: Rule Modify Export APIs (#75322)
* extend RuleStore interface to get namespace by UID
* add new export API endpoints
* implement request handlers
* update authorization and wire handlers to paths
* add folder error matchers to errorToResponse
* add tests for export methods
2023-10-02 11:47:59 -04:00
gotjosh
e877174501
Alerting: Expose metrics for Alertmanager Alerts - grafana_alerting_alertmanager_alerts (#75802)
* Alerting: Expose metrics for Alertmanager Alerts

In Grafana, the alert evaluation and alert delivery are combined. We're always used a metric named `grafana_alerting_alerts` to get a sense of what are the alerts that are currently firing (these come from the evaluation side) and opted to not map the alertmanager alerts metric directly.

I think it's important that we make a disction between alerts that happen at evaluation vs alerts that are received for delivery by the internal Alertmanager as we have options to skip the delivery of these alerts to the internal alertmanager altogether.
2023-10-02 16:36:23 +01:00
George Robinson
ed7d29f2b9
Alerting: Migrate old alerting templates to Go templates (#62911)
* Migrate old alerting templates to use $labels

* Fix imports

* Add test coverage and separate rewriting to Go templates

* Fix lint

* Check for additional closing braces

* Add logging of invalid message templates

* Fix tests

* Small fixes

* Update comments

* Panic on empty token

* Use logtest.Fake

* Fix lint

* Allow for spaces in variable names by not tokenizing spaces

* Add template function to deduplicate Labels in a Value map

* Fix behavior of mapLookupString

* Reference deduplicated labels in migrated message template

* Fix behavior of deduplicateLabelsFunc

* Don't create variable for parent logger

* Add more tests for deduplicateLabelsFunc

* Remove unused function

* Apply suggestions from code review

Co-authored by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>

* Give label val merge function better name

* Extract template migration and escape literal tokens

* Consolidate + simplify template migration

---------

Co-authored-by: William Wernert <william.wernert@grafana.com>
2023-10-02 11:25:33 -04:00
Karl Persson
88347774fb
DatasourceProxy: Set feature field (#75830)
Set feature feild
2023-10-02 18:06:22 +03:00
Ashley Harrison
e9555d727a
Drawer: remove wrapping div preventing Drawer from scrolling properly (#75823)
remove wrapping div prevent drawer from scrolling properly
2023-10-02 16:01:28 +01:00
Torkel Ödegaard
286dc333c5
DataSourceWithBackend: Fix adhoc filters not passed to applyTemplateVariables (#75812) 2023-10-02 16:42:54 +02:00
Esteban Beltran
36ed4ce291
Plugins: Fix regexes in metrics tracking and remove plugin guess logic (#75720) 2023-10-02 16:15:37 +02:00
Ivan Ortega Alba
72c413025d
Auto-generate: Error handling and monitoring (#75468)
* Error handling for the hook to expose `error` as part of the state
* Monitor errors at the hook level to catch common OpenAI issues
* Allow retry when the request fails
* Optimize onGenerate number of calls
* Re-enable component tests
2023-10-02 16:04:12 +02:00
Agnès Toulet
23c61fa785
Chore: Replace gofpdf (#75805)
* Chore: Replace gofpdf

* Update main.go

* Add code owner

* update gofpdf
2023-10-02 15:32:35 +02:00
Jack Baldry
5e21e7019c
Fix some links in data sources documentation (#75813)
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-10-02 14:17:56 +01:00