firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/nginx/collect.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Nginx.collect has 5 return statements (exceeds 4 allowed).
Open

func (n *Nginx) collect() (map[string]int64, error) {
    req, err := web.NewHTTPRequest(n.RequestConfig)
    if err != nil {
        return nil, fmt.Errorf("failed to create HTTP request to '%s': %w'", n.URL, err)
    }
Severity: Major
Found in src/go/plugin/go.d/modules/nginx/collect.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status