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
Copy file name to clipboardexpand all lines: README.md
+21-18
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,20 @@
1
-
# Prometheus Monitoring Mixin for Kubernetes
1
+
# Prometheus Monitoring Mixins
2
2
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.
4
4
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).
6
7
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.
8
16
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.
10
18
To do this, use [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler):
11
19
12
20
You then have three options for deploying your dashboards
a [ksonnet](https://github.com/ksonnet/ksonnet) module to deploy a fully-fledged
53
61
Prometheus-based monitoring system for Kubernetes:
54
62
@@ -99,16 +107,17 @@ Apply your config:
99
107
$ ks apply default
100
108
```
101
109
102
-
## Using prometheus-operator
110
+
## Using kube-prometheus
103
111
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).
105
113
106
114
## Customising the mixin
107
115
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,
109
117
to match those used in your Prometheus set.
110
118
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`:
112
121
113
122
```
114
123
local kubernetes = import "kubernetes-mixin/mixin.libsonnet";
"[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#).
0 commit comments