grafana/pkg/aggregator
Gábor Farkas 4e19bc515e
Chore: bump grafana-plugin-sdk-go from v0.277.0 to v0.278.0 (#107165)
Chore: bump grafana-plugin-sdk-go
2025-06-25 10:16:14 +02:00
..
apis/aggregation Chore: Update golang.org/x/ and do not omitempty Items (#105371) 2025-05-14 14:31:45 +03:00
apiserver
examples
generated Chore: Update k8s.io to v0.33.1 (#105307) 2025-05-28 00:13:18 +03:00
registry/dataplaneservice
README.md
go.mod Chore: bump grafana-plugin-sdk-go from v0.277.0 to v0.278.0 (#107165) 2025-06-25 10:16:14 +02:00
go.sum Chore: bump grafana-plugin-sdk-go from v0.277.0 to v0.278.0 (#107165) 2025-06-25 10:16:14 +02:00

README.md

Data Plane Aggregator

Testing queries

  1. custom.ini changes:
[feature_toggles]
kubernetesAggregator = true
dataplaneAggregator = true
grafanaAPIServerEnsureKubectlAccess = true
  1. start grafana:
make run
  1. 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
  1. edit pkg/aggregator/examples/datasource-query.json and update the datasource UID to match the UID of a prometheus data source.

  2. 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'