Skip to content

Commit b921c2e

Browse files
authored
fix(rabbitmq): remove "rabbitmq_version" check (#21411)
1 parent 9417d56 commit b921c2e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/go/plugin/go.d/collector/rabbitmq/collect.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ func (c *Collector) getClusterMeta() (id string, name string, err error) {
8383
return "", "", err
8484
}
8585

86-
if resp.RabbitmqVersion == "" {
87-
return "", "", fmt.Errorf("unexpected response: rabbitmq version is empty")
88-
}
89-
9086
id = "unknown"
9187
name = "unset"
9288

src/go/plugin/go.d/collector/rabbitmq/restapi.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ func (a *apiWhoamiTags) UnmarshalJSON(data []byte) error {
4040
}
4141

4242
type apiDefinitionsResp struct {
43-
RabbitmqVersion string `json:"rabbitmq_version"`
44-
GlobalParams []struct {
43+
GlobalParams []struct {
4544
Name string `json:"name"`
4645
Value any `json:"value"`
4746
} `json:"global_parameters"`

0 commit comments

Comments
 (0)