432cdbade4
Cloudwatch: Add support for template variables in new log group picker ( #61243 )
2023-01-13 14:03:08 -05:00
28dbbe9f5f
CloudWatch: Add CloudWatchSynthetics dimension ( #60832 )
2023-01-13 14:56:29 +01:00
f6e735cd29
AzureMonitor: Keep resource in the URL for single requests ( #61414 )
2023-01-13 12:30:45 +01:00
4421b31b66
Loki/Prometheus: Change signature - return non-reference from ReadPrometheusStyleResult ( #57209 )
...
* Change signature - return non-reference from ReadPrometheusStyleResult
Related to https://github.com/grafana/grafana/issues/52430
* Fix invalid reference usage
* Potential fix for test data
* Remove additional ref usage
* Revert "Potential fix for test data"
This reverts commit 94ed588ab3aa488026862bf8dd19d0f3dbed27d6.
* Commit changed test data
* Revert unwanted conflict resolution
* Add additional condition to track empty responses
* Setup valid empty response
* Re-introduce changes reverted by merge
2023-01-13 09:00:39 +01:00
9055e1993d
AzureMonitor: API support for multiple resources ( #61315 )
2023-01-12 17:25:13 +01:00
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
d5da42bbbc
CloudWatch: Add RDS dimension ( #61027 )
2023-01-12 11:47:12 +01:00
056d5df285
CloudWatch: Add MaxProvisionedTableReadCapacityUtilization AWS/DynamoDB metric name ( #60829 )
2023-01-12 11:07:25 +01:00
19ca93d5ce
Prometheus: Fix concurrency issue with exemplar sampler initialization ( #61281 )
2023-01-11 08:27:47 -05:00
c72ab21096
Cloudwatch: Refactor log group fields request ( #60909 )
...
* cloudwatch/log-group-fields-refactor
* remove not used code
* remove empty line
* fix broken test
* add tests
* Update pkg/tsdb/cloudwatch/routes/log_group_fields_test.go
Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
* pr feedback
Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
2023-01-11 08:12:58 +01:00
ad1813da27
Phlare: Update client code to use v0.1.2 API. ( #60941 )
...
* Depends on Phlare API instead of copying the code
* Rollback the breaking change from the API version
2023-01-10 14:16:45 +00:00
256f640e19
Elasticsearch: Refactor processQuery to make it more readable ( #61145 )
...
* WIP: Simplify process query logic
* WIP: Simplify process query logic
* Simplify
* fix lint
2023-01-10 10:49:43 +01:00
c3378aff8b
Cloudwatch: Use new log group picker also for non cross-account queries ( #60913 )
...
* use new log group picker also for non cross-account queries
* cleanup and add comment
* remove not used code
* remove not used test
* add error message when trying to set log groups before saving
* fix bugs from pr feedback
* add more tests
* fix broken test
2023-01-09 16:30:21 +01:00
2b61fb6e4a
Test Datasource: do not use global random ( #61116 )
2023-01-09 10:08:58 -05:00
30424a8618
Elasticsearch: Return error if invalid query ( #61044 )
...
* Elasticsearch: Return error if invalid query
* Add test
* Fix query in test
2023-01-06 11:14:17 +01:00
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
12c4098bcd
elastic: backend: handle naming bucket_scripts ( #60460 )
2023-01-04 15:26:57 +01:00
bd09e88e50
Cloudwatch: Refactor log group model ( #60873 )
...
* refactor log group query model
* update deprecated comment
* refactor test
2023-01-04 10:07:03 +01:00
6e89421544
CloudWatch: Add macro for resolving period in SEARCH expressions ( #60435 )
...
* interpolate macro in the backend
* refactor logger in cloudwatch query
* revert added metrics
* add docs
* apply pr feedback
* fix broken test
* fix spelling
2023-01-02 09:08:31 +01:00
09c759b36c
Graphite: Fix bug in wildcard queries to Graphite plugin ( #60549 )
...
* commit something that works, need to figure out scoping issues
* clean up now that I know about addressable values
2022-12-30 13:53:42 -05:00
73d5aa4878
Prometheus: Refactor exemplar sampler ( #60278 )
2022-12-30 13:04:35 -05:00
15d32546ea
Prometheus: Fix Instant query time calculation ( #60815 )
...
* Use single point in time instead of doing time range calculation
* Comment update
2022-12-29 16:32:08 +01:00
a1ef3d77f2
Elasticsearch: Use constants for default values and types ( #60673 )
2022-12-22 15:08:15 +01:00
2e4bc200f5
AzureMonitor: Correctly set filter values in portal URL ( #60627 )
...
* Correctly set filter values in portal URL
* Refactor to include dimensions as a part of AzureMonitor query
* Correctly set splitting value in URL
- Add type for dimension filters object
* Update tests
* Don't test dimensions
2022-12-21 16:30:17 +00:00
f3f043e097
AzureMonitor: Set Logs portal URL from resource URI ( #60583 )
...
Set URL based off of resource URI
2022-12-21 15:46:31 +00:00
c35c689a96
Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests ( #60417 )
...
Automatically forward core plugin request HTTP headers in outgoing HTTP requests.
Core datasource plugin authors don't have to specifically handle forwarding of HTTP
headers, e.g. do not have to "hardcode" the header-names in the datasource plugin,
if not having custom needs.
Fixes #57065
2022-12-21 13:25:58 +01:00
733dbe0163
Azure Monitor: Remove references to Germany cloud ( #60588 )
2022-12-21 11:51:57 +01:00
10cfc27397
AzureMonitor: Update SDK version ( #60372 )
2022-12-20 16:20:31 +01:00
7db8d031d3
Azure Monitor: Fix health check for empty default subscription ( #60569 )
2022-12-20 15:32:22 +01:00
4d693863c0
GoogleCloudMonitoring: Adapt frontend to the new API format ( #60173 )
...
* GoogleCloudMonitoring: Migrate queries to the new format
* Refactor Aligment and AligmentFunction components (#60235 )
* Adapt CloudMonitoringDatasource and CloudMonitoringAnnotationSupport (#60177 )
* Fix: avoid migration for new queries (#60375 )
* Move preprocessor handling to the backend (#60383 )
* Other fixes and new function (#60411 )
* Adapt components to the new API (#60451 )
* Split metrics query type in time series list and query (#60475 )
* Clean up metricQuery references (#60478 )
* More bug fixes (#60525 )
2022-12-20 12:47:49 +01:00
c25fe34ac0
SQL Datasources: Use health check for config test ( #59867 )
...
* SQL Datasources: Use health check for config test
* Remove unnecessary test
* Fix test errors
* Revert mysql go driver update
* Use transform query error
* Use TransformQueryError from sql_engine
2022-12-19 17:17:52 +01:00
f67b8fe0dc
Prometheus: Create feature flag to disable exemplar sampling ( #60105 )
...
:Fix rebase
2022-12-19 16:00:15 +01:00
09bb4423d2
Elasticsearch: Fix pipeline aggregation queries in backend to pass frontend tests ( #60337 )
...
* Elasticsearch: Fix pipeline aggregation queries in backend
* Update
* Update lint
* Update pkg/tsdb/elasticsearch/time_series_query.go
* Fix lint
* Fix merge
2022-12-16 17:45:43 +01:00
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 36a503f66e52f8213c673972774329a963a78100.
2022-12-16 16:30:36 +01:00
055c3b7332
Prometheus: Add POST support to client ( #60243 )
...
* Prometheus: Add POST support to client
* Prometheus: Revert client test change from 1c503908
2022-12-16 11:15:19 +01:00
92c01e416e
Prometheus: Fix X-Id-Token and X-ID-Token sent to Prometheus in query requests ( #60342 )
...
* Prometheus: Use Set rather than map assignment in sdkHeaderToHttpHeader
Fixes #59940
* Prometheus: Add TestPrometheusCanonicalHeaders
2022-12-15 17:18:38 +01:00
3cfeac9c5a
elastic: enabled more tests ( #60331 )
2022-12-15 07:40:41 -05:00
c81df0dec0
AzureMonitor: Add custom header support to Azure Monitor ( #60269 )
...
* Add integration test for Azure Monitor
- Add Azure Monitor to datasource types
- Update instance creation to correctly set HTTP client options
- Combine custom azure headers and custom grafana headers on HTTP client creation
- Update HTTP client tests
* Test custom azure headers
2022-12-14 15:09:11 +00:00
70e34e7f32
Elasticsearch: Fix defaulting to time field if no field is specified in aggregation ( #60238 )
...
* Elasticsearch: Add test for using timeField from datasource when not specified in query
* Add default to timefield
* Merge fix
2022-12-14 14:19:03 +01:00
d3ef86bd90
Elasticsearch: Add query building for log queries ( #60182 )
...
* Elasticsearch: Fix ordering in raw_document and add logic for raw_data
* Add comments
* Fix raw data request to use correct timefield
* Fix linting
* Add raw data as metric type
* Fix linting
* Elasticsearch: Add defaults for log query
* Add higlight
* Fix lint
* Add snapshot test
* Implement correct query for logs
* Update
* Adjust naming and comments
* Fix lint
* Remove ifs
2022-12-14 13:56:09 +01:00
5010765115
Azure Monitor: Propagate the error when failed to get datasource instance ( #60210 )
...
Propagate the error when failed to get instance
2022-12-14 10:36:41 +01:00
d6bb2a7493
Cloudwatch: Fix deeplink with default region ( #60260 )
...
Cloudwatch: fix deeplink with default region
2022-12-13 15:24:28 -05:00
5633843f76
Elasticsearch: backend: do not set name for time-fields ( #60169 )
...
elastic: backend: improve field-naming
2022-12-13 13:19:03 +01:00
0973501233
Elasticsearch: Add query building for raw data and raw document queries to backend ( #59741 )
...
* Elasticsearch: Fix ordering in raw_document and add logic for raw_data
* Add comments
* Fix raw data request to use correct timefield
* Fix linting
* Add raw data as metric type
* Fix linting
* Hopefully fix lint
2022-12-13 13:11:44 +01:00
d65899de7b
SQL Datasources: Move database setting to jsonData ( #58649 )
...
* Datasource settings: Add deprecation notice for database field
* SQL Datasources: Migrate from settings.database to settings.jsonData.database
* Check jsonData first
* Remove comment from docs
2022-12-13 09:56:52 +01:00
5424ec4157
Prometheus: Remove buffered client and feature toggle related to it ( #59898 )
...
* Remove prometheus buffered client and feature toggle related to it
* Remove redundant pieces
* Clean the integration test
2022-12-12 18:05:55 +01:00
3172d8dd9b
elastic: response parser: simplify code ( #59782 )
...
elastic: simplify code
2022-12-12 16:00:15 +01:00
7bf7308ea5
Plugins: Remove connection/hop-by-hop request/response headers for call resource ( #60077 )
...
Removes request/response connection/hop headers for call resource in similar
manner as Go's reverse proxy functions. Also removes Prometheus datasource
custom call resource header manipulation in regards to hop-by-hop headers.
Fixes #60076
Ref #58646
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2022-12-12 10:27:53 +01:00
43afb85056
CloudMonitor: Improve detail of MQL series labels ( #59747 )
...
* Improve consistency between MQL and builder queries
* Review
* Review and fix test
2022-12-07 15:32:54 +00:00
13acddd605
Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation ( #59713 )
...
* Elasticsearch: Fix adding correct min_doc_count to all aggregation types in backend implementation
* Update snapshot tests
* Fix linting
2022-12-07 09:47:31 +01:00