This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -8,47 +8,47 @@ To generate the YAMLs for deploying Cortex:
8
8
9
9
Follow the steps at https://tanka.dev/install . If you have ` go ` installed locally you can also use:
10
10
11
- ```
12
- # make sure to be outside of GOPATH or a go.mod project
11
+ ``` console
12
+ $ # make sure to be outside of GOPATH or a go.mod project
13
13
$ GO111MODULE=on go get github.com/grafana/tanka/cmd/tk
14
14
$ GO111MODULE=on go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
15
15
```
16
16
17
17
1. Initialise the application and download the cortex jsonnet lib.
18
18
19
- ```
19
+ ```console
20
20
$ mkdir <name> && cd <name>
21
21
$ tk init
22
22
$ jb install github.com/grafana/cortex-jsonnet/cortex
23
23
```
24
24
1. Use the example monitoring.jsonnet.example:
25
25
26
- ```
26
+ ```console
27
27
$ cp vendor/cortex/cortex-manifests.jsonnet.example environments/default/main.jsonnet
28
28
```
29
29
30
30
1. Check what is in the example:
31
31
32
- ```
32
+ ```console
33
33
$ cat environments/default/main.jsonnet
34
34
...
35
35
```
36
36
37
37
1. Generate the YAML manifests:
38
38
39
- ```
39
+ ```console
40
40
$ tk show environments/default
41
41
```
42
42
43
43
To output YAML manifests to `./manifests`, run:
44
44
45
- ```
45
+ ```console
46
46
$ tk export environments/default manifests
47
47
```
48
48
49
49
To generate the dashboards and alerts for Cortex:
50
50
51
- ```
51
+ ```console
52
52
$ cd cortex-mixin
53
53
$ jb install
54
54
$ mkdir out
You can’t perform that action at this time.
0 commit comments