From 72e1915ef4903977ccee96d6f26c77416e794e8a Mon Sep 17 00:00:00 2001 From: tehho Date: Tue, 23 Mar 2021 13:12:40 +0100 Subject: [PATCH] Update jsonnet folder structure to default bundler format (#536) Signed-off-by: Andreas Antonsson --- jsonnet/{ => lens}/custom-prometheus.jsonnet | 0 troubleshooting/custom-prometheus.md | 19 +++++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) rename jsonnet/{ => lens}/custom-prometheus.jsonnet (100%) diff --git a/jsonnet/custom-prometheus.jsonnet b/jsonnet/lens/custom-prometheus.jsonnet similarity index 100% rename from jsonnet/custom-prometheus.jsonnet rename to jsonnet/lens/custom-prometheus.jsonnet diff --git a/troubleshooting/custom-prometheus.md b/troubleshooting/custom-prometheus.md index 6bab29b963..3f9b746394 100644 --- a/troubleshooting/custom-prometheus.md +++ b/troubleshooting/custom-prometheus.md @@ -31,23 +31,14 @@ 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). For jsonnet bundler add the following dependency to your `jsonnetfile.json`: +The required label replacements are bundled in [jsonnet/lens/custom-prometheus](../jsonnet/lens/custom-prometheus.jsonnet). To install it copy the file or use +[Jsonnet Bundler](https://github.com/jsonnet-bundler/jsonnet-bundler). -``` -{ - "name": "lens", - "source": { - "git": { - "remote": "https://github.com/lensapp/lens", - "subdir": "jsonnet" - } - }, - "version": "master" -} +```bash +jb init && jb install https://github.com/lensapp/lens/jsonnet/lens@master ``` -and run `jb install`. When the installation was successful include it into your definitions. Using the [example](https://github.com/coreos/kube-prometheus#compiling) +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.: ```