Overview of mtail
mainmtail is a tool designed to extract internal monitoring metrics from application logs. These metrics can then be exported to a timeseries database or a timeseries calculator for use in alerting and dashboarding. It acts as a bridge for applications that do not natively export internal state, allowing operators to instrument them via logs without patching the application code.
Extraction is controlled by mtail programs that define patterns and actions. Metrics can be exported via:
- HTTP in JSON or Prometheus format (for scraping by collectors like Prometheus).
- Periodically sent to collectd, StatsD, or Graphite collector sockets.