grafana/pkg
Piotr Jamróz 946da57b6a
Correlations: Allow creating correlations for provisioned data sources (#73737)
* Allow creating correlations for provisioned data sources

* Update docs

* Fix linting

* Add missing props

* Add missing props

* Fix linting

* Fix linting

* Clarify error name

* Removed error handling for a non-existing use case

* Create a list of deleted data datasources based on all configs

* Add org_id to correlations

* Add tests

* Allow org_id to be null in case org_id=0 is used

* Create organization to ensure stable id is generated

* Fix linting

* Ensure backwards compatibility

* Add deprecation information

* Update comments

* Override existing datasSource variable so the UID is retrieved correctly

* Migrate correlations indices

* Default org_id when migrating

* Remove redundant default

* Make PK non-nullable

* Post merge fixes

* Separate data sources / correlations provisioning

* Adjust comments

* Store new data sources in spy store so it can be used to test correlations as well

* Fix linting

* Update tests

* Ensure response is closed

* Avoid creating duplicates during provisioning

* Fix updating provisioned column and update tests

* Rename error message

* Fix linting errors

* Fix linting errors and rename variable

* Update test

* Update pkg/services/sqlstore/migrations/correlations_mig.go

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Remove unused error

* Fix lining

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-09-13 15:10:09 +02:00
..
api Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
build Flamegraph: Move to package (#73113) 2023-09-12 12:28:48 +02:00
bus Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
cmd server target command (#74408) 2023-09-06 13:11:57 -04:00
codegen Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
components Loki: Fix typo in Loki logger error message (#73860) 2023-09-07 15:06:49 -04:00
cuectx Kinds: publish kinds to kind registry (#67515) 2023-06-13 14:01:29 +02:00
events Alerting: Update rules version when folder title is updated (#53013) 2022-08-01 19:28:38 -04:00
expr Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
extensions Tempo: TraceQL query response streaming (#69212) 2023-07-14 15:10:46 +01:00
ifaces/gcsifaces Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
infra Tracing: Support remote, rate-limited, and probabilistic sampling in tracing.opentelemetry config section (#73587) 2023-09-11 12:13:29 -04:00
kinds DashboardScene: Repeat panel by variable (#74294) 2023-09-05 13:51:46 +02:00
kindsysreport Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
login Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
middleware Instrumentation: Add status_source label to request metrics/logs (#74114) 2023-09-11 12:13:13 +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 Chore: refactor grafana-apiserver a bit (#74177) 2023-08-31 09:12:01 -04:00
plugins Plugins: Refactor instrumentation to logger middleware (#74726) 2023-09-12 17:33:48 +02:00
registry Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
server Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
services Correlations: Allow creating correlations for provisioned data sources (#73737) 2023-09-13 15:10:09 +02:00
setting Alerting: Add configuration options to migrate to an external Alertmanager (#71318) 2023-09-05 11:24:35 -03:00
tests Correlations: Allow creating correlations for provisioned data sources (#73737) 2023-09-13 15:10:09 +02:00
tsdb Secure socks proxy: Allow overriding socks username (#74762) 2023-09-12 13:07:41 -06:00
util Instrumentation: Add status_source label to request metrics/logs (#74114) 2023-09-11 12:13:13 +02:00
web Auth: Implement requester interface in access control module (#74289) 2023-09-06 11:16:10 +02: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.