Skip to content

Commit

Permalink
Don't include bedrock server version when ping fails via prometheus e…
Browse files Browse the repository at this point in the history
…xport
  • Loading branch information
itzg committed Nov 9, 2020
1 parent 31d22f7 commit 78ed438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prom_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (c *promBedrockCollector) Collect(metrics chan<- prometheus.Metric) {

info, err := PingBedrockServer(net.JoinHostPort(c.host, c.port))
if err != nil {
c.sendMetric(metrics, promDescHealthy, info.Version, 0)
c.sendMetric(metrics, promDescHealthy, "", 0)
} else {
c.sendMetric(metrics, promDescResponseTime, info.Version, info.Rtt.Seconds())
c.sendMetric(metrics, promDescHealthy, info.Version, 1)
Expand Down

0 comments on commit 78ed438

Please sign in to comment.