Ivana Huckova
6c532c3f1e
Loki: Use data source settings for alerting queries ( #33942 )
...
* Add Tripperware
* Return TLSConfig
* Create transport outside of client
2021-05-12 11:20:16 +02:00
Alexander Emelin
95a356a840
Live: using organisation IDs throughout stack ( #33714 )
2021-05-11 22:03:04 +03:00
Marcus Efraimsson
6c728d6a78
SQL: Use SDK sqlutil package refactor ( #33758 )
...
Upgrades grafana-plugin-sdk-go dependency to v0.94.0 to get
the refactored sqlutil package.
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com >
2021-05-11 14:59:33 +02:00
Gábor Farkas
2633f245ba
InfluxDB: Flux: Improve handling of complex response-structures ( #33823 )
2021-05-11 12:36:04 +02:00
Giordano Ricci
e98a8bd11b
Elasticsearch: use semver strings to identify ES version ( #33646 )
...
* Elasticsearch: use proper semver strings to identify ES version
* Update BE & tests
* refactor BE tests
* refactor isValidOption check
* update test
* Update pkg/tsdb/elasticsearch/client/client.go
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Update pkg/tsdb/elasticsearch/client/search_request_test.go
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
* Remove leftover FIXME comment
* Add new test cases for new version format
* Docs: add documentation about version dropdown
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/elasticsearch.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update provisioning documentation
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-05-11 09:44:00 +01:00
Ryan McKinley
a469fa8416
TestData: allow true and false strings as bool ( #33889 )
2021-05-10 22:29:46 -07:00
ying-jeanne
0b97cdcee1
fix postgres to have precision of ms ( #33853 )
2021-05-10 22:22:13 +08:00
Rodrigo Fior Kuntzer
4fc1810cb7
CloudWatch: added Amplify Console specific metrics and dimensions ( #33171 )
2021-05-10 13:55:48 +02:00
Alexander Emelin
03e91eb1a6
updated sdk-go to v0.93.0, adapt tests ( #33769 )
2021-05-06 18:10:51 +03:00
Arve Knudsen
c2c1ec7d0f
Chore: Move from master to main branch ( #33693 )
...
* Chore: Move from master branch to main
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* CI: Upgrade build pipeline tool to v2
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-05-06 16:29:29 +02:00
Erik Sundell
4089455869
fix aws connect dimensions ( #33736 )
2021-05-05 21:25:30 +02:00
ying-jeanne
bd66c8dde3
SQL data sources: Convert to return data frames ( #32257 )
...
Convert SQL data sources to return data frames.
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Will Browne <will.browne@grafana.com >
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com >
2021-05-05 16:46:07 +02:00
dependabot[bot]
8dea72a763
Chore(deps): Bump go.opentelemetry.io/collector from 0.22.0 to 0.25.0 ( #33365 )
...
* Chore(deps): Bump go.opentelemetry.io/collector from 0.22.0 to 0.25.0
Bumps [go.opentelemetry.io/collector](https://github.com/open-telemetry/opentelemetry-collector ) from 0.22.0 to 0.25.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/v0.22.0...v0.25.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Apply changes to tempo code
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com >
2021-04-29 15:01:48 +02:00
Kyle Brandt
968935b8b7
TestData: Change predictable csv scenario to multi-series ( #33442 )
...
Allow multiple series in Predictable CSV Wave testdata scenario
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2021-04-27 16:35:43 -04:00
Giordano Ricci
c88af6e221
Elasticsearch: Add generic support for template variables ( #32762 )
...
* Elasticsearch: Add generic support for template variables
* format MovingAverage settings as numbers
* Move formatting logic to query builder & forma serial_diff settings as numbers
* modify presence check
* add todo
* minor fixes
* transform string values to numbers
* Move casting logic
* Slightly cleaner implementation
* Add BE tests
* Leverage elastic validation when string doesn't resolve to a numeric value
* move newly introduced test to testify
* add FE query_builder tests
* check error
* Parse values to float instead of int
* Fix tests & ParseFloat bit size
2021-04-26 16:54:23 +01:00
Ryan McKinley
7627b55ef4
TSDB: add deprecation comments to many tsdb structs ( #33281 )
2021-04-23 03:03:11 +02:00
Erik Sundell
743b77771f
fix dimension name ( #33271 )
2021-04-22 15:02:40 +02:00
Gábor Farkas
7ff6665ac2
Alerting: InfluxDB: InfluxQL: convert backend-code to use dataframes ( #32950 )
...
* alerting: influxdb: refactor unit-tests
* alerting: influxdb: converted code from timeseries-mode to dataframe-mode
* influxdb: simplify code
* influxdb: better function name
* influxdb: alerting: more tests
* influxdb: alerting: more tests
* influxdb: refactor
* influxdb: improved unit-test
* influxdb: simplified code
* influxdb: refactor reponse-parser code
* influxdb: refactor unit tests
* influxdb: alerting: use nicer names
Co-authored-by: dsotirakis <sotirakis.dim@gmail.com >
2021-04-22 08:43:17 +02:00
Marcus Efraimsson
dd0ba96d7c
Postgres: Fix time group macro when TimescaleDB is enabled and interval is less than a second ( #33153 )
...
Fixing a special case with time group macro when
using TimescaleDB and interval is lower than a second.
Fixes #33124
2021-04-21 12:54:49 +02:00
Ryan McKinley
18bbbaf53e
TestData: support boolean and strings in CSV metric response ( #33099 )
2021-04-20 11:17:06 -07:00
Ivana Huckova
4f7728738e
WIP ( #33025 )
2021-04-15 15:06:26 +02:00
Erik Sundell
dac9393061
CloudMonitoring: Use response unit instead of metric descriptor unit ( #32928 )
...
* improve unit detection
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com >
* goimports
* fix typo
* golint fixes
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
* pr feedback
* Update docs/sources/datasources/google-cloud-monitoring/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com >
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2021-04-14 16:41:02 +02:00
Giordano Ricci
cdb4785496
Elasticsearch: Allow omitting field when metric supports inline script ( #32839 )
...
* Elasticsearch: Allow omitting field when metric supports inline script
* Add tests for MetricEditor to show a None option
* Add tests for useFields hook
* Alerting: allow elasticsearch metrics without field
2021-04-14 15:18:06 +01:00
Kyle Brandt
2d7e980da7
testData: (backend) restore null/nan in predicatable scenarios ( #32855 )
2021-04-09 14:23:51 -04:00
Josh Hunt
5289603a59
AzureMonitor: fix migration error from older versions of App Insights queries ( #32372 )
...
* AzureMonitor: fix nill reference error with missing timeGrain
* add a test
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2021-04-06 11:33:46 +01:00
Alexander Emelin
93292f6eef
Live: update Streaming plugin definitions, put frame schema in subscribe result data ( #32561 )
...
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2021-04-02 19:41:45 +03:00
Ryan McKinley
d2afcdd415
Live: remove measurement controller ( #32622 )
2021-04-01 22:32:56 -07:00
Ryan McKinley
c7ea96940a
Arrow: move arrow support from frontend to backend only ( #32575 )
2021-04-01 10:30:08 -07:00
Ryan McKinley
1446d094b8
API: return query results as JSON rather than base64 encoded Arrow ( #32303 )
2021-03-31 08:35:03 -07:00
Dimitris Sotirakis
270a255c08
Add dash / and at @ signs escapes in regex ( #32495 )
2021-03-30 15:56:15 +03:00
Alexander Emelin
da05b7a07b
Live: http publish, refactor live interfaces ( #32317 )
2021-03-30 13:23:29 +03:00
Arve Knudsen
2c72f8babc
MSSQL: By default let driver choose port ( #32417 )
...
* MSSQL: By default let driver choose port
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-03-30 10:54:57 +02:00
Giordano Ricci
f7b408f99f
Elasticsearch: use application/x-ndjson content type for multisearch requests ( #32282 )
2021-03-29 23:41:45 +01:00
Marcus Efraimsson
b82c510581
Postgres/MySQL/MSSQL: Don't return connection failure details to the client ( #32408 )
...
For security reasons, log any SQL connection error
details rather than returning it to the client.
Fixes #26623
Fixes #22000
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-03-29 13:03:01 +02:00
Ivana Huckova
5ce9fa360d
Loki: Convert Loki query response to dataframes ( #32316 )
...
* Return dataFrames instead of series
* Add test for parseResponse
* Update pkg/tsdb/loki/loki.go
Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com >
* Fix linting, add test
Co-authored-by: Dimitris Sotirakis <sotirakis.dim@gmail.com >
2021-03-26 16:47:46 +01:00
Dimitris Sotirakis
2a5279911f
Add legend name to dataframes config ( #32356 )
2021-03-26 16:20:46 +02:00
Marcus Efraimsson
5985c199ae
SQL: Fix so that all captured errors are returned from sql engine ( #32353 )
2021-03-26 13:17:18 +01:00
Ryan McKinley
adda7c798a
Chore: use uppercase names in manual entry scenario ( #32334 )
2021-03-26 00:18:17 +01:00
Dimitris Sotirakis
95de48261b
Chore: Move away from convey - introduce testify ( #32295 )
...
* Generic OAuth: Prevent adding duplicated users
* Chore: Move away from convey - introduce testify
* Revert commits from another branch
* Fix formatting
2021-03-24 17:32:16 +01:00
Ryan McKinley
7f1b9eafda
Testdata: support null values in manual entry and return all data ( #32276 )
2021-03-24 08:45:43 +01:00
Alexander Emelin
336bc559a3
Basic streaming plugin support ( #31940 )
...
This pull request migrates testdata to coreplugin streaming capabilities,
this is mostly a working concept of streaming plugins at the moment,
the work will continue in the following pull requests.
2021-03-23 20:24:08 +03:00
Will Browne
d7862c50b8
Plugins: Migrate CloudWatch to backend plugin SDK ( #31149 )
...
* first pass
* add instance manager
* fix tests
* remove dead code
* unexport fields
* cleanup
* remove ds instance from executor
* cleanup
* inline im
* remove old func
* get error working
* unexport field
* let fe do its magic
* fix channel name
* revert some tsdb changes
* fix annotations
* cleanup
2021-03-23 16:32:12 +01:00
Dimitris Sotirakis
fdaac2b8fb
Notifications: InfluxDB - Fix regex to include metrics with hyphen in aliases ( #32224 )
...
* Notifications: InfluxDB - fix regex to include metrics with hyphen
* Add hyphen check in tests
2021-03-23 13:14:21 +02:00
Nirojan Vythilingam
d45b341fc1
Add cloudwatch metrics for managed RabbitMQ service ( #31838 )
...
Co-authored-by: Nirojan Vythilingam <nirojan@users.noreply.github.com >
2021-03-23 08:44:30 +01:00
Andrej Ocenas
3ef9cac640
Tempo: Return new version of dataframe schema directly from the backend ( #32116 )
...
* Return dataframe directly from the backend
* Streamline some transforms
* Fix lint issues
* Remove unused lib
* Fix datasource test
* Fix imports and add some typings
* Fix the typings and some tests
* Add private doc comment
* Remove private tag
* Add comments
* Fix some API docs issues
2021-03-22 19:09:15 +01:00
Tom Daly
55258f2795
32120: Add missing Redshift metrics to CloudWatch data source ( #32121 )
2021-03-22 08:58:16 +01:00
Kyle Brandt
026bf1f9ca
SSE/InfluxDB: Change InfluxQL to work with server side expressions ( #31691 )
...
* SSE/InfluxDB: Change InfluxQL to work with server side expressions
updates the request to handle EpochMS as the time range (which is what expressions sends)
and the response to use millisecond timestamps instead of seconds.
fixes #31604
similar to https://github.com/grafana/grafana/pull/31455
2021-03-18 08:02:37 -04:00
Dimitris Sotirakis
2d72b4e69e
Prometheus: Convert Prometheus query response to dataframes ( #31948 )
...
* Convert Prometheus query response to dataframes
* Add parseResponse tests
* Fixed lint imports
* Force use UTC as timezone in timeVector
* Updated test to check timezone
2021-03-18 08:40:26 +02:00
Arve Knudsen
87c3a2b790
PluginManager: Make Plugins, Renderer and DataSources non-global ( #31866 )
...
* PluginManager: Make Plugins and DataSources non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Replace outdated command
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* DashboardService: Ensure it gets constructed with necessary parameters
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* DashboardService: Ensure it gets constructed with necessary parameters
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove dead code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove FocusConvey
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Remove dead code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Undo interface changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Backend: Move tsdbifaces.RequestHandler to plugins.DataRequestHandler
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Rename to DataSourceCount
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Consolidate dashboard interfaces into one
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix dashboard integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-03-17 16:06:10 +01:00
Arve Knudsen
65c1cb62a7
Chore: Move tsdbifaces.RequestHandler to plugins.DataRequestHandler ( #31897 )
...
* Backend: Move tsdbifaces.RequestHandler to plugins.DataRequestHandler
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2021-03-12 18:26:07 +01:00