Skip to content

Commit b9a905f

Browse files
authored
Syntax highligh markdown jsonnet code blocks
1 parent 468d4f2 commit b9a905f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,11 @@ the kubernetes-mixin:
120120
$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
121121
$ jb init
122122
$ jb install github.com/kausalco/public/prometheus-ksonnet
123-
124123
```
125124

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

128-
```
127+
```jsonnet
129128
local prometheus = import "prometheus-ksonnet/prometheus-ksonnet.libsonnet";
130129
131130
prometheus {
@@ -149,7 +148,7 @@ TODO
149148

150149
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:
151150

152-
```
151+
```jsonnet
153152
// Opt-in to multiCluster dashboards by overriding this and the clusterLabel.
154153
showMultiCluster: true,
155154
clusterLabel: '<your cluster label>',
@@ -163,7 +162,7 @@ names and add grafana tags.
163162

164163
In a new directory, add a file `mixin.libsonnet`:
165164

166-
```
165+
```jsonnet
167166
local kubernetes = import "kubernetes-mixin/mixin.libsonnet";
168167
169168
kubernetes {
@@ -201,7 +200,7 @@ The steps described below extend on the existing mixin library without modifying
201200

202201
In your working directory, create a new file `kubernetes_mixin_override.libsonnet` with the following:
203202

204-
```
203+
```jsonnet
205204
local utils = import 'lib/utils.libsonnet';
206205
(import 'mixin.libsonnet') +
207206
(
@@ -226,7 +225,7 @@ local utils = import 'lib/utils.libsonnet';
226225
```
227226
Create new file: `lib/kubernetes_customised_alerts.jsonnet` with the following:
228227

229-
```
228+
```jsonnet
230229
std.manifestYamlDoc((import '../kubernetes_mixin_override.libsonnet').prometheusAlerts)
231230
```
232231
Running `jsonnet -S lib/kubernetes_customised_alerts.jsonnet` will build the alerts with your customisations.

0 commit comments

Comments
 (0)