grafana/pkg/services/grafana-apiserver
2023-10-06 21:55:22 +03:00
..
auth/authorizer K8s: Add org ID and role authorizers (#75701) 2023-09-28 18:28:58 -04:00
endpoints/request K8s: Add org ID and role authorizers (#75701) 2023-09-28 18:28:58 -04:00
registry/generic K8s: Add storage dual writer (#75403) 2023-09-26 17:15:15 -04:00
rest K8s: Add storage dual writer (#75403) 2023-09-26 17:15:15 -04:00
common.go K8s: Add example api service (#75911) 2023-10-06 21:55:22 +03:00
log.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
openapi.go K8s: Register apiserver as background service, and list real playlists (#75338) 2023-09-25 15:31:58 -07:00
README.md K8s: Playlist frontend reads (#76057) 2023-10-05 15:00:36 -04:00
request_handler.go K8s: Add example api service (#75911) 2023-10-06 21:55:22 +03:00
service.go K8s: Add example api service (#75911) 2023-10-06 21:55:22 +03:00
wireset.go K8s: Add org ID and role authorizers (#75701) 2023-09-28 18:28:58 -04:00

Grafana Kubernetes compatible API Server

Basic Setup

app_mode = development

[feature_toggles]
grafanaAPIServer = true
kubernetesPlaylists = true

Start Grafana:

make run

Enable dual write to etcd

Start etcd:

make devenv sources=etcd

Enable dual write to etcd:

[grafana-apiserver]
etcd_servers = 127.0.0.1:2379

kubectl access

From the root of the repository:

export KUBECONFIG=$PWD/data/k8s/grafana.kubeconfig
kubectl api-resources

Grafana API Access

The Kubernetes compatible API can be accessed using existing Grafana AuthN at: http://localhost:3000/apis.