grafana/pkg/tsdb
Christian Simon a1f2d0e205
Prometheus: Reduce allocations parsing exemplars (#58959)
* Prometheus: Reduce allocations parsing exemplars

This reduces allocations for parsing exemplars.

name            old time/op    new time/op    delta
ExemplarJson-8    24.7ms ±15%    17.6ms ± 2%  -28.72%  (p=0.008 n=5+5)

name            old alloc/op   new alloc/op   delta
ExemplarJson-8    4.70MB ± 0%    3.58MB ± 0%  -23.79%  (p=0.008 n=5+5)

name            old allocs/op  new allocs/op  delta
ExemplarJson-8     72.6k ± 0%     69.1k ± 0%   -4.81%  (p=0.008 n=5+5)

* Ensure pairs is reset
2023-01-18 16:42:22 +01:00
..
azuremonitor AzureMonitor: Keep resource in the URL for single requests (#61414) 2023-01-13 12:30:45 +01:00
cloudmonitoring GoogleCloudMonitoring: Adapt frontend to the new API format (#60173) 2022-12-20 12:47:49 +01:00
cloudwatch Cloudwatch: Add support for template variables in new log group picker (#61243) 2023-01-13 14:03:08 -05:00
elasticsearch elastic: backend: removed unused time-field (#61362) 2023-01-12 15:52:32 +00:00
grafanads DataSources: Remove unused cfg from core Grafana data source (#56188) 2022-10-04 06:32:25 -04:00
graphite Graphite: Fix bug in wildcard queries to Graphite plugin (#60549) 2022-12-30 13:53:42 -05:00
influxdb Chore: Update grafana-plugin-sdk-go to v0.142.0 (#58115) 2022-11-03 18:34:27 +01:00
intervalv2 Refactor time durations (#58484) 2022-11-22 15:09:15 +08:00
legacydata Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
loki Loki/Prometheus: Change signature - return non-reference from ReadPrometheusStyleResult (#57209) 2023-01-13 09:00:39 +01:00
mssql SQL Datasources: Use health check for config test (#59867) 2022-12-19 17:17:52 +01:00
mysql SQL Datasources: Use health check for config test (#59867) 2022-12-19 17:17:52 +01:00
opentsdb Chore: Update sqleng, elasticsearch, tempo and opentsdb plugins to support contextual logs. (#57777) 2022-11-02 10:03:50 -04:00
parca Remove fire text in Phlare ds (#59484) 2022-11-30 17:22:47 +00:00
phlare Phlare: Update client code to use v0.1.2 API. (#60941) 2023-01-10 14:16:45 +00:00
postgres SQL Datasources: Use health check for config test (#59867) 2022-12-19 17:17:52 +01:00
prometheus Prometheus: Reduce allocations parsing exemplars (#58959) 2023-01-18 16:42:22 +01:00
sqleng SQL Datasources: Use health check for config test (#59867) 2022-12-19 17:17:52 +01:00
tempo Chore: Update sqleng, elasticsearch, tempo and opentsdb plugins to support contextual logs. (#57777) 2022-11-02 10:03:50 -04:00
testdatasource Test Datasource: do not use global random (#61116) 2023-01-09 10:08:58 -05:00