Skip to content

Commit

Permalink
Merge branch '2410-rabbitmq-map-bug' into 'dev'
Browse files Browse the repository at this point in the history
Resolve "rabbitmq 采集器并行读写错误"

See merge request cloudcare-tools/datakit!3218
  • Loading branch information
谭彪 committed Sep 25, 2024
2 parents 011c287 + 9463952 commit b98ce94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/plugins/inputs/rabbitmq/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ type MetricFunc func(n *Input)

func (ipt *Input) getMetric() {
ipt.start = time.Now()
getFunc := []MetricFunc{getOverview, getNode, getQueues, getExchange}
// get overview first, to get cluster name
getOverview(ipt)
getFunc := []MetricFunc{getNode, getQueues, getExchange}
g := goroutine.NewGroup(goroutine.Option{Name: "inputs_rabbitmq"})
for _, v := range getFunc {
func(gf MetricFunc) {
Expand Down

0 comments on commit b98ce94

Please sign in to comment.