1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update jsonnet folder structure to easily understand using bundler

Signed-off-by: Andreas Antonsson <Andreas.Antonsson@collectorbank.se>
This commit is contained in:
Andreas Antonsson 2020-06-27 10:19:46 +02:00
parent e810eab39f
commit eac95fa47a
2 changed files with 5 additions and 14 deletions

View File

@ -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.:
```