package
0.0.0-20231030165809-750d6ac8af90
Repository: https://github.com/swfrench/nginx-log-exporter.git
Documentation: pkg.go.dev

# Functions

NewConsumer returns a Consumer polling the supplied tailer for new access log lines and exporting counts / stats to the supplied manager at the specified period.

# Constants

CLF contains a time.Parse reference timestamp for strftime "%d/%b/%Y:%H:%M:%S %z" used in CLF.
ISO8601 contains a time.Parse reference timestamp for ISO 8601.
ResponseCountDetailedMetricName is the name of the metric reporting total number of response counts for the configured "detail" paths.
ResponseCountMetricName is the name of the metric reporting total number of response counts.
ResponseDurationMetricName is the name of the metric reporting the distribution of response durations (i.e., processing latency).
ResponseSizeMetricName is the name of the metric reporting the distribution of response sizes.

# Structs

Consumer implements periodic polling of the supplied nginx access log tailer, aggregation of response counts from the returned log lines.