Gábor Farkas
d8a754c4a0
loki: send metadata requests through backend ( #48063 )
2022-04-25 13:16:14 +02:00
Shirley
79d328fcbc
CloudWatch: Add tests for data frame naming in formatAlias ( #47899 )
2022-04-21 15:11:23 +02:00
Ryan McKinley
72b5af8d9b
Testdata: add basic tank simulation ( #47990 )
2022-04-20 12:01:09 -07:00
Gábor Farkas
79c06fdddc
Loki: add backend-forward mode to queries, update log-row-context ( #47726 )
...
* loki: add helper function to sort dataframe by time
* loki: add direction-attribute to queries
* loki: make log-row-context code backward-compatible
* better comment
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* fixed test
* simplified code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-04-20 13:52:15 +02:00
Ryan McKinley
89fa35a53f
Testdata: introduce basic simulation framework ( #47863 )
2022-04-20 02:42:29 +02:00
ying-jeanne
7ddae870e7
fix status code 200 ( #47818 )
2022-04-15 08:01:58 -04:00
Serge Zaitsev
e86b6662a1
Chore: Remove bus.Bus field ( #47695 )
...
* Chore: Remove bus.Bus field
* fix integration test
2022-04-13 15:24:13 +02:00
Shirley
4b889eb336
Change to pointer receiver in mock call ( #47575 )
2022-04-12 16:22:28 +02:00
Gábor Farkas
d95468a4bb
Loki: use millisecond-steps ( #47572 )
...
* loki: use millisecond-steps
* better comment
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* better comment
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-04-12 12:30:39 +02:00
felixdoerre
9024340487
fix: postgresql ipv6 host should not be enclosed in square brackets ( #47522 )
2022-04-12 11:11:11 +01:00
Gábor Farkas
68511e7712
loki: use single-dataframe format on the backend ( #47069 )
2022-04-12 11:58:48 +02:00
Jamie DeMichele
614fd04653
CloudWatch: Added missing MemoryDB Namespace metrics ( #47290 )
...
CloudWatch: Added missing MemoryDB metrics
2022-04-11 16:35:50 -04:00
Kristin Laemmert
8f6877e12a
chore: remove all remaining uses of golang.org/x/net/context ( #47564 )
...
* chore: remove all remaining uses of golang.org/x/net/context
This PR finishes the work started in #47532 , replacing all calls to that package with the stdlib context and using http.NewRequestWithContext to include the context where necessary.
Bonus: small formatting fixes to goimports in these files.
closes #44178
* tweak: use context.Background in favor of TODO for tests
2022-04-11 14:20:10 -04:00
Aleksandr Stepanov
c0104db72d
bugfix: fix proper type of setting maxConcurrentShardRequests ( #47120 )
2022-04-11 10:29:49 +02:00
Kevin Yu
ebe5f3646f
AzureMonitor: Use Resource Picker in Metrics Query Editor ( #47164 )
...
* wip: new metrics query editor
* prepend subscriptions to url path
* remove duplicated setQueryValue file
* add tests for new metrics query editor
* wip start extracting resource field into a shared component
* fix query editor test
* fix up backend tests
* move azure monitor specific getters to azure_monitor_datasource
* use existing useAsyncState hook
* extract useAsyncState into separate file
* add datahooks tests
* extract resource field component
* cleanup
* clarify variable names
* remove logs query specific resource field component
* add url_builder test
* add azure_monitor_datasources tests
* address comments
* add types
* pass resourceUri to resource field component
* add test to check we reset the query fields when changing resources
2022-04-08 08:49:46 -07:00
Josh Hunt
41642fd5f4
Modify the Server Error scenario to return frontend errors ( #47157 )
2022-04-07 10:59:49 +01:00
Gábor Farkas
96987ac182
loki: add test to handle __name__ ( #47298 )
2022-04-05 11:56:54 +02:00
Gabriel Santos
b5bacce819
CloudWatch: Handle new error codes for MetricInsights ( #47033 )
...
* CloudWatch: Handle new error codes for MetricInsights
* Changes/test to support case where only the first GetMetricDataOutput returns errors and refactoring
* Fix Potential file inclusion via variable
* Fix gosec 304 by assigning a new variable
* fix goimports issue
2022-04-04 15:44:19 +02:00
Sergey Kostrukov
5675496f6b
Migrate to Grafana Azure SDK ( #47232 )
2022-04-04 11:23:13 +02:00
Sergey Kostrukov
656ade9884
Shared Azure middleware between Azure Monitor and Prometheus datasources ( #46002 )
...
* Scopes in Azure middleware
* Enable Azure middleware without feature flag
* Use common Azure middleware in Azure Monitor
* Apply feature flag to JsonData configuration of Azure auth
* Enforce feature flag in Prometheus datasource
* Prometheus provider tests
* Datasource service tests
* Fix http client provider tests
* Pass sdkhttpclient.Options by reference
* Add middleware to httpclient.Options
* Remove dependency on Grafana settings
* Unit-tests updated
* Fix ds_proxy_test
* Fix service_test
2022-04-01 13:26:49 +02:00
Gábor Farkas
a246381879
loki: backend-mode: add stats support ( #46526 )
...
* loki: backend-mode: add stats support
* refactor: rename variable
2022-03-31 17:50:27 +02:00
Kevin Yu
1a4b1184bd
Azure Monitor: allow metrics call to use resource uri ( #46858 )
...
* Azure Monitor: allow metrics call to use resource uri
* test case when only resource uri is provided
* remove logs
* Rename json field name from resource to resourceUri
* Group legacy URL builder params test cases
* move comment to the correct position
* Add clarifications in comments
Co-authored-by: Sarah Zinger <sarah.zinger@grafana.com >
Co-authored-by: Sarah Zinger <sarah.zinger@grafana.com >
2022-03-31 08:20:29 -07:00
felixdoerre
f5a790e291
Fix postgresql host-v6 literals ( #46876 )
...
Ipv6 literals in postgresql hosts previously worked and were subsequently
broken. This change fixes the parsing and adds additional test cases.
2022-03-31 11:45:49 +01:00
Dirkco du Plessis
b52794601d
mssql: explicit disable encryption when its disabled ( #46546 )
2022-03-30 15:14:04 +01:00
Andres Martinez Gotor
48113beeeb
AzureMonitor: Fix missing top parameter when dimensions are set ( #47010 )
2022-03-29 16:27:09 +02:00
Tania B
8c622c1ef6
Datemath: Fix weekstart calculation ( #46962 )
...
* Update go-datemath version
* Remove unnecessary bits
* fixup! Remove unnecessary bits
2022-03-26 19:57:29 +01:00
Julien NOEL
f4b6c4019c
PostgreSQL: __unixEpochGroup to support arithmetic expression as argument ( #46764 )
...
* __unixEpochGroup to support arithmetic argument
Following call generates wrong expression :
$__unixEpochGroupAlias(height+42,$__interval)
=> floor(height+42/60)*60 AS "time"
instead of
=> floor((height+42)/60)*60 AS "time"
* Update test of __unixEpochGroup related to issue #46764
2022-03-26 18:44:14 +01:00
Andres Martinez Gotor
3c5e68a349
CloudWatch: Fix metric names ( #46929 )
2022-03-25 09:17:15 +01:00
Santiago
a9b55f7905
Fix InfluxDB tag variables parsing ( #46862 )
...
* regex bug fixed
* remove unnecessary test
2022-03-23 21:13:17 -06:00
Ezequiel Victorero
c717320942
Adding FGAC annotations validation for creation and deletion ( #46736 )
...
Access Control: Adding FGAC annotations validation for creation and deletion
Co-authored-by: IevaVasiljeva <ieva.vasiljeva@grafana.com >
2022-03-21 14:28:39 -03:00
Ryan McKinley
1cfb9a4a19
Storage: add basic storage service ( #46604 )
2022-03-17 10:19:23 -07:00
Andres Martinez Gotor
727204ed5e
CloudMonitoring: Improve error message ( #46599 )
2022-03-16 09:37:48 +01:00
Kevin Yu
99b4dfc27d
Dashboard: Validate refId when generating id for cloudwatch query ( #46182 )
...
* Validate refId when generating id for cloudwatch query
* add test case when refId is a valid metric data id
2022-03-14 09:44:04 -07:00
Erik Sundell
6670257c5e
CloudWatch: Use default http client from aws-sdk-go ( #46370 )
...
* use default http client from aws-sdk-go
* temp comment out line and link to issue
2022-03-09 16:29:10 +01:00
Todd Treece
db5f480a8f
Prometheus: Fix timestamp truncation ( #46302 )
...
* avoid truncation to seconding by using time.Time directly
* update test coverage
2022-03-08 10:55:25 -05:00
Shirley
438512c7ef
CloudWatch: Add tests to query input region in executeLogAlertQuery ( #46212 )
2022-03-04 11:15:36 +01:00
Gábor Farkas
c4404982dc
loki: backend-mode: add nanosecond-timestamps ( #45963 )
2022-03-04 09:42:18 +01:00
Shirley
1255f8a76a
Unexport mocks, use aws-sdk-go helpers, rename test utilities file ( #46107 )
2022-03-03 09:42:51 +01:00
Andres Martinez Gotor
700f6863f2
AzureMonitor: Move Application Insights and Insight Analytics to a deprecated package ( #45834 )
2022-03-02 15:41:07 +01:00
Isabella Siu
590ea19c3f
Cloudwatch: use CheckHealth for testing datasource ( #45974 )
...
Co-authored-by: Shirley Leu <4163034+fridgepoet@users.noreply.github.com >
2022-03-02 08:48:51 -05:00
Ryan McKinley
796bc27f75
Loki: support live streaming ( #42804 )
2022-03-01 14:46:52 -08:00
Shachi Solanki
190757b3c6
Tempo / Trace Viewer: Support Span Links in Trace Viewer ( #45632 )
...
* Support Span Links in Trace Viewer
* Update ReferencesButton styles
* Remove datasource prop
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com >
2022-02-25 11:14:13 -07:00
Shirley
a68a570e92
CloudWatch: Add test to executeStartQuery ( #45888 )
...
* CloudWatch: Add test to executeStartQuery
* Add test for absence of limit
* Restrict assertions to limit in some tests
2022-02-25 13:14:59 +00:00
Shirley
304185f682
CloudWatch: Fix running go test with count ( #45892 )
2022-02-25 12:20:07 +01:00
Gábor Farkas
1cad35ea67
loki: backend mode: support all query types ( #45619 )
...
* loki: backend mode: support all query types
* loki: backend: adjust vector-parsing field-names
* loki: backend: no interval for streams-dataframes
* loki: backend: enable more query types
* better variable name
* removed unnecessary code
* improve frame-processing
* more unit tests
* improved code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* remove unused code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* simplify code
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
* lint fix
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-02-25 09:14:17 +01:00
Yaelle Chaudy
0e7b0f16b8
Adding ap-southeast-3 to cloudwatch regions ( #45821 )
2022-02-24 14:00:24 +01:00
matt abrams
76da017d00
MySQL: Prevent pre-epoch timestamps from breaking __timeFilter ( #45345 )
...
* add logic to change timeFilter query when FROM time is pre-EPOCH
* fix timeFilter tests where FROM time is pre-EPOCH
2022-02-22 20:06:04 +01:00
Mitsuhiro Tanda
7acb203b52
remove unused code of Cloud Monitoring distribution metrics type ( #45702 )
2022-02-22 11:24:52 +01:00
Mitsuhiro Tanda
0fb490c00d
Cloud Monitoring: set missing meta data for distribution type metrics ( #45500 )
...
* set missing meta data for distribution type metrics
* add test
* add test
* simplify custom set
* add test for executedQueryString
* add test data
* fix tests
* check group by
2022-02-21 11:20:34 +01:00
Joey Tawadrous
955b921c88
InfluxDB: new row value types ( #44789 )
...
* Check type and act accordingly
* Add string type
* Add bool type
* Change method name in test
* Remove comment
* Changed test var names to represent the float case
* Added string test case
* Added bool test case
* Update response in test
* Change string val
* Fix frame meta missing in tests
* Fixed test parse query
* Fixed out of bounds test
* parseFloatSeries
* parseStringSeries and parseBoolSeries
* Formatting
* Use multi frames for now
* strings.ToLower for time col check
* Move timeField out of if checks
2022-02-18 17:37:45 +00:00