netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/pkg/prometheus/client.go

Summary

Maintainability
A
50 mins
Test Coverage

Method prometheus.fetch has 8 return statements (exceeds 4 allowed).
Open

func (p *prometheus) fetch(w io.Writer) error {
    // TODO: should be a separate text file prom client
    if p.filepath != "" {
        f, err := os.Open(p.filepath)
        if err != nil {
Severity: Major
Found in src/go/collectors/go.d.plugin/pkg/prometheus/client.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status