Gábor Farkas
8d39e6640c
InfluxDB: Improve maxDataPoints error-message in Flux-mode, raise limits ( #31259 )
...
* influxdb: flux: improve error-message
* influxdb: flux: raise max-points tolerance limit
* influxdb: flux: better error-message
* influxdb: flux: different approach to nice-error-message-generation
* influxdb: flux: removed unnecessary whitespace
* influxdb: flux: better error message, new approach
* influxdb: flux: test max-data-points-exceeded situtation
2021-03-02 18:33:51 +01:00
Gábor Farkas
1e7f2e93e6
InfluxDB: handle columns named "table" ( #30985 )
...
* influxdb: flux: manually calculate table-group-key
* influxdb: flux: added explanation about the group-key
2021-02-23 16:44:33 +01:00
Andrej Ocenas
e0448513eb
Influx: Make max series limit configurable and show the limiting message if applied ( #31025 )
...
* Add configuration in ConfigEditor and default to 1000
* Show data in explore if any even if there is an error
* Update pkg/tsdb/influxdb/flux/executor.go
* Better handling of defaults
* Add test for runQuery to show data even with error
* Update public/app/store/configureStore.ts
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
* Update public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Update tooltip
* Update input
* Lint fixes
* Update snapshots
* Update decorator tests
Co-authored-by: Giordano Ricci <gio.ricci@grafana.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-02-10 15:23:19 +01:00
David
1bdd3eb3dd
Influx: Show all datapoints for dynamically windowed flux query ( #30688 )
2021-01-28 11:36:17 +01:00
Emil Hessman
2b9387210b
Chore: Rewrite tsdb influxdb test to standard library ( #30091 )
2021-01-07 09:31:34 +01:00
Emil Hessman
5c0094feef
Chore: Rewrite influxdb query parser test to standard library ( #29940 )
2020-12-21 07:51:46 +01:00
Arve Knudsen
c2cad26ca9
Chore: Disable default golangci-lint filter ( #29751 )
...
* Disable default golangci-lint filter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: Fix linter warnings
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 09:32:06 +01:00
Ryan McKinley
cfaca42e97
InfluxDB: update flux library and support boolean label values ( #29310 )
2020-11-23 13:19:52 -08:00
Arve Knudsen
4dd7b7a82d
Chore: Remove unused Go code ( #28852 )
...
* Chore: Remove more unused Go code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 11:51:31 +01:00
Arve Knudsen
574553ec7b
Chore: Fix issues found by staticcheck ( #28802 )
...
* Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-05 11:29:39 +01:00
Arve Knudsen
a078e40238
Settings: Rename constants/variables to follow Go naming standards ( #28002 )
...
* settings: Rename constants/variables to follow Go naming standards
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-10-02 15:45:45 +02:00
Arve Knudsen
a5d9196a53
Chore/fix lint issues ( #27704 )
...
* Chore: Fix linting issues
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-09-22 16:22:19 +02:00
Ryan McKinley
6b0f56b726
InfluxDB: Alerting issue, reasonable defaults for interval and maxDataPoints ( #27463 )
2020-09-09 09:34:17 +02:00
Ryan McKinley
ae385983f4
InfluxDB: support flux editor for template queries ( #27370 )
2020-09-03 14:11:39 -07:00
Ryan McKinley
0bc67b032a
InfluxDB: return a table rather than an error when timeseries is missing time ( #27320 )
2020-09-01 15:06:38 -07:00
Ryan McKinley
cd9a773427
InfluxDB: use converters from SDK ( #27138 )
2020-08-24 13:19:32 -07:00
Arve Knudsen
c207ea12a4
InfluxDB: Clean up tests ( #27135 )
...
* InfluxDB: Clean up tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* InfluxDB: Platform agnostic paths
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-21 18:34:21 +02:00
Ryan McKinley
a2a6b9448f
InfluxDB: exclude result and table column from Flux table results ( #27081 )
2020-08-20 10:52:46 -07:00
Arve Knudsen
0e1e85656b
InfluxDB: Upgrade InfluxDB in devenv ( #26983 )
...
* InfluxDB: Upgrade InfluxDB in devenv
* InfluxDB: De-export symbols
* InfluxDB: Remove unused code
* devenv: Make InfluxDB version configurable
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-19 09:23:11 +02:00
Arve Knudsen
be3bf80749
InfluxDB: Upgrade to latest InfluxDB Go client ( #27021 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-17 08:32:26 +02:00
Arve Knudsen
50ebbb625e
InfluxDB: Upgrade Go client, use data source HTTP client ( #27012 )
...
* InfluxDB: Upgrade Go client, use data source HTTP client
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove unnecessary Close
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-14 18:40:02 +02:00
Arve Knudsen
c63bbbaec3
InfluxDB: Close Flux query results ( #26917 )
...
* InfluxDB: Drop ctxhttp usage
* InfluxDB: Clean up code
* InfluxDB: Close query results
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-13 17:50:53 +02:00
Arve Knudsen
37c278c8f3
InfluxDB: Less chatty logging ( #26850 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-08-07 09:18:57 +02:00
Paul Sneddon
a0c1e53fd0
Flux: Increase series limit for Flux queries ( #26746 )
2020-07-31 15:14:58 -07:00
Paul Sneddon
ec756f3729
Flux: Ensure connections to InflxuDB are closed ( #26735 )
...
* Flux: Ensure connections to InflxuDB are closed
2020-07-31 23:11:51 +02:00
Arve Knudsen
d4e4cb4c71
Chore: Enable Go linter gocritic ( #26224 )
...
* Chore: Enable gocritic linter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-16 14:39:01 +02:00
Ryan McKinley
1f271d06e9
InfluxDB: flux query result can cause crash ( #26329 )
2020-07-14 11:06:27 -07:00
Ryan McKinley
07f8178995
InfluxDB: include sample response data for each test case ( #26248 )
2020-07-13 11:15:36 -07:00
Arve Knudsen
41d432b5ae
Chore: Enable whitespace linter ( #25903 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-07-06 20:17:28 +02:00
Ryan McKinley
3a9a4f4a49
InfluxDB/Flux: support timeseries with a renamed time field ( #25910 )
2020-06-30 16:56:03 -07:00
Arve Knudsen
3651a8e976
Chore: Disable scopelint for tests ( #25923 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-06-30 11:05:47 +02:00
Arve Knudsen
d1e6214a4a
Chore: Enable scopelint Go linter ( #25896 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-06-29 17:04:38 +02:00
Ryan McKinley
740a9ad5f9
InfluxDB: support aggregate results ( #25726 )
2020-06-22 13:44:41 -07:00
Ryan McKinley
8d1ed33e20
InfluxDB: different config UI for 1x vs 2x ( #25723 )
2020-06-22 13:03:34 -07:00
Ryan McKinley
05ed781184
InfluxDB: use released client 1.3.0 ( #25725 )
2020-06-22 10:19:26 -07:00
Kyle Brandt
36fd746c5d
Influx/flux: include interpolated query with error ( #25665 )
...
with execution errors, return a Frame that has Meta.ExecutedQueryString.
2020-06-18 07:45:55 -04:00
Marcus Efraimsson
bd8a04a6a5
InfluxDB: Fix invalid memory address or nil pointer dereference when schema is missing in URL ( #25565 )
...
Add guard if parsing url fails in influxdb backend data source.
Fixes #25242
2020-06-12 16:04:09 +02:00
Ryan McKinley
5f1f820bb9
Influx: Support flux in the influx datasource ( #25308 )
...
* add flux
* add token to datasource config editor
* add backend for flux
* make the interpolated query available in query inspector
* go mod tidy
* Chore: fixes a couple of strict null errors in influxdb plugin
Co-authored-by: kyle <kyle@grafana.com>
Co-authored-by: Lukas Siatka <lukasz.siatka@grafana.com>
2020-06-10 15:26:24 -04:00
Arve Knudsen
07582a8e85
Chore: Fix various spelling errors in back-end code ( #25241 )
...
* Chore: Fix various spelling errors in back-end code
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>>
2020-06-01 17:11:25 +02:00
zhulongcheng
9ccdd4b824
TSDB: show influxdb error message ( #24393 )
...
Closes #21647
Signed-off-by: zhulongcheng <zhulongcheng.dev@gmail.com>
2020-05-18 13:56:23 +02:00
Arve Knudsen
bb50fc5965
pkg/tsdb: Check errors ( #19837 )
...
Check errors in pkg/tsdb.
2019-10-22 16:16:53 +02:00
zhulongcheng
2fff8f77dc
move log package to /infra ( #17023 )
...
ref #14679
Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
2019-05-13 08:45:54 +02:00
Stephen SORRIAUX
3866839b19
Datasources: add support for POST HTTP verb for InfluxDB ( #16690 )
...
A new parameter `queryMode` is added to the InfluxDB datasource to provide a way to use POST instead of GET when querying the database. This prevents to get any error when querying the database with a heavy request.
Default configuration is kept to GET for backward compatibility. Tests and documentation have been added for this new behaviour.
2019-05-02 15:30:37 +02:00
Oleg Gaidarenko
54c1bf0cc9
Chore: a bit of spring cleaning ( #16710 )
...
* Chore: use early return technic everywhere
And enable "indent-error-flow" revive rule
* Chore: remove if-return rule from revive config
* Chore: improve error messages
And enable "error-strings" revive rule
* Chore: enable "error-naming" revive rule
* Chore: make linter happy
* Chore: do not duplicate gofmt execution
* Chore: make linter happy
* Chore: address the pull review comments
2019-04-23 11:24:47 +03:00
Andrej Ocenas
66f6e16916
Security: Store datasource passwords encrypted in secureJsonData ( #16175 )
...
* Store passwords in secureJsonData
* Revert unnecessary refactors
* Fix for nil jsonSecureData value
* Remove copied encryption code from migration
* Fix wrong field reference
* Remove migration and provisioning changes
* Use password getters in datasource proxy
* Refactor password handling in datasource configs
* Add provisioning warnings
* Update documentation
* Remove migration command, moved to separate PR
* Remove unused code
* Set the upgrade version
* Remove unused code
* Remove double reference
2019-04-15 11:11:17 +02:00
Floyd May
33d1d427bc
InfluxDB: Fix tag names with periods in alerting ( #16255 )
...
Updates regex to match tag names with periods when generating
series names in alerting evaluation (backend).
Fixes #9148
2019-03-27 23:13:12 +07:00
Marcus Efraimsson
6b8e3122f8
chore(influx): no point of reading response when bad status ( #16212 )
...
There's no point in reading the body response without using
the result so removing it.
Fixes #9199
Ref #16207
2019-03-26 12:10:24 +07:00
Ramon Carvalho Maciel
d791a6211d
fix(InfluxDB): Reads body and close request body even for error status codes ( #16207 )
2019-03-25 17:42:26 +01:00
z0029c4
13974cdd28
added support for influxdb non_negative_difference function in tsdb
2019-02-13 18:12:35 +05:30
z0029c4
8cb1e5b918
added support for influxdb non_negative_difference function in tsdb for alerting
2019-02-13 17:55:31 +05:30