grafana/pkg
Steve Simpson 6ea97e41fb
Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600)
* Alerting: Consistently return Prometheus-style responses from rules APIs.

This commit is part refactor and part fix. The /rules API occasionally returns
error responses which are inconsistent with other error responses. This fixes
that, and adds a function to map from Prometheus error type and HTTP code.

* Fix integration tests

* Linter happiness

* Make linter more happy

* Fix up one more place returning non-Prometheus responses
2024-04-19 21:03:20 +02:00
..
api RBAC: Add actionsets struct and write path (#86108) 2024-04-19 15:38:14 +01:00
apimachinery Plugins: Expose backendplugin for client proto interface (#86207) 2024-04-17 18:47:01 +02:00
apis Scopes: Add basic integration tests (#85351) 2024-03-29 16:12:28 +02:00
apiserver Plugins: Expose backendplugin for client proto interface (#86207) 2024-04-17 18:47:01 +02:00
build K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd Plugins: Pass cancellable context during API server creation (#86545) 2024-04-19 09:22:14 +03:00
codegen Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
components Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
extensions K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
generated K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Tracing: Allow otel service name and attributes to be overridden from env (#85937) 2024-04-11 15:18:46 +02:00
kinds Schemas: Replace registry generation and github workflow (#83490) 2024-03-13 18:05:21 +02:00
login/social samlsettings: api integration (#84300) 2024-03-25 10:54:45 +01:00
middleware Feature toggles: Remove dashboardEmbed toggle (#86587) 2024-04-19 12:48:08 +02:00
mocks/mock_gcsifaces Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
models Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
modules Storage Api: Add metrics (#85316) 2024-04-08 08:35:01 -06:00
plugins Return plugin error when requesting settings (#86052) 2024-04-18 14:29:02 +02:00
promlib Prometheus: (Instrumentation) Add rawExpr (pre-interpolation) to traces (#86449) 2024-04-17 19:53:38 +02:00
registry QueryService: Add feature toggles to better support testing (#86493) 2024-04-19 12:26:21 +03:00
server RBAC: Add actionsets struct and write path (#86108) 2024-04-19 15:38:14 +01:00
services Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600) 2024-04-19 21:03:20 +02:00
setting Alerting: Remove isDefault field from receivers (Alertmanager configuration) (#86605) 2024-04-19 15:44:20 +02:00
tests Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600) 2024-04-19 21:03:20 +02:00
tsdb MSSQL: Add SQL_VARIANT converter and update test (#85823) 2024-04-17 16:49:51 -05:00
util Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657) 2024-04-11 19:32:31 -03:00
web Image Rendering: Add settings for default width, height and scale (#82040) 2024-02-26 13:27:34 +01:00
README.md Chore: Move all backend contribution documents to a single directory (#61140) 2023-01-11 11:16:52 +01:00
ruleguard.rules.go Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00

This directory contains the code for the Grafana backend.

The contributor documentation for Grafana's backend is in /contribute/backend/README.md.