Skip to content

Commit 9aa7c17

Browse files
committed
Make words more general.
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 7b0d932 commit 9aa7c17

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

README.md

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
# Prometheus Monitoring Mixin for Kubernetes
1+
# Prometheus Monitoring Mixins
22

3-
> NOTE: This project is *alpha* stage. Flags, configuration, behaviour and design may change significantly in following releases.
3+
> NOTE: This project is *beta* stage.
44
5-
A set of Grafana dashboards and Prometheus alerts for Kubernetes.
5+
A mixin is a set of Grafana dashboards and Prometheus rules and alerts, packaged together in a reuseable and extensible bundle.
6+
Mixins are written in [jsonnet](https://jsonnet.org/), and are typically installed and updated with [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler).
67

7-
## How to use
8+
For more information about mixins, see:
9+
* For more motivation, see
10+
"[The RED Method: How to instrument your services](https://kccncna17.sched.com/event/CU8K/the-red-method-how-to-instrument-your-services-b-tom-wilkie-kausal?iframe=no&w=100%&sidebar=yes&bg=no)" talk from CloudNativeCon Austin. The KLUMPs system demo'd became the basis for the kubernetes-mixin.
11+
* [Prometheus Monitoring Mixins Design Doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/view). A [cached pdf](design.pdf) is included in this repo.
12+
* "[Prometheus Monitoring Mixins: Using Jsonnet to Package Together Dashboards, Alerts and Exporters](https://www.youtube.com/watch?v=b7-DtFfsL6E)" KubeCon 2018 talk.
13+
* "[Prometheus Monitoring Mixins: Using Jsonnet to Package Together Dashboards, Alerts and Exporters](https://promcon.io/2018-munich/talks/prometheus-monitoring-mixins/)" PromCon 2018 talk, slightly updated.
14+
15+
## How to use mixins.
816

9-
This mixin is designed to be vendored into the repo with your infrastructure config.
17+
Mixins are designed to be vendored into the repo with your infrastructure config.
1018
To do this, use [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler):
1119

1220
You then have three options for deploying your dashboards
@@ -27,8 +35,8 @@ $ brew install jsonnet
2735
Then, grab the mixin and its dependencies:
2836

2937
```
30-
$ git clone https://github.com/kubernetes-monitoring/kubernetes-mixin
31-
$ cd kubernetes-mixin
38+
$ git clone https://github.com/<mixin org>/<mixin repo>
39+
$ cd <mixin repo>
3240
$ jb install
3341
```
3442

@@ -48,7 +56,7 @@ monitoring stack to Kubernetes.
4856
## Using with prometheus-ksonnet
4957

5058
Alternatively you can also use the mixin with
51-
[prometheus-ksonnet](https://github.com/kausalco/public/tree/master/prometheus-ksonnet),
59+
[prometheus-ksonnet](https://github.com/grafana/jsonnet-libs/tree/master/prometheus-ksonnet),
5260
a [ksonnet](https://github.com/ksonnet/ksonnet) module to deploy a fully-fledged
5361
Prometheus-based monitoring system for Kubernetes:
5462

@@ -99,16 +107,17 @@ Apply your config:
99107
$ ks apply default
100108
```
101109

102-
## Using prometheus-operator
110+
## Using kube-prometheus
103111

104-
TODO
112+
See the kube-prometheus docs for [instructions on how to use mixins with kube-prometheus](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/README.md#kube-prometheus).
105113

106114
## Customising the mixin
107115

108-
Kubernetes-mixin allows you to override the selectors used for various jobs,
116+
Mixins typically allows you to override the selectors used for various jobs,
109117
to match those used in your Prometheus set.
110118

111-
In a new directory, add a file `mixin.libsonnet`:
119+
This example uses the [kubernetes-mixin](https://github.com/kubernetes-monitoring/kubernetes-mixin).
120+
In a new directory, add a file `mixin.libsonnet`:
112121

113122
```
114123
local kubernetes = import "kubernetes-mixin/mixin.libsonnet";
@@ -137,9 +146,3 @@ $ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").promet
137146
$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' >files/rules.yml
138147
$ jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards'
139148
```
140-
141-
## Background
142-
143-
* For more motivation, see
144-
"[The RED Method: How to instrument your services](https://kccncna17.sched.com/event/CU8K/the-red-method-how-to-instrument-your-services-b-tom-wilkie-kausal?iframe=no&w=100%&sidebar=yes&bg=no)" talk from CloudNativeCon Austin.
145-
* For more information about monitoring mixins, see this [design doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit#).

design.pdf

126 KB
Binary file not shown.

0 commit comments

Comments
 (0)