This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
pkg/monitors/collectd/rabbitmq Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -80,19 +80,19 @@ func (m *Monitor) Configure(conf *Config) error {
80
80
sendNodeMetrics := conf .CollectNodes
81
81
sendQueueMetrics := conf .CollectQueues
82
82
83
- if m .Output .HasEnabledMetricInGroup (groupChannel ) {
83
+ if m .Output .HasEnabledMetricInGroup (groupChannel ) && sendChannelMetrics == nil {
84
84
sendChannelMetrics = pointer .Bool (true )
85
85
}
86
- if m .Output .HasEnabledMetricInGroup (groupConnection ) {
86
+ if m .Output .HasEnabledMetricInGroup (groupConnection ) && sendConnectionMetrics == nil {
87
87
sendConnectionMetrics = pointer .Bool (true )
88
88
}
89
- if m .Output .HasEnabledMetricInGroup (groupExchange ) {
89
+ if m .Output .HasEnabledMetricInGroup (groupExchange ) && sendExchangeMetrics == nil {
90
90
sendExchangeMetrics = pointer .Bool (true )
91
91
}
92
- if m .Output .HasEnabledMetricInGroup (groupNode ) {
92
+ if m .Output .HasEnabledMetricInGroup (groupNode ) && sendNodeMetrics == nil {
93
93
sendNodeMetrics = pointer .Bool (true )
94
94
}
95
- if m .Output .HasEnabledMetricInGroup (groupQueue ) {
95
+ if m .Output .HasEnabledMetricInGroup (groupQueue ) && sendQueueMetrics == nil {
96
96
sendQueueMetrics = pointer .Bool (true )
97
97
}
98
98
You can’t perform that action at this time.
0 commit comments