Skip to content

Commit

Permalink
fixed stale rabbitmqVersion metric
Browse files Browse the repository at this point in the history
  • Loading branch information
kbudde committed Mar 11, 2019
1 parent 554b33a commit 9846ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter_overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (e *exporterOverview) Collect(ctx context.Context, ch chan<- prometheus.Met
e.nodeInfo.RabbitmqVersion, _ = reply.GetString("rabbitmq_version")
e.nodeInfo.ClusterName, _ = reply.GetString("cluster_name")

rabbitmqVersionMetric.Reset()
rabbitmqVersionMetric.WithLabelValues(e.nodeInfo.RabbitmqVersion, e.nodeInfo.ErlangVersion, e.nodeInfo.Node, e.nodeInfo.ClusterName).Set(1)

rabbitMqOverviewData := reply.MakeMap()
Expand Down

0 comments on commit 9846ad5

Please sign in to comment.