src/go/plugin/go.d/pkg/prometheus/client.go
Method prometheus.fetch
has 8 return statements (exceeds 4 allowed). Open
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 {