a-know / mackerel-plugin-log

Metric plugin for posts the number of detected log lines as Mackerel metrics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mackerel-plugin-log

Install

% mkr plugin install mackerel-plugin-log

Setting

[plugin.metrics.log-detect]
command = ["/path/to/mackerel-plugin-log", "--file", "/path/to/app.log", "--pattern", "ERROR", "--exclude", "retry"]

About

Metric plugin for posts the number of detected log lines as Mackerel metrics.


Languages

Language:Go 96.6%Language:Makefile 1.7%Language:Shell 1.7%