ceph/monitoring/ceph-mixin
Nizamudeen A d84a03e989
Merge pull request #47700 from s0nea/wip-rgw-overview-labels
monitoring/ceph-mixin: add RGW host to label info

Reviewed-by: MrFreezeex <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2022-09-09 17:36:40 +05:30
..
dashboards monitoring/ceph-mixin: add RGW host to label info 2022-09-06 16:19:19 +02:00
dashboards_out monitoring/ceph-mixin: add RGW host to label info 2022-09-06 16:19:19 +02:00
tests_alerts ceph-mixin: fix CephNodeNetworkPacket alerts 2022-08-23 15:26:52 +02:00
tests_dashboards monitoring/ceph-mixin: add RGW host to label info 2022-09-06 16:19:19 +02:00
.gitignore
.pylintrc
alerts.jsonnet prometheus: add multicluster support to alerts 2022-08-17 12:08:56 +02:00
alerts.libsonnet ceph-mixin: fix config inheritance 2022-08-18 16:21:36 +02:00
CMakeLists.txt ceph-mixin: fix PATH issues with jsonnet-bundler 2022-08-18 13:43:34 +02:00
config.libsonnet ceph-mixin: fix CephNodeNetworkPacket alerts 2022-08-23 15:26:52 +02:00
dashboards.jsonnet
dashboards.libsonnet ceph-mixin: refactor the structure of _config and utils 2022-05-16 15:26:56 +02:00
jsonnet-bundler-build.sh monitoring: build jsonnet/jb only for testing 2022-02-03 13:08:37 +01:00
jsonnetfile.json
jsonnetfile.lock.json monitoring/ceph-mixin: add RGW host to label info 2022-09-06 16:19:19 +02:00
lint-jsonnet.sh
Makefile ceph-mixin: fix makefile dashboards dependency 2022-05-16 15:26:55 +02:00
mixin.libsonnet ceph-mixin: refactor the structure of _config and utils 2022-05-16 15:26:56 +02:00
prometheus_alerts.libsonnet Merge pull request #47707 from bosc0/fix_alert 2022-08-30 12:49:23 +02:00
prometheus_alerts.yml ceph-mixin: fix CephNodeNetworkPacket alerts 2022-08-23 15:26:52 +02:00
README.md prometheus: add multicluster support to alerts 2022-08-17 12:08:56 +02:00
requirements-alerts.txt monitoring: mention PyYAML only once in requirements 2022-02-08 11:19:15 +05:30
requirements-grafonnet.txt
requirements-lint.txt
test-jsonnet.sh prometheus: add multicluster support to alerts 2022-08-17 12:08:56 +02:00
tox.ini monitoring/ceph-mixin: add entries to envlist 2022-08-19 12:08:56 +02:00

Prometheus Monitoring Mixin for Ceph

A set of Grafana dashboards and Prometheus alerts for Ceph.

All the Grafana dashboards are already generated in the dashboards_out directory and alerts in the prometheus_alerts.yml file.

You can use the Grafana dashboards and alerts with Jsonnet like any other prometheus mixin. You can find more resources about mixins in general on monitoring.mixins.dev.

Grafana dashboards for Ceph

In dashboards_out you can find a collection of Grafana dashboards for Ceph Monitoring.

These dashboards are based on metrics collected from prometheus scraping the prometheus mgr plugin and the node_exporter.

Requirements

Prometheus alerts

In prometheus_alerts.libsonnet you'll find a set of Prometheus alert rules that should provide a decent set of default alerts for a Ceph cluster. After building them with jsonnet put this file in place according to your Prometheus configuration (wherever the rules configuration stanza points).

Multi-cluster support

Ceph-mixin supports dashboards and alerts across multiple clusters. To enable this feature you need to configure the following in config.libsonnnet:

showMultiCluster: true,
clusterLabel: '<your cluster label>',

SNMP

Ceph provides a MIB (CEPH-PROMETHEUS-ALERT-MIB.txt) to support sending Prometheus alerts through to an SNMP management platform. The translation from Prometheus alert to SNMP trap requires the Prometheus alert to contain an OID that maps to a definition within the MIB. When making changes to the Prometheus alert rules file, developers should include any necessary changes to the MIB.

Building from Jsonnet

  • Install jsonnet (at least v0.18.0)
    • By installing the package jsonnet in most of the distro and golang-github-google-jsonnet in fedora
  • Install jsonnet-bundler

To rebuild all the generated files, you can run tox -egrafonnet-fix.

The jsonnet code located in this directory depends on some Jsonnet third party libraries. To update those libraries you can run jb update and then update the generated files using tox -egrafonnet-fix.