Skip to content

Commit

Permalink
remove job metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince committed Dec 22, 2021
1 parent 5a51953 commit d693434
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/meta/MetaServiceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class MetaServiceHandler final : public cpp2::MetaServiceSvIf {

// Initialize counters
kHBCounters.init();
kNumActiveJobs = stats::StatsManager::registerStats("num_active_jobs", "sum");
kNumRunningJobs = stats::StatsManager::registerStats("num_running_jobs", "sum");
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/meta/processors/job/AdminJobProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace nebula {
namespace meta {
stats::CounterId kNumActiveJobs;

void AdminJobProcessor::process(const cpp2::AdminJobReq& req) {
cpp2::AdminJobResult result;
Expand Down Expand Up @@ -61,7 +60,6 @@ void AdminJobProcessor::process(const cpp2::AdminJobReq& req) {
errorCode = jobMgr->addJob(jobDesc, adminClient_);
if (errorCode == nebula::cpp2::ErrorCode::SUCCEEDED) {
result.set_job_id(nebula::value(jobId));
stats::StatsManager::addValue(kNumActiveJobs);
}
break;
}
Expand Down Expand Up @@ -124,7 +122,6 @@ void AdminJobProcessor::process(const cpp2::AdminJobReq& req) {
auto ret = jobMgr->recoverJob(spaceName, adminClient_, jobIds);
if (nebula::ok(ret)) {
result.set_recovered_job_num(nebula::value(ret));
stats::StatsManager::addValue(kNumActiveJobs);
} else {
errorCode = nebula::error(ret);
}
Expand Down
1 change: 0 additions & 1 deletion src/meta/processors/job/AdminJobProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace nebula {
namespace meta {
extern stats::CounterId kNumActiveJobs;

class AdminJobProcessor : public BaseProcessor<cpp2::AdminJobResp> {
public:
Expand Down

0 comments on commit d693434

Please sign in to comment.