% mkr plugin install mackerel-plugin-log
[plugin.metrics.log-detect]
command = ["/path/to/mackerel-plugin-log", "--file", "/path/to/app.log", "--pattern", "ERROR", "--exclude", "retry"]
Metric plugin for posts the number of detected log lines as Mackerel metrics.
Go