Torkel Ödegaard
b7b608418d
Templating: Introduce macros to simplify and optimize some scopedVars ( #65317 )
...
* Templating: Introduce macros to simplify and optimize some scopedVars
* Fixing tests
* fix test
* minor fix
* refactoring so macros work with formatting
* remove breaking change and keep current inconsistency
* Rename valueIndex to rowIndex
* Minor fixes
* Added test dashboard
* Added tags to dashboard
* Update
* Added test to check it returns match
* Update
* Fixed dashboard
* fix
2023-03-28 19:22:34 +02:00
mallettjared
2b73f8cfd5
Remove redundant content or delete this page entirely ( #65446 )
...
* Remove redundant content or delete this page entirely
The top of the page has redundant content pitching Grafana Cloud.
"You can also configure the MS SQL Server data source on a Grafana Cloud instance without having to host Grafana yourself." Which is directly under the highlighted area explaining the same thing. The same content is floating in the right side of all the pages as well.
Removed "> **Note:** You must install Grafana 5.1+ in order to use the integrated MS SQL data source."
Wait, why does this page exist if the data source page has the relevant updated content? https://grafana.com/docs/grafana/latest/datasources/mssql/
* makes prettier
---------
Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
2023-03-28 12:06:42 -05:00
Kristian Bremberg
420aeb3bec
Sanitize: do not escape forward slash ( #65416 )
2023-03-28 12:42:53 -04:00
Polina Boneva
09ff5ab522
Dashboard: Empty dashboard page adapt font size to design ( #65466 )
...
adapt fontsizes to design
2023-03-28 19:34:41 +03:00
ismail simsek
0aee7338ad
InfluxDB: Fix sending retention policy with InfluxQL queries ( #63820 )
...
* Send retention policy if that is specified
* Define the type
* Update default retention policy name
* Update unit tests
* fix unit tests
* fix unit tests again
* Load retention policies at first
* Fix tests
* Fix Editor tests
* Remove unused code
* A simpler approach
* Even simpler
* Even simpler
2023-03-28 19:20:15 +03:00
Torkel Ödegaard
273e05a9a2
MegaMenu: Fixes mega menu showing scroll indicator when it shouldn't ( #65452 )
...
* MegaMenu: Fixes mega menu showing scroll indicator when it shouldn't
* fixing css
2023-03-28 17:47:49 +02:00
Ivana Huckova
aa23758a96
Prometheus: Use $__rate_interval for rate queries generated by metric browser ( #65386 )
...
Prometheus: Fix using of rate interval for query from metric browser
2023-03-28 16:36:09 +02:00
Gareth Dawson
1f77c8c777
Loki: update height of conflicting filters ( #65451 )
...
* fix height of elements
* Update public/app/plugins/datasource/prometheus/querybuilder/shared/OperationEditor.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* run prittier to pass drone
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-03-28 15:32:16 +01:00
Horst Gutmann
4ab3bd6f7e
CI: Allow overwriting of existing GitHub release assets ( #65127 )
...
* CI: Allow overwriting of existing GitHub release assets
This closes #63698
* Use c for *cli.Context in publishgithub.go
2023-03-28 09:19:46 -05:00
Piotr Jamróz
b11186f946
Templating: Optionally save interpolated expressions when replacing variables in a string ( #65411 )
...
* Testing a refactor
* update
* Update interface, test interoplations map
* Refactoring
* Add more explicit comment about new behavior
* Update packages/grafana-runtime/src/services/templateSrv.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
---------
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-03-28 16:19:27 +02:00
Gábor Farkas
0cff917f2a
Elasticsearch: Removed reference to obsolete esVersion value ( #65415 )
...
* elastic: removed reference to obsolete esVersion value
* removed unused code
* cleaned up tests
2023-03-28 17:04:56 +03:00
Alexander Weaver
de1637afe5
Alerting: Add alert instance labels to Loki log lines in addition to stream labels ( #65403 )
...
Add instance labels to log line
2023-03-28 08:57:51 -05:00
Alexander Weaver
dd04757fc9
Alerting: Add "backend" label to state history writes metrics ( #65395 )
...
* Add backend label to state history writes metrics
* Update test expectations
2023-03-28 08:49:51 -05:00
Andrew Hackmann
f0ddf900c0
cloud monitor is returning floats and we are trying to parse as strings ( #65407 )
2023-03-28 13:47:28 +00:00
Eric Leijonmarck
c8252f9987
Team sync: Fix apply query string instead of param ( #65433 )
...
* fix: apply query string instead of param
* Update public/app/features/teams/state/actions.ts
2023-03-28 14:40:51 +01:00
Laura Benz
2c978fb0f0
refactor: add return value for logsSample ( #65357 )
...
* refactor: add return value for logsSample
* refactor: modify test for new use case
2023-03-28 15:36:47 +02:00
Gilles De Mey
f68fd83951
Alerting: Use displayNameFromDS if available in preview ( #65342 )
2023-03-28 13:58:21 +02:00
Serge Zaitsev
b2ab57d14b
Chore: Remove result field from notifications ( #65170 )
...
* remove result field from notifications
* fix test
2023-03-28 13:44:15 +02:00
Grafana I18n Bot
352967f092
I18n: Crowdin sync ( #65437 )
...
* New translations grafana.json (French)
* New translations grafana.json (Spanish)
* New translations grafana.json (German)
* New translations grafana.json (Chinese Simplified)
2023-03-28 12:25:07 +01:00
Emil Tullstedt
b210a39cb7
Dashboards: Evaluate provisioned dashboard titles in a backwards compatible way ( #65184 )
2023-03-28 13:24:19 +02:00
Sven Grossmann
3335d46c5f
Theme: Fix wrong code segment in theme.md ( #62488 )
...
* fix wrong markdown
* fix prettier
2023-03-28 12:18:50 +01:00
Gilles De Mey
ed82f961dd
Email: Mark HTML comments as "safe" in email templates ( #64546 )
2023-03-28 13:05:21 +02:00
Laura Fernández
48f5825499
DateTimePicker: Can now select time correctly ( #65428 )
2023-03-28 12:45:56 +02:00
Polina Boneva
221c5efedc
Dashboard: Empty/No Panels dashboard with a new design ( #65161 )
...
* Empty Dashboard state has its own CTA items and its own separate box to choose a library panel to create
* show empty dashboard screen if no panels
* start page for empty dashboard
* add feature flag for empty dashboard redesign
* only show empty dashboard redesign if FF
2023-03-28 12:42:23 +03:00
Giuseppe Guerra
a89202eab2
Plugins: Improve instrumentation by adding metrics and tracing ( #61035 )
...
* WIP: Plugins tracing
* Trace ID middleware
* Add prometheus metrics and tracing to plugins updater
* Add TODOs
* Add instrumented http client
* Add tracing to grafana update checker
* Goimports
* Moved plugins tracing to middleware
* goimports, fix tests
* Removed X-Trace-Id header
* Fix comment in NewTracingHeaderMiddleware
* Add metrics to instrumented http client
* Add instrumented http client options
* Removed unused function
* Switch to contextual logger
* Refactoring, fix tests
* Moved InstrumentedHTTPClient and PrometheusMetrics to their own package
* Tracing middleware: handle errors
* Report span status codes when recording errors
* Add tests for tracing middleware
* Moved fakeSpan and fakeTracer to pkg/infra/tracing
* Add TestHTTPClientTracing
* Lint
* Changes after PR review
* Tests: Made "ended" in FakeSpan private, allow calling End only once
* Testing: panic in FakeSpan if span already ended
* Refactoring: Simplify Grafana updater checks
* Refactoring: Simplify plugins updater error checks and logs
* Fix wrong call to checkForUpdates -> instrumentedCheckForUpdates
* Tests: Fix wrong call to checkForUpdates -> instrumentedCheckForUpdates
* Log update checks duration, use Info log level for check succeeded logs
* Add plugin context span attributes in tracing_middleware
* Refactor prometheus metrics as httpclient middleware
* Fix call to ProvidePluginsService in plugins_test.go
* Propagate context to update checker outgoing http requests
* Plugin client tracing middleware: Removed operation name in status
* Fix tests
* Goimports tracing_middleware.go
* Goimports
* Fix imports
* Changed span name to plugins client middleware
* Add span name assertion in TestTracingMiddleware
* Removed Prometheus metrics middleware from grafana and plugins updatechecker
* Add span attributes for ds name, type, uid, panel and dashboard ids
* Fix http header reading in tracing middlewares
* Use contexthandler.FromContext, add X-Query-Group-Id
* Add test for RunStream
* Fix imports
* Changes from PR review
* TestTracingMiddleware: Changed assert to require for didPanic assertion
* Lint
* Fix imports
2023-03-28 11:01:06 +02:00
Serge Zaitsev
0beb768427
Chore: Remove result fields from ngalert ( #65410 )
...
* remove result fields from ngalert
* remove duplicate imports
2023-03-28 10:34:35 +02:00
Alexa V
42b58fbca6
[Panel Header - Fullstory]: Make sure new menu's are findable in fullstory ( #65167 )
2023-03-28 10:20:35 +02:00
Gábor Farkas
d73fdcfc11
Elasticsearch: Detect Elasticsearch version ( #63341 )
...
* elasticsearch: detect database version
* more test-friendly code
2023-03-28 06:59:39 +00:00
Joan López de la Franca Beltran
f9abd8608e
Docs: Add 'tenant_id' for Loki clients (Auditing & Analytics) ( #63098 )
...
* Docs: Add 'tenant_id' for Loki clients (Auditing & Analytics)
* Apply suggestions from code review
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2023-03-27 22:44:16 +02:00
Yuri Tseretyan
ec4152c7e5
Alerting: Remove dependency on secrets in definitions package ( #65391 )
2023-03-27 16:35:54 -04:00
Isabel
c94760e844
docs: nav updates for administration & licensing ( #65400 )
...
* navigation related updates text only
* fixed styling
2023-03-27 13:04:27 -07:00
Dave Henderson
c0b5d2dfaa
Tracing: Support multiple OTel propagators ( #61199 )
...
* tracing: Support multiple OTel propagators
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
* tracing: add TraceIDString method to fix up tests
This method will be useful elsewhere if we want to log the trace ID.
* improve propagation docs
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* doc style fix
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
* Use tracing.TraceIDFromContext instead of adding TraceIDString method
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
---------
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Bryan Boreham <bjboreham@gmail.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-03-27 14:56:24 -04:00
Adela Almasan
a8adfe83b5
Canvas: Update metric value text for no data ( #65372 )
2023-03-27 12:26:34 -05:00
Torkel Ödegaard
f43ef18732
Revert "Explore: Show log line if there is an interpolated link" ( #65315 )
...
Revert "Explore: Show log line if there is an interpolated link (#62926 )"
This reverts commit aa857e2a4f
.
2023-03-27 19:19:42 +02:00
Adela Almasan
21ede347cb
Canvas: Remove deleted connections from source ( #65321 )
2023-03-27 19:51:56 +03:00
Will Browne
1387fec51d
Plugins: Markdown fetch retry with lowercase ( #65384 )
...
* retry with lowercase
* undo incorrect err check
* re-add defer to close file
* fix test
2023-03-27 19:44:06 +03:00
Ashley Harrison
a37a80bc56
Chore: update codeowners with new team name ( #65385 )
...
update codeowners with new team name
2023-03-27 19:35:23 +03:00
Stephanie Hingtgen
fb5a7acc73
Plugins: Add cloudwatch support with the secure socks proxy ( #65303 )
...
* Plugins: enable secure socks proxy on cloudwatch with workaround
2023-03-27 10:00:37 -06:00
Yuri Tseretyan
52a0f59706
Alerting: introduce AlertQuery in definitions package ( #63825 )
...
* copy AlertQuery from ngmodels to the definition package
* replaces usages of ngmodels.AlertQuery in API models
* create a converter between models of AlertQuery
---------
Co-authored-by: Alex Moreno <alexander.moreno@grafana.com>
2023-03-27 11:55:13 -04:00
Ryan McKinley
36e8ca7f13
Dashboards: Unify angular auto-migration code ( #63915 )
2023-03-27 18:11:45 +03:00
Ashley Harrison
f948482386
Navigation: Sanitize homeUrl ( #65293 )
...
sanitize homeUrl
2023-03-27 15:27:52 +01:00
Ivana Huckova
f3da91f53f
Elasticsearch: Run Explore queries trough data source backend ( #65339 )
...
Elasticsearch: Execute Explore queries trough backend
2023-03-27 15:52:27 +02:00
David Radcliffe
cb68b1e0d1
Dashboard: Add value format for requests per minute ( #62258 )
...
add requests/min as value format option
2023-03-27 16:37:40 +03:00
Sonia Aguilar
54d7e95be1
Alerting: Fix wrong text in step4 ( #65279 )
...
* Fix wrong text in step4
* Add link to documentation for annotations in grafana alerts and cloud alerts
2023-03-27 15:28:20 +02:00
Mihaela
2ac7d0455c
Limit issue-add-to-parent-project to only epics ( #65260 )
2023-03-27 12:59:04 +01:00
Bryan Boreham
7731a4d6af
Tracing: Add more detail to HTTP Outgoing Request ( #64757 )
...
Add more detail to HTTP Outgoing Request.
As events rather than sub-spans, to save cluttering the view.
2023-03-27 13:04:43 +02:00
Dimitris Sotirakis
89d642e001
CI: Cleanup unnecessary grabpl
dependencies ( #65330 )
...
* Remove unnecessary grabpl dependencies
* Revert test-frontend change
2023-03-27 12:55:45 +02:00
Bryan Boreham
f4a5f91496
Database: Don't sleep 10ms before every request ( #64832 )
...
Previously every DB operation would wait 10ms before even trying.
Now we try first, and defer creating the ticker until we need it.
2023-03-27 11:17:05 +02:00
Will Browne
31d6416157
Plugins: Migrate licensing and access control to pkg/services/pluginsintegration package ( #65258 )
...
* migrate licensing + access control
* update package name
2023-03-27 11:15:37 +02:00
Dimitris Sotirakis
3b00d2c273
CI: Remove grabpl
dependency from publish-packages
steps ( #65329 )
...
Remove grabpl dependency from publish packages
2023-03-27 11:03:49 +03:00