]> git.proxmox.com Git - ceph.git/blame - ceph/monitoring/ceph-mixin/README.md
import ceph quincy 17.2.6
[ceph.git] / ceph / monitoring / ceph-mixin / README.md
CommitLineData
20effc67
TL
1## Prometheus Monitoring Mixin for Ceph
2A set of Grafana dashboards and Prometheus alerts for Ceph.
3
4All the Grafana dashboards are already generated in the `dashboards_out`
5directory and alerts in the `prometheus_alerts.yml` file.
6
7You can use the Grafana dashboards and alerts with Jsonnet like any other
2a845540 8prometheus mixin. You can find more resources about mixins in general on
20effc67
TL
9[monitoring.mixins.dev](https://monitoring.mixins.dev/).
10
11### Grafana dashboards for Ceph
12In `dashboards_out` you can find a collection of
13[Grafana](https://grafana.com/grafana) dashboards for Ceph Monitoring.
14
15These dashboards are based on metrics collected
16from [prometheus](https://prometheus.io/) scraping the [prometheus mgr
17plugin](http://docs.ceph.com/en/latest/mgr/prometheus/) and the
39ae355f
TL
18[node_exporter (0.17.0)](https://github.com/prometheus/node_exporter).
19
20
21##### Recommended versions:
22-grafana 8.3.5
23 -grafana-piechart-panel 1.6.2
24 -grafana-status-panel 1.0.11
20effc67
TL
25
26#### Requirements
27
28- [Status Panel](https://grafana.com/plugins/vonage-status-panel) installed on
29 your Grafana instance
30- [Pie Chart Panel](https://grafana.com/grafana/plugins/grafana-piechart-panel/)
31 installed on your Grafana instance
32
33
34### Prometheus alerts
2a845540 35In `prometheus_alerts.libsonnet` you'll find a set of Prometheus
20effc67 36alert rules that should provide a decent set of default alerts for a
2a845540 37Ceph cluster. After building them with jsonnet put this file in place according to your Prometheus
20effc67
TL
38configuration (wherever the `rules` configuration stanza points).
39
2a845540
TL
40### Multi-cluster support
41Ceph-mixin supports dashboards and alerts across multiple clusters.
42To enable this feature you need to configure the following in `config.libsonnnet`:
43
44```
45showMultiCluster: true,
46clusterLabel: '<your cluster label>',
47```
48
39ae355f
TL
49##### Recommended versions:
50-prometheus v2.33.4
51
20effc67 52#### SNMP
39ae355f
TL
53Ceph provides a MIB (CEPH-PROMETHEUS-ALERT-MIB.txt) to support sending
54Prometheus alerts to an SNMP management platform. The translation from
55Prometheus alert to SNMP trap requires the Prometheus alert to contain an OID
56that maps to a definition within the MIB. When making changes to the Prometheus
57alert rules file, developers should include any necessary changes to the MIB.
58
59
60##### Recommended:
61-alertmanager 0.16.2
20effc67
TL
62
63### Building from Jsonnet
64
65- Install [jsonnet](https://jsonnet.org/) (at least v0.18.0)
66 - By installing the package `jsonnet` in most of the distro and
67 `golang-github-google-jsonnet` in fedora
68- Install [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler)
69
70To rebuild all the generated files, you can run `tox -egrafonnet-fix`.
71
72The jsonnet code located in this directory depends on some Jsonnet third party
73libraries. To update those libraries you can run `jb update` and then update
74the generated files using `tox -egrafonnet-fix`.
39ae355f
TL
75
76##### Any upgrade or downgrade to different major versions of the recommended tools mentioned above is not supported.