{"repo":"hoffie/multilog_exporter","free":true,"listed":false,"github":"https://github.com/hoffie/multilog_exporter","clone":"git clone https://github.com/hoffie/multilog_exporter.git","description":"Watches log files and exposes data as Prometheus metrics","language":"Go","stars":16,"topics":["prometheus-exporter","logs"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"multilog exporter Watches one or more configured log file paths, analyzes them based on configured patterns and exposes the result in the Prometheus metrics format. The files are watched using inotify and can handle log file rotations (based on grok exporter code). The patterns are regular expressions. The pattern may contain groups which can later be used as label values or metric value. Currently, the following actions are supported: add an arbitrary number (Counter, Gauge) set to a new value (Gauge) dec to decrease by an arbitrary number (Gauge) Supported values (for metric results and label values): Static numbers, such as 1 , 10.3e5 Regex group references, such as $pool from the regexp pool=(?P [^ ]+) msg now() which returns the current Unix time Metrics are registered at startup so that the relevant time series are generated even if no relevant log lines have been processed yet (only works for those without labels). Building Tested on Linux 4.x using go 1.10: go get -u github.com/hoffie/multilog exporter . Run unit and integration tests using: make Configuration multilog exporter is mainly configured using a configuration file in yaml syntax. The following options are command line flags, though: --metrics.listen-addr , which specifies the ip and port for listening. --config.file , the path to the mentioned config file --debug , which helps diagnosing potential issues The configuration file syntax is best described by the annotated example configuration. In general, the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/hoffie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hoffie/multilog_exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}