mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 18:22:18 +08:00

* Upgrade grafana-app-sdk to 0.31.0 What This commit upgrades the app SDK to 0.31.0 and re-generates codegen files. It doesn't touch alerting schemas, because those are quite old and should be upgraded separately. This commit slightly alters the schemas for the investigations app, because the codegen is not happy with the current syntax, for some reason (probably has to do with CUE upgrades in `cog`). Why To make sure we use up-to-date SDK version and remove the workaround for the `defencoding=none` bug that required us to clean up generated CRD files. Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com> * Revert changes to golden file for store tests Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com> --------- Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
Data Plane Aggregator
Testing queries
custom.ini
changes:
[feature_toggles]
kubernetesAggregator = true
dataplaneAggregator = true
grafanaAPIServerEnsureKubectlAccess = true
- start grafana:
make run
- enable aggregation for prometheus data source:
export KUBECONFIG=./data/grafana-apiserver/grafana.kubeconfig
kubectl apply -f pkg/aggregator/examples/datasource.yml --validate=false
dataplaneservice.aggregation.grafana.app/v0alpha1.prometheus.grafana.app created
-
edit
pkg/aggregator/examples/datasource-query.json
and update the datasource UID to match the UID of a prometheus data source. -
execute query (replace
example
with the UID of a prometheus data source):
curl 'http://admin:admin@localhost:3000/apis/prometheus.grafana.app/v0alpha1/namespaces/default/connections/example/query' -X POST -d '@pkg/aggregator/examples/datasource-query.json'