Skip to content

Commit

Permalink
Debugging for redpanda-data#11107
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
  • Loading branch information
rockwotj committed Jun 1, 2023
1 parent 2c58a85 commit e39b156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/v/cloud_roles/probe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
#include "prometheus/prometheus_sanitize.h"

#include <seastar/core/metrics.hh>
#include <seastar/util/log.hh>

namespace cloud_roles {

namespace {
ss::logger log("cloud_roles_probe");
}

auth_refresh_probe::auth_refresh_probe() {
if (config::shard_local_cfg().disable_metrics()) {
return;
Expand All @@ -36,4 +41,8 @@ auth_refresh_probe::auth_refresh_probe() {
});
}

auth_refresh_probe::~auth_refresh_probe() {
vlog(log.info, "Tearing down auth_refresh_probe");
}

} // namespace cloud_roles
1 change: 1 addition & 0 deletions src/v/cloud_roles/probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace cloud_roles {
class auth_refresh_probe {
public:
auth_refresh_probe();
~auth_refresh_probe();

void fetch_success() { ++_successful_fetches; }
void fetch_failed() { ++_fetch_errors; }
Expand Down

0 comments on commit e39b156

Please sign in to comment.