aggregator

module
v0.0.0-...-0bc8848 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0

README

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'

Directories

Path Synopsis
apis
generated
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/aggregation/v0alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/aggregation/v0alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL