项目作者: povilasv

项目描述 :
Kubernetes Grafana Dashboards Mixin
高级语言: Jsonnet
项目地址: git://github.com/povilasv/kubernetes-grafana-mixin.git
创建时间: 2019-01-24T15:25:16Z
项目社区:https://github.com/povilasv/kubernetes-grafana-mixin

开源协议:Apache License 2.0

下载


Kubernetes Grafana Mixin

A set of Grafana dashboards for Kubernetes Administrators.

Currently works on 1.12 & 1.13 clusters. Untested on 1.14.

How to use

This mixin is designed to be vendored into the repo with your infrastructure config.
To do this, use jsonnet-bundler:

1) Recommended. Generate the grafana .json files and deploy them yourself.

2) If you want to just try them out the generated .json files are commited in dashboards_out directory, just download them and import them via Grafana. But it’s not recommended, because you won’t receive updates.

Generate config files

You can manually generate the grafana .json files, but first you must install some tools:

  1. $ make setup

Mac:

  1. $ brew install jsonnet

Linux:

  1. git clone https://github.com/google/jsonnet.git jsonnet_git
  2. cd jsonnet_git
  3. make
  4. sudo mv jsonnet /usr/local/bin/

Then, grab the mixin and its dependencies:

  1. $ git clone https://github.com/povilasv/kubernetes-grafana-mixin
  2. $ cd kubernetes-grafana-mixin
  3. $ jb install

Finally, build the mixin:

  1. $ make dashboards_out

The files in dashboards_out directory can then be passed to your Grafana server, via file provisioning.