grafana/pkg
Andreas Christou df2bb6be0a
Graphite: Backend tag values autocomplete endpoint (#110773)
* Add lint rules

* Backend decoupling

- Add standalone files
- Add graphite query type
- Add logger to Service
- Create logger in the ProvideService method
- Use a pointer for the HTTP client provider
- Update logger usage everywhere
- Update tracer type
- Replace simplejson with json
- Add dummy CallResource and CheckHealth methods
- Update tests

* Update ConfigEditor imports

* Update types imports

* Update datasource

- Switch to using semver package
- Update imports

* Update store imports

* Update helper imports and notification creation

* Update context import

* Update version numbers and logic

* Copy array_move from core

* Test updates

* Add required files and update plugin.json

* Update core references and packages

* Remove commented code

* Update wire

* Lint

* Fix import

* Copy null type

* More lint

* Update snapshot

* Refactor backend

- Split query logic into separate file
- Move utils to separate file

* Add health-check logic

- Support backend healthcheck if the FF is enabled

* Remove query import support as unneeded

* Add test

* Add util function for decoding responses

* Add events types

* Add resource handler

* Add events handler and generic resource req handler

* Tests

* Update frontend

- Add types
- Update events function to support backend requests

* Lint and typing

* Lint

* Add metrics find endpoint

- Add types
- Add generic response parser
- Add endpoint
- Tests

* Update FE functoin to use backend endpoint

* Lint

* Simplify request

* Update test

* Metrics expand type

* Extract shared logic and add metric expand endpoint

* Update tests

* Call metric expand from backend

* Rename type for clarity

* Add get resource req handler

* Refactor doGraphiteRequest, parseResponse

Update tests

* Migrate functions endpoint to backend

* Support tags autocomplete in backend

- Add tests
- Add types
- Remove unneeded comments

* Support tag values autocomplete

- Remove unused frontend endpoints
- Add types
- Update tests

* Add tests

* Review

* Review

* Fix packages

* Format

* Fix merge issues

* Review

* Fix undefined values

* Extract request creation

- Add method for create requests generically with tests
- Replace usage in query method
- Update usages in resource handlers
- Update tests
- Update types

* Lint
2025-09-15 11:35:29 +01:00
..
aggregator Chore: go.mod updates (#110957) 2025-09-15 09:01:45 +00:00
api Authz: Remove legacy API Key permissions (#110860) 2025-09-12 13:59:37 +02:00
apimachinery Chore: go.mod updates (#110957) 2025-09-15 09:01:45 +00:00
apis Revert: DataSource: Support config CRUD from apiservers (#106996) (#110342) 2025-08-29 14:49:57 +02:00
apiserver Chore: go.mod updates (#110957) 2025-09-15 09:01:45 +00:00
build Chore: update otel v1.37.0 to v1.38.0 (#110985) 2025-09-12 10:11:56 +00:00
bus
clientauth/middleware Feature-Flag service: signing middleware for cloud usecase (#107745) 2025-07-17 09:50:25 -07:00
cmd Plugins: StaticFS should implement FSRemover (#110706) 2025-09-09 15:33:05 +01:00
codegen Chore: update otel v1.37.0 to v1.38.0 (#110985) 2025-09-12 10:11:56 +00:00
components Authz: Remove legacy API Key permissions (#110860) 2025-09-12 13:59:37 +02:00
configprovider Configprovider: Update the interface to propagate errors (#110814) 2025-09-11 17:26:54 +03:00
events Chore: Remove unused bus.Bus events (#110738) 2025-09-08 10:47:16 +00:00
expr SQL Expressions: Add Exemplars to instrumentation (#110481) 2025-09-03 17:25:44 +00:00
extensions Alerting: Add alertenrichment dependency to go.mod (#110813) 2025-09-09 13:34:41 +00:00
generated Provisioning: Extract to apps submodule (#109074) 2025-08-01 14:35:18 -05:00
ifaces/gcsifaces
infra Stats: Add repository stats (#110989) 2025-09-11 16:36:25 -06:00
kinds Dashboard Schema V2: Support panel actions (#110842) 2025-09-12 11:31:05 -06:00
login/social Replace check for integration tests. (#110707) 2025-09-08 15:49:49 +02:00
middleware Metrics: Add http_response_size_bytes metric (#110428) 2025-09-03 14:47:38 +01:00
mocks/mock_gcsifaces
models
modules Background Services: Lifecycle o11y (#110570) 2025-09-10 14:33:03 -04:00
operators Use concurrent informer for iam-folder-reconciler (#110987) 2025-09-11 15:57:07 -05:00
plugins Chore: update otel v1.37.0 to v1.38.0 (#110985) 2025-09-12 10:11:56 +00:00
promlib Chore: go.mod updates (#110957) 2025-09-15 09:01:45 +00:00
registry Alerting: Rename expression elements of Rules APIs (#110914) 2025-09-12 22:15:55 +00:00
semconv Chore: update otel v1.37.0 to v1.38.0 (#110985) 2025-09-12 10:11:56 +00:00
server Stats: Add repository stats (#110989) 2025-09-11 16:36:25 -06:00
services AccessControl: Remove deprecated scope split migration (#111071) 2025-09-15 11:47:08 +02:00
setting Chore: go.mod updates (#110957) 2025-09-15 09:01:45 +00:00
storage Unified Storage: Adds pruner for kv eventstore (#110785) 2025-09-12 14:40:16 -06:00
tests ShortURL: Use the new k8s api in the frontend (#110537) 2025-09-12 20:23:50 -03:00
tsdb Graphite: Backend tag values autocomplete endpoint (#110773) 2025-09-15 11:35:29 +01:00
util Provisioning: Remove again dependency cycle between provisioning app and grafana (#110863) 2025-09-10 14:40:44 +02:00
web Security: Fixes for CVE-2025-6197 and CVE-2025-6023 (#108330) 2025-07-18 09:06:26 -06:00
README.md
ruleguard.rules.go

README.md

This directory contains the code for the Grafana backend.

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