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
mikkancso
4e3e58656e
Connections: Turn on feature toggle by default ( #64885 )
...
* turn on dataConnectionsConsole by default
* change connection feature state to stable
* generate feature toggle files
* increase error threshold for pa11y
2023-03-22 08:25:35 +01:00
Alexander Weaver
07368dec74
Alerting: Fix attachment of external labels to Loki state history log streams ( #65140 )
...
Fix attachment of external labels, add tests
2023-03-21 18:00:59 -05:00
Kristina
702ec59cc4
Add quota setting for correlations ( #65076 )
...
* Add quota setting for correlations
* Fix linter
2023-03-21 15:27:25 -05:00
Alexander Weaver
bf54f2672e
Alerting: Switch to snappy-compressed-protobuf for outgoing push requests to Loki ( #65077 )
...
* Encode with snappy, always
* JSON encoder type
* Headers
* Copy labels formatter from promtail
* Implement snappy-proto encoding
* Create encoder interface, test both encoders, choose snappy-proto by default
* Make encoder configurable at the LokiCfg level
* Export both encoders
* Touch up comment and tests
* Drop unnecessary conversions after move to plain strings to appease linter
2023-03-21 13:38:42 -05:00
Alexander Weaver
cc7e5ce62e
Alerting: Fix ambiguous handling of equals in labels when bucketing Loki state history streams ( #65013 )
...
* Use JSON instead of data.Labels string format as label repr
* Drop debug log line
2023-03-21 12:33:27 -05:00
Andre Pereira
bfb0dde4a8
Tempo: Search using TraceQL improvements ( #64616 )
...
* Added scope to filter
* Intrinsic fields don't have scope
* Consistent plus button placement next to the last tag. Changed All Scopes to "unscoped"
* Added validation to duration fields
* Disable options load when dropdown is opened
* Use focused list of operators when all values are of type string or int/float
* Fixed and added tests
* Fix another test
* Better way to prevent duplicate and redundant backend requests when a filter updates
2023-03-21 15:59:16 +00:00