Skip to content

Commit

Permalink
Merge pull request #31 from kubernetes-monitoring/fix-readme
Browse files Browse the repository at this point in the history
Update the readme
  • Loading branch information
tomwilkie authored Jun 18, 2018
2 parents 5e9b2a0 + 33dea2c commit 480d927
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,22 @@ $ cd <application name>
$ ks env add default
```

Install the kubernetes-jsonnet package:

```
$ ks registry add kausal https://github.com/kausalco/public
$ ks pkg install kausal/prometheus-ksonnet
```

Install kubernetes-mixin:
Grab the kubernetes-jsonnet module using and its dependencies, which include
the kubernetes-mixin:

```
$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
$ jb init
$ jb install github.com/kubernetes-monitoring/kubernetes-mixin
$ jb install github.com/kausalco/public/prometheus-ksonnet
```

Assuming you want to run in the default namespace ('environment' in ksonnet parlance), add the follow to the file `environments/default/main.jsonnet`:

```
local prometheus = import "prometheus-ksonnet/prometheus-ksonnet.libsonnet";
local kubernetes = import "kubernetes-mixin/mixin.libsonnet";
prometheus + kubernetes {
prometheus {
_config+:: {
namespace: "default",
},
Expand Down

0 comments on commit 480d927

Please sign in to comment.