|
|
|
@ -57,7 +57,7 @@ func (e *NginxExporter) Collect(ch chan<- prometheus.Metric) {
|
|
|
|
|
e.error_responses.Collect(ch) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var nginxProjectRe = regexp.MustCompile("(?i)^\\w+ /([^/?]+)/[^\\s]* HTTP") |
|
|
|
|
var nginxProjectRe = regexp.MustCompile("(?i)^\\w+ /(?:pub/)?([^/?]+)/[^\\s]* HTTP") |
|
|
|
|
|
|
|
|
|
func (e *NginxExporter) processLogLine(line string) { |
|
|
|
|
lineReader := strings.NewReader(line) |
|
|
|
|