Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 4def33a

Browse files
authored
fixing options (#1622)
Signed-off-by: Dani Louca <[email protected]>
1 parent 8b4d34d commit 4def33a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/monitors/collectd/rabbitmq/rabbitmq.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ func (m *Monitor) Configure(conf *Config) error {
8080
sendNodeMetrics := conf.CollectNodes
8181
sendQueueMetrics := conf.CollectQueues
8282

83-
if m.Output.HasEnabledMetricInGroup(groupChannel) {
83+
if m.Output.HasEnabledMetricInGroup(groupChannel) && sendChannelMetrics == nil {
8484
sendChannelMetrics = pointer.Bool(true)
8585
}
86-
if m.Output.HasEnabledMetricInGroup(groupConnection) {
86+
if m.Output.HasEnabledMetricInGroup(groupConnection) && sendConnectionMetrics == nil {
8787
sendConnectionMetrics = pointer.Bool(true)
8888
}
89-
if m.Output.HasEnabledMetricInGroup(groupExchange) {
89+
if m.Output.HasEnabledMetricInGroup(groupExchange) && sendExchangeMetrics == nil {
9090
sendExchangeMetrics = pointer.Bool(true)
9191
}
92-
if m.Output.HasEnabledMetricInGroup(groupNode) {
92+
if m.Output.HasEnabledMetricInGroup(groupNode) && sendNodeMetrics == nil {
9393
sendNodeMetrics = pointer.Bool(true)
9494
}
95-
if m.Output.HasEnabledMetricInGroup(groupQueue) {
95+
if m.Output.HasEnabledMetricInGroup(groupQueue) && sendQueueMetrics == nil {
9696
sendQueueMetrics = pointer.Bool(true)
9797
}
9898

0 commit comments

Comments
 (0)