-
Notifications
You must be signed in to change notification settings - Fork 3
Lambda for defining metrics?
lee212 edited this page Sep 27, 2012
·
2 revisions
We have added new metrics functions by our decisions in a source code but we hope we can provide tools so that a user can implement custom functions for their own purposes. The idea is briefly that a user can log into cmd2 mode of python and define a user function to analyze log files and produce a user own metric. There should be basic functions to support defining a user function and a database to store the function.
- example: see log files and set regular expression to collect information.
fg-metric] read /var/log/eucalyptus/cc.log
[Mon Oct 31 14:14:17 2011][015091][EUCADEBUG ] print_ccInstance(): refresh_instances(): instanceId=i-40D707A0 reservationId=r-4A5A0 ...
fg-metric] define regx logs "/[(date)/]/[(pid)/]/[(level)/] function:..."