Skip to content

Commit

Permalink
monitor #54 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joannajarmulska authored and SKolodynski committed Jan 12, 2018
1 parent b2837b4 commit b01323d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/monitor/monitorStats.q
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@
/F/ Gets func stats.
.monitor.p.getFuncSummary:{[procList;procNs]
toCheck:([]sym:procList)cross ([](),procNs);
if[count notCfg:procList where not procList in (distinct .monitor.status[`sym]);
.log.warn[`monitor]"Process: ",( "," sv string[notCfg]), " are either not added to the cfg.procMaskList in system.cfg [[admin.monitor]] or are not configured in system.cfg at all";
.log.info[`monitor]"Process: ",( "," sv string[notCfg]), " will be excluded from the sysFuncSummary";
toCheck:select from ([]sym:procList)cross ([](),procNs) where not sym in notCfg;
];
if[not count toCheck; :0#([] time:enlist 0Nt; sym:`; procNs:`;funcCnt:0Ni; func:`)];
funcStats:.pe.dotLog[`monitor;`.monitor.p.getRemoteFuncList;;`funcCnt`func!(0Ni;`symbol$());`error] each flip value flip toCheck;
select time:.sl.zt[], sym, procNs,funcCnt, func from flip flip[toCheck],flip[funcStats]
};
Expand Down

0 comments on commit b01323d

Please sign in to comment.