ceph/monitoring/ceph-mixin
Vallari Agrawal a878460962
monitoring: add tests for 2 new nvmeof alerts
Add test for alerts NVMeoFMissingListener and
NVMeoFZeroListenerSubsystem to test_alerts.yml.

Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
2024-11-11 23:13:44 +05:30
..
dashboards mgr/dashboard: Add 'Browse Dashboards' button in multi-cluster and ceph-cluster Grafana dashboards 2024-10-16 17:45:09 +05:30
dashboards_out mgr/dashboard: Add 'Browse Dashboards' button in multi-cluster and ceph-cluster Grafana dashboards 2024-10-16 17:45:09 +05:30
tests_alerts monitoring: add tests for 2 new nvmeof alerts 2024-11-11 23:13:44 +05:30
tests_dashboards Merge pull request #56014 from badone/wip-tracker-63591-pyyaml-cython_sources 2024-05-21 12:00:53 -04:00
.gitignore
.pylintrc
CMakeLists.txt ceph-mixin: fix PATH issues with jsonnet-bundler 2022-08-18 13:43:34 +02:00
Makefile ceph-mixin: fix ceph-mixin setup 2023-08-09 12:19:04 +05:30
README.md mgr/dashboard: fix broken alert generator 2023-10-13 12:42:50 +05:30
alerts.jsonnet mgr/dashboard: fix broken alert generator 2023-10-13 12:42:50 +05:30
alerts.libsonnet ceph-mixin: fix config inheritance 2022-08-18 16:21:36 +02:00
config.libsonnet Merge pull request #55495 from frittentheke/issue_64321 2024-05-02 13:55:37 +05:30
dashboards.jsonnet
dashboards.libsonnet mgr/dashboard: Add a manage clusters page to the multi-cluster nav to 2024-02-22 10:42:01 +05:30
jsonnet-bundler-build.sh
jsonnetfile.json
jsonnetfile.lock.json mgr/dashboard: fix broken alert generator 2023-10-13 12:42:50 +05:30
lint-jsonnet.sh ceph-mixin: fix ceph-mixin setup 2023-08-09 12:19:04 +05:30
mixin.libsonnet
prometheus_alerts.libsonnet monitoring: add 2 new nvmeof alerts 2024-11-11 17:23:04 +05:30
prometheus_alerts.yml monitoring: add 2 nvmeof alerts to prometheus_alerts.yaml 2024-11-11 17:23:03 +05:30
requirements-alerts.txt install-deps: Update Pyyaml version 2024-03-07 14:13:11 +10:00
requirements-grafonnet.txt
requirements-lint.txt install-deps: Update Pyyaml version 2024-03-07 14:13:11 +10:00
test-jsonnet.sh prometheus: add multicluster support to alerts 2022-08-17 12:08:56 +02:00
tox.ini Add multi-cluster support (showMultiCluster=True) to alerts 2024-10-21 11:53:10 +05:30

README.md

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 (0.17.0).

-grafana 8.3.5 -grafana-piechart-panel 1.6.2 -grafana-status-panel 1.0.11

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>',

-prometheus v2.33.4

SNMP

Ceph provides a MIB (CEPH-PROMETHEUS-ALERT-MIB.txt) to support sending Prometheus alerts 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.

-alertmanager 0.16.2

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.

Building alerts from prometheus_alerts.libsonnet

To rebuild the prometheus_alerts.yml file from the corresponding libsonnet, you can run tox -ealerts-fix.