Skip to content

Commit

Permalink
prom job
Browse files Browse the repository at this point in the history
  • Loading branch information
catdogpandas committed Jan 15, 2025
1 parent 728a34d commit 4db3f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/prometheus/schedulers/TargetSubscriberScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void TargetSubscriberScheduler::UpdateScrapeScheduler(

// save new scrape work
auto added = 0;
auto total = 0;
for (const auto& [k, v] : newScrapeSchedulerMap) {
if (mScrapeSchedulerMap.find(k) == mScrapeSchedulerMap.end()) {
added++;
Expand Down Expand Up @@ -140,7 +141,8 @@ void TargetSubscriberScheduler::UpdateScrapeScheduler(
}
}
}
LOG_INFO(sLogger, ("prom job", mJobName)("targets removed", toRemove.size())("added", added));
total = mScrapeSchedulerMap.size();
LOG_INFO(sLogger, ("prom job", mJobName)("targets removed", toRemove.size())("added", added)("total", total));
}
}

Expand Down

0 comments on commit 4db3f54

Please sign in to comment.