Split query name and pack name

Summary:
Split query name and pack name with the delimiter(dot) which should not accrue inside their names(instead of _ or -).
Also log things per pack name

Reviewed By: SAlexandru

Differential Revision: D13854471

fbshipit-source-id: 181e7e19fcfb5d57a779cea6a2804eda09dc5a91
This commit is contained in:
George Guliashvili 2019-01-30 06:47:06 -08:00 committed by Facebook Github Bot
parent c7a9338819
commit 7edf72ed6d

View File

@ -184,6 +184,14 @@ void SchedulerRunner::start() {
TablePlugin::kCacheInterval = query.splayed_interval;
TablePlugin::kCacheStep = i;
const auto status = launchQuery(name, query);
monitoring::record(
(boost::format("scheduler.query.%s.%s.status.%s") %
query.pack_name % query.name %
(status.ok() ? "success" : "failure"))
.str(),
1,
monitoring::PreAggregationType::Sum,
true);
}
}));
// Configuration decorators run on 60 second intervals only.