We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef345f9 commit d0d1837Copy full SHA for d0d1837
collector.go
@@ -149,7 +149,7 @@ func (c *collector) Collect(ch chan<- prometheus.Metric) {
149
err error
150
)
151
152
- if c.exporter.fcgiEndpoint != nil {
+ if c.exporter.fcgiEndpoint != nil && c.exporter.fcgiEndpoint.String() != "" {
153
body, err = getDataFastcgi(c.exporter.fcgiEndpoint)
154
} else {
155
body, err = getDataHTTP(c.exporter.endpoint)
0 commit comments