grafana/pkg/aggregator
Kevin Minehart 88d54892bd
CI: Move e2e test pipeline from Drone to GitHub Actions (#103134)
* Add e2e dagger pipeline

* various-suite not various suite

* upload videos dir

* produce e2e videos even on failure

* nil ref

* sync doesn't return container

* fix quotes

* try without flags first?

* try without quoting?

* use two dashes in flags

* update CODEOWNERS

* make update-workspace

* go work sync

* make update-workspace

* add newline
2025-04-02 13:31:47 -05:00
..
apis/aggregation K8s: Move ResourceInfo from common to utils (#92924) 2024-09-04 14:53:14 +03:00
apiserver Aggregator: Add README and example query (#93351) 2024-09-13 22:55:26 +03:00
examples Aggregator: Add README and example query (#93351) 2024-09-13 22:55:26 +03:00
generated K8s: Update from v0.31.3 to v0.32.0 (#98507) 2025-01-06 18:20:35 +03:00
registry/dataplaneservice
README.md Aggregator: Add README and example query (#93351) 2024-09-13 22:55:26 +03:00
go.mod CI: Move e2e test pipeline from Drone to GitHub Actions (#103134) 2025-04-02 13:31:47 -05:00
go.sum CI: Move e2e test pipeline from Drone to GitHub Actions (#103134) 2025-04-02 13:31:47 -05: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'