Note: This library is DEPRECATED and will be removed in the future. If you are a Grafana Labs customer making use of this library, please contact support for help migrating to our helm chart.
A Jsonnet library that can be used to configure and deploy Grafana Enterprise Metrics to Kubernetes.
Jsonnet bundler is used to manage Jsonnet dependencies.
Dependencies will be installed into the /vendor
directory.
To install the library and its dependencies using Jsonnet bundler:
$ jb install github.com/grafana/jsonnet-libs/enterprise-metrics
k.libsonnet
is a Jsonnet library for Kubernetes. Most other Jsonnet libraries for Kubernetes expect this file to exist in your JSONNET_PATH.
To install k.libsonnet
for Kubernetes 1.18:
- Use
jb
to vendor thek8s-libsonnet
Kubernetes library
$ jb install github.com/jsonnet-libs/k8s-libsonnet/1.18@main
- Ensure the
lib
directory exists
$ mkdir -p lib
- Import the
k8s-libsonnet
Kubernetes library by putting the following Jsonnet into a file calledlib/k.libsonnet
(import 'github.com/jsonnet-libs/k8s-libsonnet/1.18/main.libsonnet')
In order to reflect changes made to the library also in the documentation (docs/README.md
), one
needs to run the docs
target:
$ make docs
To run the unit tests:
$ make test
To build all the manifests:
$ make eval
To deploy a minimal GEM to a local k3d cluster:
$ make local-test