README ¶ ltsv-tailer ltsv-tailer is the exporter for Prometheus that reads LTSV files like tail -F and exports metrics by given metrics configuration. How to run the example ./example/logger -o tailme -i 1 & ./ltsv-tailer -metrics example/metrics.yml -file tailme -logtostderr & curl http://127.0.0.1:9588/metrics Metrics Configuration Example metrics configuration: transform: tolower: - method # transform resptime in microsec into second #tosec: # - resptime: microsec metrics: - name: ltsv_http_request_count_total kind: counter value_key: COUNTER help: http request count total labels: - vhost - method - code - name: ltsv_http_response_bytes_total kind: counter value_key: size help: http response bytes total labels: - vhost - method - code - name: ltsv_http_response_seconds kind: histogram value_key: resptime help: http response seconds buckets: - 0.005 - 0.01 - 0.025 - 0.05 - 0.1 - 0.25 - 0.5 - 1.0 - 2.5 - 5.0 - 10.0 labels: - vhost - method - code - path - host Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cmd ltsv-tailer pkg metrics targetfile Click to show internal directories. Click to hide internal directories.