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
Gábor Farkas
57425234c9
elastic: backend: removed unused time-field ( #61362 )
...
* elastic: backend: removed unused time-field
* improve comment formatting
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-01-12 15:52:32 +00:00
Ivana Huckova
772e8cbf60
Elasticsearch: Use interval provided by data request in backend ( #60480 )
...
* Elasticsearch: Remove interval caulation and use interval provises by grafana
* Remove redundant code
* Adjust snapshot tests
* Update test
* Fix lint
2023-01-05 12:26:27 +01:00
Ivana Huckova
d332dab3ec
Elasticsearch: Refactor parse query ( #60440 )
...
* Refactor parse query to functions
* Move parsing to new file
* Create empty result variable and use it when returning early
* Fix linting
* Revert "Create empty result variable and use it when returning early"
This reverts commit 36a503f66e
.
2022-12-16 16:30:36 +01:00