]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
exporter: handle exceptions gracefully 57371/head
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:51:45 +0000 (17:21 +0530)
commit6e467c41691f3580c0f8a3f777eb7801375e7af9
tree34eb8a818df361f90afa27d4c08fc48899b15919
parentbb42425d96cca065774968aa0a20e0cceb3da0f3
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