The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/aggregator
Michael Mandrus 015b2f6b0a
Chore: Update gocloud.dev dependency to v0.42.0 (#108054)
7 days ago
..
apis/aggregation Chore: Update golang.org/x/ and do not omitempty Items (#105371) 2 months ago
apiserver Aggregator: Add README and example query (#93351) 10 months ago
examples Aggregator: Add README and example query (#93351) 10 months ago
generated Chore: Update k8s.io to v0.33.1 (#105307) 2 months ago
registry/dataplaneservice CI: Bump golangci-lint to 2.0.2 (#103572) 3 months ago
README.md Aggregator: Add README and example query (#93351) 10 months ago
go.mod Chore: Update gocloud.dev dependency to v0.42.0 (#108054) 7 days ago
go.sum Chore: Update gocloud.dev dependency to v0.42.0 (#108054) 7 days ago

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'