mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-06 17:45:22 +00:00
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:
parent
c7a9338819
commit
7edf72ed6d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user