-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[beat] Set cluster UUID in state metricset correctly (#37419)
* [beat] Set cluster UUID in state metricset correctly * Add test * Fix file ending with new line * Fix spacing error
- Loading branch information
1 parent
fe9b7ce
commit ef1bce5
Showing
6 changed files
with
283 additions
and
7 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
metricbeat/module/beat/state/_meta/test/uuid_es_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"beat": { | ||
"name": "Shaunaks-MBP-2" | ||
}, | ||
"host": { | ||
"architecture": "x86_64", | ||
"hostname": "Shaunaks-MBP-2", | ||
"id": "EF6274EA-462F-5316-A14A-850E7BFD8126", | ||
"os": { | ||
"build": "18F132", | ||
"family": "darwin", | ||
"kernel": "18.6.0", | ||
"name": "Mac OS X", | ||
"platform": "darwin", | ||
"version": "10.14.5" | ||
} | ||
}, | ||
"management": { | ||
"enabled": false | ||
}, | ||
"module": { | ||
"count": 3, | ||
"names": [ | ||
"system" | ||
] | ||
}, | ||
"output": { | ||
"name": "elasticsearch" | ||
}, | ||
"outputs": { | ||
"elasticsearch": { | ||
"cluster_uuid": "uuid_from_es_output" | ||
} | ||
}, | ||
"queue": { | ||
"name": "mem" | ||
}, | ||
"service": { | ||
"id": "1f0c187b-f2ef-4950-b9cc-dd6864b9191a", | ||
"name": "metricbeat", | ||
"version": "8.0.0" | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
metricbeat/module/beat/state/_meta/test/uuid_es_output_pre_connect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"beat": { | ||
"name": "Shaunaks-MBP-2" | ||
}, | ||
"host": { | ||
"architecture": "x86_64", | ||
"hostname": "Shaunaks-MBP-2", | ||
"id": "EF6274EA-462F-5316-A14A-850E7BFD8126", | ||
"os": { | ||
"build": "18F132", | ||
"family": "darwin", | ||
"kernel": "18.6.0", | ||
"name": "Mac OS X", | ||
"platform": "darwin", | ||
"version": "10.14.5" | ||
} | ||
}, | ||
"management": { | ||
"enabled": false | ||
}, | ||
"module": { | ||
"count": 3, | ||
"names": [ | ||
"system" | ||
] | ||
}, | ||
"output": { | ||
"name": "elasticsearch" | ||
}, | ||
"outputs": { | ||
"elasticsearch": { | ||
"cluster_uuid": "" | ||
} | ||
}, | ||
"queue": { | ||
"name": "mem" | ||
}, | ||
"service": { | ||
"id": "1f0c187b-f2ef-4950-b9cc-dd6864b9191a", | ||
"name": "metricbeat", | ||
"version": "8.0.0" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
metricbeat/module/beat/state/_meta/test/uuid_monitoring_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"beat": { | ||
"name": "MacBook-Pro" | ||
}, | ||
"host": { | ||
"architecture": "arm64", | ||
"hostname": "MacBook-Pro", | ||
"id": "B0C1E948-241E-53FD-A6A3-0D0F352403AF", | ||
"os": { | ||
"build": "23B92", | ||
"family": "darwin", | ||
"kernel": "23.1.0", | ||
"name": "macOS", | ||
"platform": "darwin", | ||
"version": "14.1.2" | ||
} | ||
}, | ||
"input": { | ||
"count": 1, | ||
"names": [ | ||
"log" | ||
] | ||
}, | ||
"management": { | ||
"enabled": false | ||
}, | ||
"module": { | ||
"count": 0, | ||
"names": [] | ||
}, | ||
"monitoring": { | ||
"cluster_uuid": "uuid_from_monitoring_config" | ||
}, | ||
"output": { | ||
"batch_size": 2048, | ||
"clients": 1, | ||
"name": "logstash" | ||
}, | ||
"outputs": { | ||
"elasticsearch": { | ||
"cluster_uuid": "" | ||
} | ||
}, | ||
"queue": { | ||
"name": "mem" | ||
}, | ||
"service": { | ||
"id": "8d6af17b-cf55-4029-bd22-64cd538acbd0", | ||
"name": "filebeat", | ||
"version": "8.13.0" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
metricbeat/module/beat/state/_meta/test/uuid_no_monitoring_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"beat": { | ||
"name": "MacBook-Pro" | ||
}, | ||
"host": { | ||
"architecture": "arm64", | ||
"hostname": "MacBook-Pro", | ||
"id": "B0C1E948-241E-53FD-A6A3-0D0F352403AF", | ||
"os": { | ||
"build": "23B92", | ||
"family": "darwin", | ||
"kernel": "23.1.0", | ||
"name": "macOS", | ||
"platform": "darwin", | ||
"version": "14.1.2" | ||
} | ||
}, | ||
"input": { | ||
"count": 1, | ||
"names": [ | ||
"log" | ||
] | ||
}, | ||
"management": { | ||
"enabled": false | ||
}, | ||
"module": { | ||
"count": 0, | ||
"names": [] | ||
}, | ||
"monitoring": { | ||
"cluster_uuid": "" | ||
}, | ||
"output": { | ||
"batch_size": 2048, | ||
"clients": 1, | ||
"name": "logstash" | ||
}, | ||
"outputs": { | ||
"elasticsearch": { | ||
"cluster_uuid": "" | ||
} | ||
}, | ||
"queue": { | ||
"name": "mem" | ||
}, | ||
"service": { | ||
"id": "8d6af17b-cf55-4029-bd22-64cd538acbd0", | ||
"name": "filebeat", | ||
"version": "8.13.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters