Bug 1885441

Summary: mgr/prometheus should provide a metric indicating SLOW_OPS for alerting
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Paul Cuzner <pcuzner>
Component: Ceph-Mgr PluginsAssignee: Paul Cuzner <pcuzner>
Status: CLOSED ERRATA QA Contact: Pawan <pdhiran>
Severity: medium Docs Contact:
Priority: high    
Version: 4.2CC: branto, ceph-eng-bugs, ceph-qe-bugs, epuertat, jdurgin, mhackett, owasserm, pdhiran, sangadi, tserlin, vereddy, vumrao
Target Milestone: ---   
Target Release: 4.2z1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.11-129.el8cp, ceph-14.2.11-129.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-28 20:12:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
prometheus raph showing the slow_ops metric none

Description Paul Cuzner 2020-10-06 01:49:07 UTC
Description of problem:
Although osd's track slow ops and bubble this up to mgr, the metrics that mgr/prometheus generates does not include alert related metrics. This BZ


Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Generate SLOW_OPS by lowering osd_op_complaint_time
2. run rados bench to trigger the health check
3. no field in the prometheus scrape exposes this condition

Actual results:
SLOW_OPS triggers a health status change (0->1), but does not provide any information related to slow_ops

Expected results:
SLOW_OPS should be visible in the prometheus data


Additional info:

Comment 17 Veera Raghava Reddy 2021-04-06 18:19:03 UTC
Hi Josh, Is it targetted for 4.2z1. If not can we move this to 4.2z2?

Comment 18 Josh Durgin 2021-04-06 19:03:04 UTC
(In reply to Veera Raghava Reddy from comment #17)
> Hi Josh, Is it targetted for 4.2z1. If not can we move this to 4.2z2?

Checking with Paul to verify the test setup. Also adding @jefbrown .

If it is confirmed to be an issue I think we should move it to z2.

Comment 21 Paul Cuzner 2021-04-07 05:54:43 UTC
Created attachment 1769755 [details]
prometheus raph showing the slow_ops metric

Comment 23 Veera Raghava Reddy 2021-04-07 13:33:12 UTC
Can we have this BZ moved to Verified and raise a new BZ to track alerts?

Comment 28 errata-xmlrpc 2021-04-28 20:12:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage security, bug fix, and enhancement Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1452