cfae9d20d2
Add errorsource to InfluxDB datasource plugin fixes #1072 ( #99900 )
...
This PR adds `backend.ErrorSourceDownstream` values to all `backend.DataResponse`
values where it's certain that the error wasn't the result of the
InfluxDB datasource plugin.
2025-02-04 09:33:32 -05:00
08276bd8e7
InfluxDB: Revert calculation of maxPointsEnforced value ( #88809 )
...
revert calculation of maxPointsEnforced
2024-06-05 21:43:04 +02:00
c73bbf19a1
InfluxDB: Introduce maxDataPoints setting for flux variable query editor ( #87935 )
...
* Introduce custom variable support
* Remove comment lines
* introduce maxDataPoints
* fix tests
* update
* fix unit tests
* remove new line
2024-06-03 12:09:33 +03:00
7d0017f3f2
InfluxDB: Use grafana timeout value for flux queries ( #81252 )
...
* use grafana timeout for flux queries
* get timeout from settings
* fix test
2024-01-25 17:05:08 +01:00
1ac9e7eaab
InfluxDB: Fix handling flux response with no time and value column ( #72833 )
...
* Upgrade the influxdb-client-go version
* Handle flux response with no time and value column
2023-08-08 15:00:52 +02:00
0bdb105df2
Chore: Remove xorcare/pointer dependency ( #63900 )
...
* Chore: remove pointer dependency
* fix type casts
* deprecate xorcare/pointer library in linter
* rooky mistake
2023-03-06 05:23:15 -05:00
f8ec35e643
Chore: Fix goimports grouping ( #62427 )
...
* fix goimports order
* fix goimports order
2023-01-30 09:38:51 +01:00
facf2b1ee8
Chore: Update prometheus, loki, graphite and influx plugins to support contextual logs. ( #57708 )
2022-10-27 12:05:06 -04:00
062d255124
Handle ioutil deprecations ( #53526 )
...
* replace ioutil.ReadFile -> os.ReadFile
* replace ioutil.ReadAll -> io.ReadAll
* replace ioutil.TempFile -> os.CreateTemp
* replace ioutil.NopCloser -> io.NopCloser
* replace ioutil.WriteFile -> os.WriteFile
* replace ioutil.TempDir -> os.MkdirTemp
* replace ioutil.Discard -> io.Discard
2022-08-10 15:37:51 +02:00
64d93498de
Chore: Update grafana-plugin-sdk-go to v0.136.0 ( #50127 )
2022-06-03 08:25:52 -04:00
cec12676e7
Chore: Refactor influxdb to use SDK contracts ( #36189 )
...
* Use backend SDK for influxdb
* Remove BasicAuth condition, some comments
* Remove not used fields from datasource info
* Register InfluxDBService
* Fix casting and make HTTPClientProvider exported
* Remove unused function
* Remove empty line
* Update pkg/tsdb/influxdb/flux/query_models.go
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
* Read interval from TimeRange instead of Interval
* Change pkg name from datasource->models, minor changes
* Use testify instead of convey
* Add new calculator logic and fix pointer semantic for dsInfo
* Initialise parsers, use tsdb interval pkg
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2021-07-19 11:32:33 +02:00
e4ece0530a
InfluxDB: Flux: fix backward compatibility for some queries ( #36603 )
...
* influxdb: flux: better backward-compatibility
* added comment-explanation
2021-07-09 17:37:14 +02:00
38b030e2a4
InfluxDB: Flux: timestamp-column has to go first ( #35036 )
2021-06-01 16:03:02 +02:00
ab26c4dfa4
InfluxDB: Flux: handle boolean data-columns ( #34479 )
...
* InfluxDB: Flux: handle boolean data-columns
* normalize data-type strings based on documentation
* reference missing data type
2021-05-25 17:22:04 +02:00
348e76fc8e
Datasource: Shared HTTP client provider for core backend data sources and any data source using the data source proxy ( #33439 )
...
Uses new httpclient package from grafana-plugin-sdk-go introduced
via grafana/grafana-plugin-sdk-go#328 .
Replaces the GetHTTPClient, GetTransport, GetTLSConfig methods defined
on DataSource model.
Longer-term the goal is to migrate core HTTP backend data sources to use the
SDK contracts and using httpclient.Provider for creating HTTP clients and such.
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-19 23:53:41 +02:00
2633f245ba
InfluxDB: Flux: Improve handling of complex response-structures ( #33823 )
2021-05-11 12:36:04 +02:00
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
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
cfaca42e97
InfluxDB: update flux library and support boolean label values ( #29310 )
2020-11-23 13:19:52 -08:00
0bc67b032a
InfluxDB: return a table rather than an error when timeseries is missing time ( #27320 )
2020-09-01 15:06:38 -07:00
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
a2a6b9448f
InfluxDB: exclude result and table column from Flux table results ( #27081 )
2020-08-20 10:52:46 -07:00
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
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
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
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
1f271d06e9
InfluxDB: flux query result can cause crash ( #26329 )
2020-07-14 11:06:27 -07:00
07f8178995
InfluxDB: include sample response data for each test case ( #26248 )
2020-07-13 11:15:36 -07:00
3a9a4f4a49
InfluxDB/Flux: support timeseries with a renamed time field ( #25910 )
2020-06-30 16:56:03 -07:00
740a9ad5f9
InfluxDB: support aggregate results ( #25726 )
2020-06-22 13:44:41 -07:00
05ed781184
InfluxDB: use released client 1.3.0 ( #25725 )
2020-06-22 10:19:26 -07:00
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