PcpOpenmetricsLog - file /var/log/pcp/pmcd/openmetrics.log

class insights.parsers.pcp_openmetrics_log.PcpOpenmetricsLog(context)[source]

Bases: LogFileOutput

Parse the /var/log/pcp/pmcd/openmetrics.log log file.

Note

Please refer to its super-class insights.core.LogFileOutput

Sample input:

[Mon Jul 11 07:59:32] pmdaopenmetrics(1733) Error: cannot parse/store 55% {:
[Mon Jul 11 07:59:32] pmdaopenmetrics(1733) Error: cannot parse/store }:
[Mon Jul 11 07:59:32] pmdaopenmetrics(1733) Error: cannot parse/store 95% {:
[Mon Jul 11 07:59:32] pmdaopenmetrics(1733) Error: cannot parse/store }:
[Mon Jul 11 07:59:32] pmdaopenmetrics(1733) Error: cannot parse/store };:

Examples

>>> "Error: cannot parse/store" in log
True
>>> len(log.get('pmdaopenmetrics')) == 5
True