| | 109 | |
| | 110 | {{{metrics.py}}} is a program that collects useful statistics for a particular config and reports then to the screen, while also inserting data into the [wiki:Czartool czartool] database. The ippMonitor czartool page for ippToPsps displays much of this information, complete with time series plots showing the progress of processing. |
| | 111 | |
| | 112 | {{{metrics.py}}} takes a second argument which is a time (in hours). If this is provided the program will sleep then run again after that time. |
| | 113 | |
| | 114 | An example output from {{{metrics.py}}} is shown below. |
| | 115 | |
| | 116 | {{{ |
| | 117 | ./run.sh metrics.py someConfig |
| | 118 | }}} |
| | 119 | |
| | 120 | And will produce a response similar to this: |
| | 121 | |
| | 122 | {{{ |
| | 123 | ippToPsps loading summary |
| | 124 | |
| | 125 | Time now 2011-09-29 11:54:33 |
| | 126 | Loading epoch 2011-08-16 |
| | 127 | DVO label LAP.ThreePi.20110809 |
| | 128 | |
| | 129 | +----+------------------+---------------+-------------------+------------------+----------------+ |
| | 130 | |Type| batches per hour | last 24 hours | per day this week | total detections | last published | |
| | 131 | +----+------------------+---------------+-------------------+------------------+----------------+ |
| | 132 | | P2 | 0.0 | 283 | 329.4 | 1855730051 | 4.6 hours ago | |
| | 133 | | ST | 0.0 | 12936 | 4539.0 | 185807608 | 3.7 hours ago | |
| | 134 | +----+------------------+---------------+-------------------+------------------+----------------+ |
| | 135 | |
| | 136 | +----+-------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+ |
| | 137 | |Type| DVO | processed|loaded_to_datastore| loaded_to_ODM| merge_worthy| merged| deleted_datastore| deleted_dxlayer| deleted_local| |
| | 138 | | | | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | Pend Succ Fail | |
| | 139 | +----+-------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+ |
| | 140 | | P2 | 8140 | 8101 39 | 2 8099 | 2041 6049 9 | 6049 | 313 5736 | 5736 | 5736 | | |
| | 141 | | ST | 32309 | 31684 625 | 5 31679 |24617 7062 | 7062 | 7062 | | | | |
| | 142 | +----+-------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+-------------------+ |
| | 143 | |
| | 144 | }}} |