]> git.proxmox.com Git - ceph.git/blame - ceph/monitoring/ceph-mixin/README.md
check in ceph 17.2.3 sources
[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
8prometheus mixin. You can find more ressources about mixins in general on
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
18[node_exporter](https://github.com/prometheus/node_exporter).
19
20#### Requirements
21
22- [Status Panel](https://grafana.com/plugins/vonage-status-panel) installed on
23 your Grafana instance
24- [Pie Chart Panel](https://grafana.com/grafana/plugins/grafana-piechart-panel/)
25 installed on your Grafana instance
26
27
28### Prometheus alerts
29In `prometheus_alerts.yml` you'll find a set of Prometheus
30alert rules that should provide a decent set of default alerts for a
31Ceph cluster. Just put this file in a place according to your Prometheus
32configuration (wherever the `rules` configuration stanza points).
33
34#### SNMP
35Ceph provides a MIB (CEPH-PROMETHEUS-ALERT-MIB.txt) to support sending Prometheus
36alerts through to an SNMP management platform. The translation from Prometheus
37alert to SNMP trap requires the Prometheus alert to contain an OID that maps to
38a definition within the MIB. When making changes to the Prometheus alert rules
39file, developers should include any necessary changes to the MIB.
40
41### Building from Jsonnet
42
43- Install [jsonnet](https://jsonnet.org/) (at least v0.18.0)
44 - By installing the package `jsonnet` in most of the distro and
45 `golang-github-google-jsonnet` in fedora
46- Install [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler)
47
48To rebuild all the generated files, you can run `tox -egrafonnet-fix`.
49
50The jsonnet code located in this directory depends on some Jsonnet third party
51libraries. To update those libraries you can run `jb update` and then update
52the generated files using `tox -egrafonnet-fix`.