Categorygithub.com/groob/caching_exporter
modulepackage
0.0.2
Repository: https://github.com/groob/caching_exporter.git
Documentation: pkg.go.dev

# README

caching exporter ->

Expose OS X Caching Server metrics for collection by Prometheus

Caching exporter is modified version of mtail with several additions to collect metrics stored in a plist file. Caching Exporter collects metrics from the following locations:

  • /Library/Server/Caching/Config/Config.plist
  • /Library/Server/Caching/Logs/LastState.plist
  • /Library/Server/Caching/Logs/Debug.log

Usage

sudo ./caching_exporter -progs ./progs --logs /Library/Server/Caching/Logs/Debug.log

Now point Prometheus at localhost:3903/metrics to collect the data exposed by Caching exporter.

What are progs?

Progs are files that contain regex rules for parsing data from log files into time series. This is the functionality enabled by mtail and can be extended by rewriting or adding our own rules in the progs folder. An example:

# simple line counter
counter line_count
/$/ {
    line_count++
}