]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
exporter: handle exceptions gracefully
authorDivyansh Kamboj <dkamboj@redhat.com>
Tue, 30 Apr 2024 07:44:10 +0000 (13:14 +0530)
committerDivyansh Kamboj <dkamboj@redhat.com>
Thu, 9 May 2024 11:47:21 +0000 (17:17 +0530)
commit5d0c180803c5b9c28c34ad5b61b235335a3ad2fb
treeb8393540f4e28c138526187168fea8b8089765d1
parent553c8f7cc5327255b911c3c533414a6969bf8fce
exporter: handle exceptions gracefully

ceph exporter crahes, and fails to handle exceptions in
dump_asok_metrics(). add try and catch blocks to handle the exceptions gracefully.

Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
(cherry picked from commit e442ee479987f339afdc333582b6b64c66ba6846)
src/exporter/DaemonMetricCollector.cc
src/exporter/DaemonMetricCollector.h