grafana/pkg
Santiago 73776f37eb
Alerting: Send state to the remote Alertmanager (#78538)
* Alerting: Introduce a Mimir client as part of the Remote Alertmanager

Mimir client that understands the new APIs developed for mimir. Very much a WIP still.

* more wip

* appease the linter

* more linting

* add more code

* get state from kvstore, encode, send

* send state to the remote Alertmanager, extract fullstate logic into its own function

* pass kvstore to remote.NewAlertmanager()

* refactor

* add fake kvstore to tests

* tests

* use FileStore to get state

* always log 'completed state upload'

* refactor compareRemoteConfig

* base64-encode the state in the file store

* export silences and nflog filenames, refactor

* log 'completed state/config upload...' regardless of outcome

* add values to the state store in tests

* address code review comments

* log error from filestore

---------

Co-authored-by: gotjosh <josue.abreu@gmail.com>
2023-11-29 12:49:39 +01:00
..
api RBAC: correctly fetch nested folder metadata (#78655) 2023-11-28 09:28:47 +00:00
apis K8s: Add subresource to the example apiserver (#78030) 2023-11-14 05:51:58 +02:00
build K8s: Use grafana executable for standalone api service (#77904) 2023-11-09 16:50:27 -08:00
bus Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
cmd Bug: Fix loading behavior with FlagExternalCorePlugins (#78388) 2023-11-21 11:51:13 +01:00
codegen Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
components imagestorage: fix templating of public_url option for webdav (#74885) 2023-09-28 00:35:10 +03: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 Plugins: Backend: Skip host environment variables (#77858) 2023-11-15 18:09:14 +01:00
extensions Chore: Replace gofpdf (#75805) 2023-10-02 15:32:35 +02:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
kinds DashboardSchema: Remove some old panel types (#78590) 2023-11-24 14:53:28 +01:00
kindsysreport Chore: Add app o11y viz as code owners for sparkline related stuff (#78310) 2023-11-17 14:02:52 +02:00
login Auth: Add TOML tags back to OAuthInfo (#78734) 2023-11-28 13:18:19 +01:00
middleware Avatar: Allow browser caching of /avatar/ (#78314) 2023-11-22 17:41:54 +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 Chore: refactor grafana-apiserver a bit (#74177) 2023-08-31 09:12:01 -04:00
plugins Chore: Change endpoint to check versions in cli (#78008) 2023-11-21 12:46:26 +01:00
registry Perf: Disable core kind registry (#78568) 2023-11-28 09:09:54 +01:00
server Perf: Disable core kind registry (#78568) 2023-11-28 09:09:54 +01:00
services Alerting: Send state to the remote Alertmanager (#78538) 2023-11-29 12:49:39 +01:00
setting RBAC: Check plugins:install globally (#78438) 2023-11-21 15:09:43 +01:00
tests Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
tsdb mysql/postgres: vendor in unit-test helper function (#78744) 2023-11-29 08:07:14 +01:00
util Loki: Fix scope of labels variable being wrong (#78417) 2023-11-21 10:14:21 +01: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.