@cryptotaxi247 / netdata-1 / commits / cf20940d8

go.d/ceph: fix leftovers after #18582 (#18628)

Ilya Mashchenko committed Sep 27, 2024 at 16:53 UTC cf20940d8f33e4a723740141619fe16022a96383
3 files changed +14 -14
src/go/plugin/go.d/modules/ceph/charts.go
+1 -1
@@ -324,7 +324,7 @@ var (
324 Priority: prioClusterClientIO,
325 Dims: module.Dims{
326 {ID: "client_perf_read_bytes_sec", Name: "read"},
327 - {ID: "client_perf_write_bytes_sec", Name: "write", Mul: -1},
327 + {ID: "client_perf_write_bytes_sec", Name: "written", Mul: -1},
328 },
329 }
330 clusterClientIOPSChart = module.Chart{
src/go/plugin/go.d/modules/ceph/metadata.yaml
+4 -4
@@ -22,7 +22,7 @@ modules:
22 data_collection:
23 metrics_description: |
24 This collector monitors the overall health status and performance of your Ceph clusters.
25 - It gathers key metrics for the entire cluster, individual Pools, and OSDs
25 + It gathers key metrics for the entire cluster, individual Pools, and OSDs.
26 method_description: |
27 It collects metrics by periodically issuing HTTP GET requests to the Ceph Manager [RESP API](https://docs.ceph.com/en/reef/mgr/ceph_api/#):
28
@@ -166,10 +166,10 @@ modules:
166 problems:
167 list: []
168 alerts:
169 - - name: ceph_cluster_space_usage
169 + - name: ceph_cluster_physical_capacity_utilization
170 link: https://github.com/netdata/netdata/blob/master/src/health/health.d/ceph.conf
171 - metric: ceph.general_usage
172 - info: cluster disk space utilization
171 + metric: ceph.cluster_physical_capacity_utilization
172 + info: 'Ceph cluster ${label:fsid} disk space utilization'
173 metrics:
174 folding:
175 title: Metrics
src/health/health.d/ceph.conf
+9 -9
@@ -1,16 +1,16 @@
1 # low ceph disk available
2
3 - template: ceph_cluster_space_usage
4 - on: ceph.general_usage
3 + template: ceph_cluster_physical_capacity_utilization
4 + on: ceph.cluster_physical_capacity_utilization
5 class: Utilization
6 type: Storage
7 component: Ceph
8 - calc: $used * 100 / ($used + $avail)
8 + calc: $utilization
9 units: %
10 every: 1m
11 - warn: $this > (($status >= $WARNING ) ? (85) : (90))
12 - crit: $this > (($status == $CRITICAL) ? (90) : (98))
13 - delay: down 5m multiplier 1.2 max 1h
14 - summary: Ceph cluster disk space utilization
15 - info: Ceph cluster disk space utilization
16 - to: sysadmin
11 + warn: $this > (($status >= $WARNING ) ? (85) : (90))
12 + crit: $this > (($status == $CRITICAL) ? (90) : (98))
13 + delay: down 5m multiplier 1.2 max 1h
14 + summary: Ceph cluster ${label:fsid} disk space utilization
15 + info: Ceph cluster ${label:fsid} disk space utilization
16 + to: sysadmin