grafana/pkg
Matthew Jacobson 0ce1ccd6f9
Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655)
AM config applied via API would use the PostableUserConfig as the AM raw
config and also the hash used to decide when the AM config has changed.
However, when applied via the periodic sync the PostableApiAlertingConfig would
be used instead.

This leads to two issues:
- Inconsistent hash comparisons when modifying the AM causing redundant applies.
- GetStatus assumed the raw config was PostableUserConfig causing the endpoint
to return correctly after a new config is applied via API and then nothing once
 the periodic sync runs.

Note: Technically, the upstream GrafanaAlertamanger GetStatus shouldn't be
returning PostableUserConfig or PostableApiAlertingConfig, but instead
GettableStatus. However, this issue required changes elsewhere and is out of
scope.
2024-01-31 21:05:30 +02:00
..
aggregator K8s: add the CRD server to the grafana-aggregator component (pkg/cmd) (#80759) 2024-01-17 12:21:24 -08:00
api K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
apis K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
build Grafana Build: fix release process not publishing latest storybook (#81412) 2024-01-26 15:22:05 -07:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
codegen K8s: Move GrafanaMetaAccessor into grafana-apiserver and remove usage of kinds metadata (#79602) 2024-01-12 16:18:14 -05:00
components Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
cuectx Perf: Disable core kind registry (#78568) 2023-11-28 09:09:54 +01:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr DataSources: Add datasource fetching + querying interface (#80749) 2024-01-19 15:56:52 +01:00
extensions Chore: Replace gofpdf (#75805) 2023-10-02 15:32:35 +02: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 RBAC: Add metric to count search user permissions cache hits (#81451) 2024-01-30 10:37:47 +01:00
kinds DashboardSchema: Add options to VariableModel (#79236) 2024-01-23 10:56:20 -05:00
kindsysreport Chore: Update CODEOWNERS for end of BI (#80522) 2024-01-15 11:53:22 +02:00
login/social Auth: Add validation to Generic OAuth API and UI (#81345) 2024-01-29 12:04:22 +01:00
middleware Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01: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: Unified Storage based on Entity API (#71977) 2023-12-06 15:21:21 -05:00
plugins K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
registry K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
server Chore: Add some tests for the Create method (#81364) 2024-01-30 14:15:12 +01:00
services Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655) 2024-01-31 21:05:30 +02:00
setting AuthZ: add headers for IP range AC checks for cloud data sources (#80208) 2024-01-31 18:09:24 +01:00
tests K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
tsdb K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
util Prometheus: (Dataplane) Set FrameTypeVersion on Scalar type responses (#81491) 2024-01-29 11:39:23 -05:00
web Chore: Upgrade Go to 1.21.3 (#77304) 2023-11-01 09:17:38 -07: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.