We have an app that's essentially dumping metric data to a log file, e.g. "responseTime=100ms". Does Hyperic have a way to create a "responseTime" metric out of the log file?
I've been reading through the documentation, and I can see how to create alerts from log files, and how to track log files, but I want to pull metrics out of the log files.
I've seen the documentation for "exec", and we could use that to parse the logs, but we'd have to keep track of the last point in the file that was previously parsed. Also it doesn't appear that one can provide more than 1 set of metrics. For example, if "responseTime" appears 500 times, the agent simply reports the last one.
Sample log:
GroupId=foo responseTime=100
GroupId=foo responseTime=200
GroupId=bar responseTime=300
I'd like to create a "responseTime" metric for an entity named "foo" and another named "bar". "foo" would have 2 data pooints for responseTime of 100 and 200, whereas "bar" would only have one of "300".
Any ideas on the best way to do this?
Thanks.