Skip to content

kubernetes-monitoring dependency - translate jsonnet content stored in Kubernetes configmaps to Grafana dashboards or Prometheus rules

License

Notifications You must be signed in to change notification settings

dNationCloud/kubernetes-jsonnet-translator

Repository files navigation

dNationCloud

dNation Kubernetes Jsonnet Translator

License Artifact HUB version

dNation Translator is a simple container for translating jsonnet content stored in k8s configmaps to grafana dashboards or prometheus rules.

This project is intended to run inside a k8s cluster to collect and translates jsonnet resources. It looks for k8s configmaps with jsonnet code specified by labels in defined namespaces. Jsonnet configmap is afterwards evaluated and appropriate k8s objects are generated. Currently grafana dashboards and prometheus rules are supported.

Installation

Prerequisites

dNation Kubernetes Jsonnet Translator Chart is hosted in the dNation helm repository.

# Add dNation helm repository
helm repo add dnationcloud https://dnationcloud.github.io/helm-hub/
helm repo update

# Install dNation Jsonnet Translator
helm install dnation-kubernetes-jsonnet-translator dnationcloud/dnation-kubernetes-jsonnet-translator

Examples how to test if everything is working correctly can be found in examples folder.

Configuration

Global setup can be done by arguments of program (in case of helm installation args are set in values.yaml). Possible arguments and their defaults can be found here. Descriptions are in arg_parser.py.

Other configuration can be done by annotations of jsonnet config maps. See example.
Supported jsonnet build keyword arguments can be found here (except callbacks).

About

kubernetes-monitoring dependency - translate jsonnet content stored in Kubernetes configmaps to Grafana dashboards or Prometheus rules

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •