grafana/pkg/tsdb
Jorge Luis Betancourt e4f2006cce
Elasticsearch: Fix calculation of trimEdges (#56148)
* Elasticsearch: Fix calculation of trimEdges

When a value of trimEdges is set greater than 1 we need to drop both the
first and last sample of the data from the response.

* Elasticsearch: Fix reading trimEdges from the query settings

Currently the trimEdges property in the JSON panel is stored as a string
and not directly as a number.

This caused that the reading of the value failed in the go backend
because the simplejson.Int() method doesn't properly handle this case.
This failure when decoding the value goes unnoticed because of the early
return causing the trimEdges configuration to be ignored.

* Refactor castToInt to also return an error

Add a new test case that sets the `trimEdges` property as a quoted
number.
2022-10-14 12:53:12 +02:00
..
azuremonitor AzureMonitor: Allow multiple resources in the API for Metrics (#56118) 2022-10-07 14:57:01 +02:00
cloudmonitoring Cloud Monitoring: Fix missing data when result is paginated (#56270) 2022-10-13 10:58:07 +02:00
cloudwatch CloudWatch: Add missing AWS/Prometheus metrics (#54990) 2022-09-22 22:25:33 -04:00
elasticsearch Elasticsearch: Fix calculation of trimEdges (#56148) 2022-10-14 12:53:12 +02:00
grafanads DataSources: Remove unused cfg from core Grafana data source (#56188) 2022-10-04 06:32:25 -04:00
graphite Add error information to graphite queries tracing (#55249) 2022-10-04 10:30:27 +02:00
influxdb Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
intervalv2 Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
legacydata Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
loki Propagate all headers on main QueryData (#56896) 2022-10-13 14:18:53 -05:00
mssql mssql: explicit disable encryption when its disabled (#46546) 2022-03-30 15:14:04 +01:00
mysql Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
opentsdb Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
postgres Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
prometheus Prometheus: Add Exemplar sampling for streaming parser (#56049) 2022-10-04 08:40:01 -04:00
sqleng Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
tempo Tempo: Fix unexpected trimming of leading zeroes in traceID (#55167) 2022-09-28 15:49:12 +02:00
testdatasource Plugins: Introduce new Flame graph panel (#56376) 2022-10-07 11:39:14 +01:00