From 1ef97110de3f1db0861be06d1957708e5ed3e3d8 Mon Sep 17 00:00:00 2001 From: Christian Beneke Date: Wed, 1 Apr 2020 15:03:31 +0200 Subject: [PATCH] Use named import for jb Signed-off-by: Christian Beneke --- troubleshooting/custom-prometheus.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/troubleshooting/custom-prometheus.md b/troubleshooting/custom-prometheus.md index 280a5dd899..7f7ad4c169 100644 --- a/troubleshooting/custom-prometheus.md +++ b/troubleshooting/custom-prometheus.md @@ -32,13 +32,23 @@ metricRelabelings: ### Jsonnet The required label replacements are bundled in [jsonnet/custom-prometheus](../jsonnet/custom-prometheus.jsonnet). To install it copy the file or use -[Jsonnet Bundler](https://github.com/jsonnet-bundler/jsonnet-bundler): +[Jsonnet Bundler](https://github.com/jsonnet-bundler/jsonnet-bundler). For jsonnet bundler add the following dependency to your `jsonnetfile.json`: ``` -jb install github.com/lensapp/lens/jsonnet +{ + "name": "lens", + "source": { + "git": { + "remote": "https://github.com/lensapp/lens", + "subdir": "jsonnet" + } + }, + "version": "master" +} ``` -And include it into your definitions. Using the [example](https://github.com/coreos/kube-prometheus#compiling) of kube-prometheus, e.g.: +and run `jb install`. When the installation was successful include it into your definitions. Using the [example](https://github.com/coreos/kube-prometheus#compiling) +of kube-prometheus, e.g.: ``` local kp =