Ivana Huckova
f8a1e7d500
Loki: Decouple from Prometheus parsingUtils ( #79460 )
...
Loki: Remove dependency on parsingUtils
2023-12-15 17:15:20 +01:00
Ivana Huckova
953d0d4c70
Loki: Remove imported test utility function from Prometheus ( #78901 )
...
Loki: Remove import from prometheus test utility
2023-12-12 12:54:56 +01:00
Ivana Huckova
ed86583107
Loki: Decouple from Prometheus operationUtils ( #78830 )
...
* Loki: Decouple from Prometheus operationUtils
* Update comments
2023-12-12 11:44:35 +01:00
Ivana Huckova
b3deef8f4b
Loki: RemoveTimeSrv dependency ( #78642 )
...
* Loki: Remove dependency
* Update loadUnwrapOptions
2023-11-29 19:29:15 +02:00
Ivana Huckova
8a7eb4b484
Loki: Refactor template variable logic and remove reliance on timeSrv ( #78586 )
...
* Loki: Refactor variables support to reuse loic
* Remove redundant methods
* Make parseStringToVariableQuery private
2023-11-24 12:52:29 +01:00
Ivana Huckova and Matias Chomicki
9306020426
Loki: Update getStats logic and remove reliance on timeSrv ( #78603 )
...
* Loki: For stats queries, use timeRange provided by query editor
* Add comment
* Update public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Rebane variable
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-11-24 11:38:36 +01:00
Ivana Huckova
0893fa1e84
Loki: Fix trailing comma in renderers for json, logfmt, keep and drop operations ( #78594 )
...
* Loki: Fix renderers for json, logfmt, keep and drop pipe operations
* Make spacing and trimming more consistent
* Fix
2023-11-23 15:39:10 +01:00
Ivana Huckova
fd5f66083c
Loki: Move convertToWebSocketUrl from Explore to Loki ( #78542 )
...
* Move convertToWebSocketUrl to Loki
* Add tests
* Fix test
2023-11-23 11:43:48 +02:00
Ivana Huckova and Matias Chomicki
4fd1d92332
Loki: Remove relying on timeSrv.timeRange in LanguageProvider ( #78450 )
...
* Loki: Allow setting of timeRange when using languageProvider functions
* Loki: Use timerange where available for start
* Loki: Use timerange where available for fetchLabels
* Loki: Use timerange where available for fetchSeriesLabels
* Loki: Use timerange where available for fetchLabelValues
* Loki: Use timerange where available for getParserAndLabelKeys
* Loki: Update and add tests for fetchLabels
* Loki: Update and add tests for fetchSeriesLabels
* Loki: Update and add tests for fetchSeries
* Loki: Update and add tests for fetchLabelValues
* Loki: Update and add tests for fetchLabelValues
* Loki: Update and add tests for getParserAndLabelKeys
* Update public/app/plugins/datasource/loki/LanguageProvider.test.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/LanguageProvider.test.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Not needing to use languageProvider.getDefaultTime in Monaco
* Update comment
* Update getDefaultTimeRange to be ptivate
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-11-22 14:35:15 +01:00
Ivana Huckova
02090f71d2
@grafana/data: Add serializeParams (#78468 )
...
* Move serializeParams to @grafana/data
* Update comment
* Update solution in Tempo
* Fix type assertions
* Use toUrlParams in serializeParams
* Update data sources
* Update
* Update packages/grafana-data/src/utils/url.ts
2023-11-22 13:15:29 +01:00
Ivana Huckova
0e44438d08
Loki: Change import for CustomVariableModel and remove unnecessary import of initialCustomVariableModelState ( #78456 )
2023-11-21 16:28:02 +01:00
Ivana Huckova
9200e17b18
Loki: Use TemplateSrv from @grafana/runtime ( #78196 )
...
Loki: Use TemplateSrv from grafana/runtime
2023-11-21 10:11:11 +01:00
Ivana Huckova
28f4c3ed44
Elasticsearch: Fix processing of raw_data with not-recognized time format ( #78262 )
...
* Elasticsearch: Fix non-standard time field in raw data queries
* Update snapshot tests
* Refactor
2023-11-20 12:01:41 +01:00
Ivana Huckova
792edfb293
Loki: Fix import for intervalToMs ( #78265 )
...
* Loki: Use TemplateSrv from grafana/runtime
* Loki: Fix import for intervalToMs
* Revert "Loki: Use TemplateSrv from grafana/runtime"
This reverts commit d573925e37 .
2023-11-16 15:08:45 +01:00
Ivana Huckova
c0a866d7c7
Logs: For LogLines frames, don't show additional fields in log details ( #78109 )
...
* Logs: Don't use other fields in log details for log details
* Reorder variables
* Update comment
* Update comment
2023-11-15 12:02:32 +01:00
Ivana Huckova
c91fc18d31
Loki: Fix escaping in cheatsheet ( #78046 )
2023-11-13 15:13:40 +01:00
Ivana Huckova
8cd8eb7882
Revert "Loki: Add error source to DataQuery ( #77876 )" ( #78006 )
...
This reverts commit 934456dc1c .
2023-11-10 17:03:59 +01:00
Ivana Huckova
cb711660f1
Logs: Use "labels" data frame field if type "other" in log details ( #77806 )
...
* Logs: Use labels field if time other
* Keep loki test
2023-11-10 12:54:59 +01:00
Ivana Huckova
934456dc1c
Loki: Add error source to DataQuery ( #77876 )
...
* Loki: Add error source to DataQuery
* Create middlewares to fix healtcheck test
* Add comment for errors from ReadPrometheusStyleResult
2023-11-10 10:26:56 +01:00
Ivana Huckova
d4a257bc8e
Logs: Update logic to process logs dataPlane frame with labels field ( #77708 )
...
* Logs: Update dataplane logic to use labels instead of attributes
* Update Loki logs data plane data frame according to specs
* Remove only in test
2023-11-07 10:53:10 +01:00
Ivana Huckova and Scott Lepper
a1718aafce
Elasticsearch: Add error source for DataQuery ( #77386 )
...
* WIP
* Refactor, plus update source of error in response_parser
* Adjust test
* Use methods and httpclient from errorsource
* Update pkg/tsdb/elasticsearch/data_query.go
Co-authored-by: Scott Lepper <scott.lepper@gmail.com >
* Return nil error
* Fix test
* Fix integration test
---------
Co-authored-by: Scott Lepper <scott.lepper@gmail.com >
2023-11-06 11:36:39 +01:00
Ivana Huckova
1e065580ac
Loki: Remove duplicated methods in languageProvider ( #77456 )
...
Loki: Remove fuplicated methods in languageProvider
2023-11-02 11:02:00 +01:00
Ivana Huckova
a38c9d4f44
Loki: Add maxLines option to getParserAndLabelKeys ( #77460 )
...
* Loki: Add logsCount option to getParserAndLabelKeys
* Rename logsCount to maxLines
2023-11-01 17:22:33 +01:00
Ivana Huckova
6c6c54637f
Loki: Update developers docs with QueryEditor component ( #77463 )
2023-11-01 11:05:28 +01:00
Ivana Huckova and Matias Chomicki
661e1e2fff
Loki: Add in code documentation for methods and identify todos ( #77314 )
...
* Loki: Add in code documentation for methods and identify todos
* Fix incorrect merge
* Fix incorrect merge
* Fix incorrect merge
* Update public/app/plugins/datasource/loki/datasource.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update comments to have less method
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-10-31 15:55:02 +02:00
Ivana Huckova
23c0054ecc
Loki: Clean up Language provider and remove unused code ( #77315 )
...
* Loki: Clean up Language provider and remove unused stuff
* Update
* Update comment
2023-10-31 12:18:51 +01:00
Ivana Huckova and Sven Grossmann
f5d04a067e
Loki: Add optional stream selector to fetchLabelValues API ( #77207 )
...
* Loki: Add optional stream selector to fetchLabelValues API
* Update public/app/plugins/datasource/loki/docs/app_plugin_developer_documentation.md
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update tests
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2023-10-30 10:16:35 +01:00
Ivana Huckova
e587d4e879
Loki: Change run query button text based on number of queries ( #76196 )
...
Loki: Change run query button name based on number of queries
2023-10-09 17:14:34 +02:00
Ivana Huckova and Matias Chomicki
4be6a8df78
Loki: Add documentation for app plugin developers and in code docs ( #76067 )
...
* Add documentation for app plugin developers and in code docs
* Fix incorrect import
* Rename and move
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/APP_PLUGIN_DOCUMENTATION.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update public/app/plugins/datasource/loki/LanguageProvider.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Fix spelling
* Replace APIs with methods
* Add note for improved instrumentation
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-10-09 14:24:53 +02:00
Ivana Huckova
0ea047cc09
Explore: Update info about query history and deleting ( #76034 )
...
* Explore: Update info about query history and deleting
* Fix unescaped '
2023-10-05 17:02:45 +02:00
Ivana Huckova
c40bc0665b
Elasticsearch: Add instrumentation for elasticsearch_plugin_parse_response_duration_seconds ( #75628 )
...
* Elasticsearch: Add instrumentation for elasticsearch_plugin_parse_response_duration_seconds
* Update error tracking
2023-09-28 18:38:14 +03:00
Ivana Huckova
5510a0d8d1
Loki: Add instrumentation for grafana_loki_plugin_parse_response_duration_seconds_bucket ( #75570 )
...
* Add metric for loki parsing response duration
* Rename and add exemplars
* Fix lint
2023-09-28 17:25:09 +02:00
Ivana Huckova
28b4d7fa0c
Loki: Remove unused methods ( #75106 )
...
* Loki: Remove unused imports in dataosurce.ts
* Extract range from props, fix lint
* Fix naming
* Remove unused types
2023-09-22 12:41:54 +02:00
Ivana Huckova and Sven Grossmann
4f0b31d21b
Elasticsearch: Add tracing to data source ( #74750 )
...
* Elasticsearch: Add tracing do data source
* Fix tests
* Address feedback
* Update pkg/tsdb/elasticsearch/response_parser.go
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update pkg/tsdb/elasticsearch/response_parser.go
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Track error across both spans
* Add span for decoding of response
* Fix test
* Update setting of errors + fix test
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2023-09-18 10:49:12 +02:00
Ivana Huckova
9ecbe8dd64
Docs: Improve levels of headings in logs plugin documentation ( #74752 )
...
Docs: Improve levels of headings
2023-09-12 10:56:04 -07:00
Ivana Huckova
49bd93aa2b
Elasticsearch: Adjust logging to follow convention ( #74554 )
...
* Elasticsearch: Adjust naming in logging according to convention
* Log response parsing per response
* Update
* Fix logging of errors when no response
* Add path to error loggigng
* Update pkg/tsdb/elasticsearch/response_parser.go
2023-09-07 18:15:24 +02:00
Ivana Huckova
408d0265ce
Elasticsearch: Improve backend instrumentation of CallResource calls ( #74530 )
...
Elasticsearch: Improve backend instrumentation of calls
2023-09-07 13:54:31 +02:00
Ivana Huckova
51391a762b
Elasticsearch: Improve backend instrumentation of QueryData calls ( #74172 )
...
* Elasticsearch: Improve backend instrumentation of QueryData calls
* Add fromAlert
* Fix tests, move logger and context to struct
* Add instrumentation for processing response
* Move log for sending request closer to sending request
* Update
* Fix logging, improved messages, fix printing of queries
* Update log text
* Fix tests
* Fix lint
* Update logging to follow our guidelines
* Remove key-value pairs from logs that are going to be passed from instrumentation
* Update pkg/tsdb/elasticsearch/elasticsearch.go
2023-09-07 13:54:16 +02:00
Ivana Huckova
a80fd02f95
Elasticsearch: Unify default value for geo hash grid precision across the code to 3 ( #73922 )
...
* Unify default value
* Use variable to keep default precisions in sync
* Use default precision variable
* Update precision description
* Update defaultPrecisionString and move
* Be more specific in naming of variabkle
* Revert "Merge remote-tracking branch 'origin' into ivana/es-precision-default-value"
This reverts commit 599f236a77 , reversing
changes made to 6742be0c6d .
* Revert wrong merge
* Revert wrong merge with turned off lefthook
2023-08-28 16:38:44 +02:00
Ivana Huckova
6742be0c6d
Elasticsearch: Fix respecting of precision in geo hash grid ( #73917 )
...
* Elasticsearch: Fix ignoring precision when running queries trough backend
* Unify default value
* Revert "Unify default value"
This reverts commit d8e1d207a2 .
* Update test
2023-08-28 15:28:28 +02:00
Ivana Huckova
fc9b8f6be1
Loki: Implement keep and drop operations ( #73636 )
...
* Update lezer
* Add functionalities for code and builder
* Add comment
2023-08-23 14:52:19 +02:00
77dc6d532e
Docs: Add plugin dev documentation for logs to trace ( #73225 )
...
* Docs: Add documentation for logs to trace
* Update
* Remove space
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Replace deprecated MutableDataFrame with createDataFrame
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com >
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com >
2023-08-15 19:43:49 +03:00
Ivana Huckova
6880ab687c
Elasticsearch: Enable running of queries trough data source backend ( #73222 )
...
Elasticsearch: Enable enableElasticsearchBackendQuerying feature toggle by default
2023-08-14 17:05:08 +02:00
a47577c8e8
Logs: Improve plugins developer documentation for logs APIs ( #72441 )
...
* Logs: Add plugins developer documentation for logs APIs
* Update
* Update
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/developers/plugins/create-a-grafana-plugin/extend-a-plugin/add-log-queries.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update based on feedback
* Update common labels content
* Remove redundant comment notes
* Adjust code snippets
* Move documentation into ow to build a logs data source plugin
* Propose edits for enhancements to logs datasource plugins tutorial (#73074 )
* Initial commiit
* Additional edits
* Additional edits
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-logs-data-source-plugin.md
* Add required field info into a table
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com >
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com >
2023-08-14 10:02:48 +02:00
7bb0ff7055
Loki: Introduce $__auto range variable for metric queries ( #72690 )
...
* Loki: Add interpolation to backend
* Loki: Replace default variable with in frontend
* Loki: Update docs in query builder fro __auto
* Loki: Update test for change default __auto
* Loki: Remove and from suggestions as should be used
* Update docs
* Update pkg/tsdb/loki/parse_query.go
* Fix backend lint
* Fix lint and test
* Update
* Update docs/sources/datasources/loki/template-variables/index.md
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com >
* Update public/app/plugins/datasource/loki/querybuilder/operationUtils.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
---------
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com >
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-08-03 16:27:23 +02:00
Ivana Huckova
117e334719
Logs: Fix ui getting stuck when removing fields ( #72597 )
...
* Logs: Fix ui getting stuck when removing fields
* Update public/app/features/logs/components/LogDetailsRow.tsx
* Update
* Fix tests
2023-07-31 15:47:26 +02:00
Ivana Huckova
2a5a4ded53
Loki: Run logs volume for query when switching from trace to logs ( #72268 )
...
Loki: Run logs volume for query that has no queryType (defaults to range)
2023-07-25 14:33:33 +02:00
Ivana Huckova and Matias Chomicki
a5d6136bcf
Docs: Update logs documentation to include missing features ( #72113 )
...
* Docs: Update logs documentation to include missing features
* Logs sample
* Log level table compressed
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/explore/logs-integration.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-07-25 13:12:44 +02:00
Ivana Huckova
5bb280cb3f
Logs: Remove logsSampleInExplore feature toggle ( #72092 )
...
* Logs: Remove logsSampleInExplore feature toggle
* Remove unused import
* Fix incorrect import
2023-07-24 14:24:43 +02:00
Ivana Huckova
72c92ca187
Logs: Fix shouldRemoveField ( #71882 )
2023-07-18 19:12:25 +02:00
Ivana Huckova
b346c9b283
Loki: Fix duplicated rendering of resolution ( #71670 )
2023-07-15 11:13:12 +02:00
Ivana Huckova
55d18361dc
Loki: Deprecate resolution ( #70326 )
...
* Loki: Deprecate resolution and only show it if it was selected before
* Deprecate
* Fix merge, add missing brackets
2023-06-21 12:21:29 +02:00
Ivana Huckova
c07d3c7bdd
Loki: Add documentation for step variable ( #70358 )
2023-06-20 17:54:08 +02:00
Ivana Huckova
60f6538bad
Loki: Use getNormalizedLokiQuery to get queryType ( #70237 )
...
* Loki: Use getNormalizedLokiQuery to get queryType
* Simplify
* Remove unused import
* Refactor, improve and add tests
* Update
2023-06-20 16:27:32 +02:00
Ivana Huckova and Matias Chomicki
750630626e
Loki: Add step input field validation ( #70319 )
...
* Loki: Add step inpout field validation
* Show invalid step in Options
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update test
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-06-20 09:24:01 +02:00
Ivana Huckova and Matias Chomicki
82c125d450
Loki: Implement step editor ( #69648 )
...
* Loki: Implement step editor
* Update to keep value
* Remove console.log
* Remove white space
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Import trim
* Update using of step in split queries
* Add tests
* Add tests
* Remove step interpolation
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-06-16 19:08:29 +03:00
Ivana Huckova and Matias Chomicki
38fc22538a
Loki: Don't split queries if they use $__range variables ( #69852 )
...
* Loki: Don't split queries if they use variables
* Update public/app/plugins/datasource/loki/querySplitting.ts
Co-authored-by: Matias Chomicki <matyax@gmail.com >
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
2023-06-12 11:22:04 +02:00
Ivana Huckova
0aef39d76a
Variables: Show description instead of definition in table ( #69786 )
...
* Variables: Show description instead of definition in table
* Remove referencing of definition
* Update
2023-06-08 19:58:02 +02:00
Ivana Huckova
0245ef63ba
Loki: Fix showing of correct line limit in options ( #69572 )
...
* Loki: Fix showing of line limit
* Refactor tests to not use id
2023-06-08 14:40:39 +02:00
Ivana Huckova
dbdb71fbfa
Templating: Fix updating of definition to empty string ( #69703 )
2023-06-08 11:02:47 +02:00
Ivana Huckova
8322b353f5
Loki: Make stream selector input in variables editor larger ( #69729 )
...
* Loki: Make strem selector input in variables editor larger
* Remove 75%
2023-06-07 18:56:35 +03:00
Ivana Huckova
14d2f371a4
Loki: Fix including of template variables in variable query editor ( #69698 )
2023-06-07 15:38:45 +02:00
Ivana Huckova
49c940de23
Loki: Add step parameter to Loki query ( #69558 )
2023-06-06 13:20:27 +02:00
Ivana Huckova
3150d80428
Loki: Fix error when empty template variables response ( #69373 )
...
* Loki: Fix error when empty template variables
* Update
* Add test
* Add test for statsMetadataRequest
2023-06-05 15:16:12 +02:00
Ivana Huckova
4c794fe8b9
Loki: Add comment explaining interpolation of some variables at backend ( #69460 )
...
* Loki: Add comment explaining interpolation of some variables at backend
* Update content
2023-06-05 11:28:04 +02:00
Ivana Huckova
21021502b5
Loki: Remove unused datasource prop from LokiQueryBuilderOptions ( #69445 )
...
Loki: Remove unused props from LokiQueryBuilderOptions
2023-06-02 13:26:20 +02:00
Ivana Huckova and Sven Grossmann
06003c98c8
Loki: Add predefined operations functionality behind feature flag ( #69379 )
...
* Add feature toggle for lokiPredefinedOperations
* Add config editor for predefined operations
* Add predefined patterns to editor
* Update content in tooltip
* Update public/app/plugins/datasource/loki/configuration/QuerySettings.tsx
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Update public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Add experimental badge
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2023-06-02 12:52:36 +02:00
Ivana Huckova
3e46720a96
Loki: Fix creating correct context query when preserved labels used ( #69252 )
2023-05-30 17:12:40 +02:00
Ivana Huckova
0d54a8858b
Flux: Improve styling of sample query button and use sentence case ( #69222 )
2023-05-30 15:04:31 +02:00
Ivana Huckova
ca44164bea
Loki: Implement decolorize logql operation ( #68972 )
...
* Loki: Implement decolorize operation
* Fix tests
2023-05-24 15:23:54 +02:00
Ivana Huckova
eff90809a6
Loki: Update LokiOperationOrder ( #68905 )
...
Loki: Rename and update order of operations
2023-05-24 13:46:49 +02:00
a9a9c089c6
Docs: Add Loki log context preselected labels section ( #68773 )
...
* Docs: Loki log context preselected labels
* Update
* Update docs/sources/datasources/loki/query-editor/index.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/datasources/loki/query-editor/index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com >
* Update docs/sources/datasources/loki/query-editor/index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com >
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
Co-authored-by: J Stickler <julie.stickler@grafana.com >
2023-05-23 10:23:11 +02:00
Ivana Huckova
7c7e021ccd
Loki: Preserve pre-selected labels in the log context UI ( #68700 )
...
* WIP
* Refactor and add tests
* Update
2023-05-22 10:41:35 +02:00
Ivana Huckova and Sven Grossmann
ee9620e4e0
Logs: Fix unresponsive log lines if duplicate ids in Elasticsearch ( #68569 )
...
* Logs: Fix duplicate uids by appending series refIds
* Fix id generation in loki live streams to be consistent
* Update public/app/core/logsModel.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
* Fix test
---------
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com >
2023-05-17 16:28:25 +03:00
Ivana Huckova and François Massot
dbbbc46351
Elasticsearch: Fix passing of limit and datalinks to logs data frame ( #68554 )
...
* Elasticsearch: Fix passing of limit and datalinks to logs data frame
* Update public/app/core/logsModel.ts
Co-authored-by: François Massot <francois.massot@gmail.com >
---------
Co-authored-by: François Massot <francois.massot@gmail.com >
2023-05-17 14:28:32 +02:00
Ivana Huckova
e74bbadecd
Elasticsearch: Implement filter query to not run hidden queries trough backend ( #68563 )
...
Elasticsearch: Implement filter query
2023-05-17 13:32:41 +02:00
Ivana Huckova
1462ae91da
Loki: Add functionality to revert to initial query in log context ( #68484 )
...
* Loki: Add functionality to revert to initial query
* Add tests and fix button in button
* Use usereven instead of fireEvent
* Shortern onClick
* Add feature tracking
* Use testid instead of title
* Always show revert button
* Remove unused imports
2023-05-16 18:58:25 +02:00
Ivana Huckova
18aba61cbd
Explore: Remove localStorage key migration for logs volume ( #68360 )
2023-05-14 13:29:19 +02:00
Ivana Huckova
d88da205f6
Elasticsearch: Migrate annotation calls to be run trough resources ( #68075 )
...
* Update
* Remove comment
* Add annotation to test dashboard
* Update devenv dashboard to correctly use textField
2023-05-10 09:30:57 +02:00
Ivana Huckova
3145660f5a
Elasticsearch: Run getTerms trough resource call if enableElasticsearchBackendQuerying enabled ( #67848 )
...
* Elasticsearch: Run getTerms torugh backend if toggle enabled
* Add template variables to devenv dashboard for easier testing
* Add TODO
* Run feature toggle gen to fix build
2023-05-06 10:00:43 +02:00
Ivana Huckova
f5ac099907
Elasticsearch: Run requestAllIndices trough resource call if enableElasticsearchBackendQuerying enabled ( #67825 )
...
* Elasticsearch: Run requestAllIndices trough resource call if enabled
* Unlock resource call path
* Fix lint
2023-05-05 11:35:30 +02:00
Ivana Huckova
95cf598423
Elasticsearch: Fix processing of logs with not-recognized time format ( #67767 )
...
* Elasticsearch: Fix parsing of invalid time
* Fix lint
* Add more test data to data.js
* Add tests
* Fix lint
* Update pkg/tsdb/elasticsearch/client/search_request.go
2023-05-04 19:33:00 +02:00
Ivana Huckova
4d7c0904ef
Elasticsearch: Run version check thorugh backend if enableElasticsearchBackendQuerying enabled ( #67679 )
...
* Elasticsearch: Run getDBversion trough resource calls
* Update
* Update
* Fix lint
* Close response body
* Fix lint
* Refactor
2023-05-03 18:09:18 +02:00
Ivana Huckova
3bfb50f989
Elastic: Create legacy runner for proxy queries ( #67397 )
...
* Elastic: Rename request to legacy request and call directly
* Apply content header directly in request
* Move legacy running queries to legacyqueryrunner
2023-05-02 09:52:02 +02:00
Ivana Huckova
d8da6c75e5
Loki: Distinguish hidden and not hidden queries in tracking ( #67507 )
...
* Loki: Distinguish hidden and not hidden queries in tracking
* Rename
2023-04-28 17:22:30 +02:00
cf82fafb53
Loki: Update docs for show context ( #67202 )
...
* Loki: Update docs for show context
* Update docs/sources/datasources/loki/query-editor/index.md
Co-authored-by: Matias Chomicki <matyax@gmail.com >
* Update docs/sources/datasources/loki/query-editor/index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com >
---------
Co-authored-by: Matias Chomicki <matyax@gmail.com >
Co-authored-by: J Stickler <julie.stickler@grafana.com >
2023-04-28 12:25:51 +02:00
Ivana Huckova
3a8bb226bd
Logs: Use millisecond precision for open context in split view ( #67385 )
...
Log: Use millisecond precision for open context in split view
2023-04-27 14:09:20 +02:00
Ivana Huckova
c308118fc0
Elasticsearch: Move response parsing tests to 1 file ( #67288 )
...
* Organize tests
* Organize
* Fix lint
* Fix lint
2023-04-26 18:21:04 +02:00
Ivana Huckova
d0ced39847
Elasticsearch: Use array of strings as index in backend queries ( #67276 )
...
Elasticsearch: Use array of strings as indice in backend queries
2023-04-26 16:07:15 +02:00
Ivana Huckova
106eceab55
Loki: Remove experimental badge for context ui ( #67219 )
...
* Loki: Remove experimental badge
* Remove unused styles
2023-04-26 11:03:07 +02:00
Ivana Huckova
67ca91ece3
Loki: Fix incorrect evaluation of real and extracted labels in context ( #67112 )
...
* Loki: Fix incorrect evaluation of real/extracted labels in context
* Add tests
* Improve caching and add more tests
* Use mockResolvedValue
* Flip logic for getInitContextFiltersFromLabels
* Update to logic to use fetchSeriesLabels for queries with more than 1 parser
2023-04-24 17:36:30 +02:00
Ivana Huckova
2fb1c64e80
Loki: Enable new log context query editor ( #67131 )
...
Loki: Enable new log context editor
2023-04-24 17:27:43 +02:00
Ivana Huckova
e2e243d1b6
Elasticsearch: Fix processing of duplicated metric types and field ( #66973 )
...
* Elasticsearch: Fix processing of duplicated metric types and field
* Fix lint
* Fix linting
2023-04-24 17:26:04 +02:00
Ivana Huckova
0b2f7db224
Elasticsearch: Deprecate index setting for annotation queries ( #67046 )
...
* Elasticsearch: Deprecate index setting for annotation queries
* Update comment
2023-04-24 17:02:55 +02:00
Ivana Huckova and J Stickler
24c754334f
Loki: Update content for log context ui ( #66978 )
...
* Loki: Update content for context ui
* Update
* Update public/app/plugins/datasource/loki/components/LokiContextUi.tsx
Co-authored-by: J Stickler <julie.stickler@grafana.com >
* Update public/app/plugins/datasource/loki/components/LokiContextUi.tsx
Co-authored-by: J Stickler <julie.stickler@grafana.com >
* Update public/app/plugins/datasource/loki/components/LokiContextUi.tsx
Co-authored-by: J Stickler <julie.stickler@grafana.com >
* Update public/app/plugins/datasource/loki/components/LokiContextUi.tsx
Co-authored-by: J Stickler <julie.stickler@grafana.com >
---------
Co-authored-by: J Stickler <julie.stickler@grafana.com >
2023-04-22 14:07:44 +02:00
Ivana Huckova
3c0e896282
Loki: Change default state for log context ui to toggled ( #67032 )
2023-04-21 11:51:02 +02:00
Ivana Huckova
c96b704af3
Loki: Update log context UI ( #66848 )
...
* Loki: Update log context UI
* Update copy
2023-04-19 18:02:37 +02:00
Ivana Huckova
33186e3e23
Explore: Fix using data source line limit when opening logs sample in split view ( #66601 )
...
* Logs sample: Use data source max lines setting when opening logs in split view
* Add internal tags
2023-04-19 17:04:47 +02:00
Ivana Huckova and Sven Grossmann
f612a72f96
Loki: Update log context UI ( #66730 )
...
* fix logrowcontext scrolling behavior
* Loki: Update loki context ui menu
* Update
* Add test, update
* Use escapeLabelValueInSelector when displaying labels
* Update test for new appliedContextFilters
---------
Co-authored-by: Sven Grossmann <svennergr@gmail.com >
2023-04-18 15:59:22 +02:00
Ivana Huckova
2509dec0cb
Loki: Fix ad hoc filters when used with number and > and < operators ( #66579 )
...
Loki: Fix ad hoc filters when used with number and >< operators
2023-04-17 10:27:38 +02:00