You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming you want to run in the default namespace ('environment' in ksonnet parlance), add the follow to the file `environments/default/main.jsonnet`:
127
126
128
-
```
127
+
```jsonnet
129
128
local prometheus = import "prometheus-ksonnet/prometheus-ksonnet.libsonnet";
130
129
131
130
prometheus {
@@ -149,7 +148,7 @@ TODO
149
148
150
149
Kubernetes-mixin can support dashboards across multiple clusters. You need either a multi-cluster [Thanos](https://github.com/improbable-eng/thanos) installation with `external_labels` configured or a [Cortex](https://github.com/cortexproject/cortex) system where a cluster label exists. To enable this feature you need to configure the following:
151
150
152
-
```
151
+
```jsonnet
153
152
// Opt-in to multiCluster dashboards by overriding this and the clusterLabel.
154
153
showMultiCluster: true,
155
154
clusterLabel: '<your cluster label>',
@@ -163,7 +162,7 @@ names and add grafana tags.
163
162
164
163
In a new directory, add a file `mixin.libsonnet`:
165
164
166
-
```
165
+
```jsonnet
167
166
local kubernetes = import "kubernetes-mixin/mixin.libsonnet";
168
167
169
168
kubernetes {
@@ -201,7 +200,7 @@ The steps described below extend on the existing mixin library without modifying
201
200
202
201
In your working directory, create a new file `kubernetes_mixin_override.libsonnet` with the following:
203
202
204
-
```
203
+
```jsonnet
205
204
local utils = import 'lib/utils.libsonnet';
206
205
(import 'mixin.libsonnet') +
207
206
(
@@ -226,7 +225,7 @@ local utils = import 'lib/utils.libsonnet';
226
225
```
227
226
Create new file: `lib/kubernetes_customised_alerts.jsonnet` with the following:
0 commit comments