View | Details | Raw Unified | Return to bug 250787 | Differences between
and this patch

Collapse All | Expand All

(-)collector.go (-1 / +1 lines)
Lines 149-155 func (c *collector) Collect(ch chan<- prometheus.Metric) { Link Here
149
		err  error
149
		err  error
150
	)
150
	)
151
151
152
	if c.exporter.fcgiEndpoint != nil {
152
	if c.exporter.fcgiEndpoint != nil && c.exporter.fcgiEndpoint.String() != "" {
153
		body, err = getDataFastcgi(c.exporter.fcgiEndpoint)
153
		body, err = getDataFastcgi(c.exporter.fcgiEndpoint)
154
	} else {
154
	} else {
155
		body, err = getDataHTTP(c.exporter.endpoint)
155
		body, err = getDataHTTP(c.exporter.endpoint)

Return to bug 250787