Kyle Brandt
674144c8e8
Prometheus: Update FrameType and make __name__ the field name ( #62694 )
...
These changes would make the response more in line with the dataplane contract, changes are under the feature toggle prometheusDataplane
2023-03-29 11:26:32 -04:00
Karl Persson
d4397fae25
AuthN: Add functions for fake ( #65522 )
2023-03-29 15:40:09 +02:00
Santiago
7b92849508
Alerting: Add CustomDetails field in PagerDuty contact point ( #64860 )
...
* Alerting: Add CustomDetails for PagerDuty
* fix default value for 'severity' from 'error' to 'critical'
* minimal docs for notifiers, specifying config for PagerDuty
* replace notifier -> integration
* replace notifier -> integration
2023-03-29 10:35:01 -03:00
Will Browne
7bbe255150
Plugins: Add file store abstraction for handling plugin files ( #65432 )
...
* add file store
* fix markdown fetch bug
* add markdown tests
* fix var name
2023-03-29 12:55:55 +02:00
Zoltán Bedi
562d8dba5d
CloudMonitoring: Update sdks to latest ( #65252 )
...
* Upgrade grafana-google-sdk-go to v0.1.0
* Upgrade @grafana/google-sdk to 0.1.1
* Update doc with provisioning example
* Remove unused types
* Use config types from the sdk
* Add metrics
2023-03-29 12:16:28 +02:00
Kyle Cunningham
d8ac2e97a0
SQL Engine: Revert session changes ( #64594 )
...
Revert session changes
2023-03-29 15:04:28 +07:00
Serge Zaitsev
46605a3791
Chore: Fix authinfo api after result field removal ( #65487 )
...
fix authinfo api after result field removal
2023-03-28 23:12:57 +03:00
Serge Zaitsev
a38f230d37
Chore: Remove result fields from login ( #65136 )
...
* remove result fields from login
* fix tests
* fix tests
* another shadowing
2023-03-28 20:32:21 +02: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
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
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
Emil Tullstedt
b210a39cb7
Dashboards: Evaluate provisioned dashboard titles in a backwards compatible way ( #65184 )
2023-03-28 13:24:19 +02:00
Gilles De Mey
ed82f961dd
Email: Mark HTML comments as "safe" in email templates ( #64546 )
2023-03-28 13:05:21 +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
Yuri Tseretyan
ec4152c7e5
Alerting: Remove dependency on secrets in definitions package ( #65391 )
2023-03-27 16:35:54 -04: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
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
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
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
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
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
ismail simsek
3cfb7ac0dd
Chore: Remove expr imports ( #64543 )
...
* Remove expr imports
* Add comment
2023-03-23 21:55:54 +01:00
Andres Martinez Gotor
10adb1ff66
Chore: Split usagestats service ( #65191 )
2023-03-23 19:19:19 +02:00
Piotr Erdanowski
d5dacf5cd5
Cloudwatch: Add MeteredIOBytes metric for EFS ( #64793 )
2023-03-23 12:14:32 -04:00
Ryan McKinley
5870439026
Angular: Add feature toggle to disable angular at runtime ( #65245 )
2023-03-23 17:43:45 +02:00
Karl Persson
382b24742a
Auth: Add feature flag to move token rotation to client ( #65060 )
...
* FeatureToggle: Add toggle to use a new way of rotating tokens
* API: Add endpoints to perform token rotation, one endpoint for api request and one endpoint for redirectsd
* Auth: Aling not authorized handling between auth middleware and access
control middleware
* API: add utility function to get redirect for login
* API: Handle token rotation redirect for login page
* Frontend: Add job scheduling for token rotation and make call to token rotation as fallback in retry request
* ContextHandler: Prevent in-request rotation if feature flag is enabled and check if token needs to be rotated
* AuthN: Prevent in-request rotation if feature flag is enabled and check if token needs to be rotated
* Cookies: Add option NotHttpOnly
* AuthToken: Add helper function to get next rotation time and another function to check if token need to be rotated
* AuthN: Add function to delete session cookie and set expiry cookie
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-03-23 14:39:04 +01:00
Ivana Huckova
66e4b12032
Elasticsearch: Fix using of interval value in histogram ( #65201 )
...
* Elasticsearch: Remove GetMinInterval method that is not used anymore
* Elasticsearch: Fix using of interval value in histogram
* Revert "Elasticsearch: Remove GetMinInterval method that is not used anymore"
This reverts commit a157003902 .
2023-03-23 09:36:50 +01:00
Ivana Huckova
e8bb894a02
Elasticsearch: Remove GetMinInterval method that is not used anymore ( #65203 )
2023-03-23 09:36:37 +01:00
Ryan McKinley
baf5a1d141
Angular: Rename autoMigrateGraphPanels feature flag to autoMigrateOldPanels ( #65243 )
2023-03-22 21:02:36 -07:00
Ryan McKinley
7835aacc8f
Schema: Remove exclusion for timeseries and update imports ( #65242 )
2023-03-23 02:14:54 +02:00
Serge Zaitsev
51fdf37faa
Chore: Remove result field from loginattempt ( #65117 )
...
remove result field from loginattempt
2023-03-22 21:25:29 +01:00
Serge Zaitsev
e1d99365c1
Chore: Remove result fields from thumbs ( #65096 )
...
remove result fields from thumbs
2023-03-22 21:25:07 +01:00
Jeff Levin
d561920147
Context: add better error message when it panics loading a template ( #65219 )
...
add better error message about building frontend assets when the web server panics loading a template
2023-03-22 11:40:00 -08:00
Ryan McKinley
f96637b5fc
Live: Remove (alpha) ability to configure live pipelines ( #65138 )
2023-03-22 20:09:44 +02:00
Tania
0409cfd116
Docs: Add Default column to generated schema docs ( #64550 )
...
Docs: Add column to generated schema docs
2023-03-22 18:42:28 +01:00
Eric Leijonmarck
3cd952b8ba
Auth: Fix orgrole picker disabled if isSynced user ( #64033 )
...
* fix: disable orgrolepicker if externaluser is synced
* add disable to role picker
* just took me 2 hours to center the icon
* wip
* fix: check externallySyncedUser for API call
* remove check from store
* add: tests
* refactor authproxy and made tests run
* add: feature toggle
* set feature toggle for tests
* add: IsProviderEnabled
* refactor: featuretoggle name
* IsProviderEnabled tests
* add specific tests for isProviderEnabled
* fix: org_user tests
* add: owner to featuretoggle
* add missing authlabels
* remove fmt
* feature toggle
* change config
* add test for a different authmodule
* test refactor
* gen feature toggle again
* fix basic auth user able to change the org role
* test for basic auth role
* make err.base to error
* lowered lvl of log and input mesg
2023-03-22 17:41:59 +00:00
Ivana Huckova
ae0f9fc44f
Elasticsearch: Fix processing of response with multiple group by for alerting ( #65165 )
...
* Elasticsearch: Fix processing of response with multiple group by on backend
* Remove unused param from createFields
* Switch comments
2023-03-22 18:53:09 +02:00
Selene
b3d0c39f08
Chore: Update times in dashboards ( #65179 )
...
Update times in dashboards
2023-03-22 15:57:44 +01:00
Joao Silva
14607e78d1
Admin: Change permissions to /admin page so org admins don't get redirected ( #65098 )
2023-03-22 15:35:17 +01:00
Arve Knudsen
f7ee42d871
Prometheus: Reduce memory allocations in QueryData.processExemplars ( #63373 )
...
* tsdb/prometheus/querydata: Reduce memory allocations in QueryData.processExemplars
---------
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2023-03-22 10:59:39 +01:00
Gábor Farkas
6d5242e54c
elasticsearch: backend: better timestamp parsing ( #64681 )
...
* elasticsearch: backend: better timestamp parsing
* refactor
2023-03-22 09:52:55 +01:00
Ivana Huckova
0740d4e911
Elasticsearch: Fix top metrics with terms in backend ( #65063 )
...
* Elasticsearch: Fix top metrics with terms in backend
* Refactor to remove cyclomatic complexity
2023-03-22 09:36:43 +01:00
Gabriel MABILLE
895d4cc60b
Prometheus Metrics: Add missing stat_total_teams metric ( #65133 )
...
* Prometheus Metrics: Add missing stat_total_teams metric
2023-03-22 09:14:43 +01:00