grafana/pkg/tests/api
Kyle Brandt 38603b1a9e
Prometheus: Check for errors on json response parsing (#73788)
- The util/converter Prometheus response json parse was not checking for errors while parsing. It now does. In particular, if `[dataproxy]/response_limit` is set in Grafana's config, it will now recognize the limit error.
- Fixes #73747
- Adds `jsonitere` package, which wraps json-iterator/go's Iterator's Methods with methods that return errors, so errcheck linting can be relied upon
- Impact:
  - If something was sending malformed JSON to the prometheus or loki datasources, the previous code might have accepted that and partially processed the data
  - Before there may have been partial data with no error, where as no there may be errors but they will have no partial results, just the error.
2023-08-28 15:53:50 +03:00
..
alerting Update grafana/alerting to 0025eb4 (#73808) 2023-08-25 15:20:17 +03:00
azuremonitor Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
correlations Correlations: Add organization id (#72258) 2023-08-24 09:39:30 +02:00
dashboards DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
elasticsearch elasticsearch: removed code related to removed esVersion field (#65439) 2023-04-03 14:47:10 +02:00
graphite Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
influxdb InfluxDB: Return better error messages from backend (#70066) 2023-07-04 13:55:08 +02:00
loki Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
metrics remove flaky cloudwatch test (#45800) 2022-02-23 13:59:53 -06:00
opentdsb Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
plugins Plugins: Standardize Golang enum naming convention (#69449) 2023-06-08 12:21:19 +02:00
prometheus Prometheus: Check for errors on json response parsing (#73788) 2023-08-28 15:53:50 +03:00
stats Alerting: Fix stats that display alert count when using unified alerting (#64852) 2023-03-17 11:19:18 +00:00