-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make kibana/stats metricset work for Stack Monitoring without xpack.enabled flag #21496
Merged
sayden
merged 19 commits into
elastic:feature-stack-monitoring-mb-ecs
from
sayden:feature/mb/kibana/stats_xpack_flag
Dec 16, 2020
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9d0f7a8
Atomic commit
sayden ebbbf85
Run make update
sayden 1c36cf5
Fix typo
sayden 5af71ce
Fix fields
sayden 2a46d8d
Fix linting
sayden a279b4d
Rootfield not being defined before setting a value
sayden 0bc41ac
Regenerate data.json
sayden b8cb768
Merge branch 'feature-stack-monitoring-mb-ecs' into feature/mb/kibana…
sayden e91c748
Add TestData and re-generate data.json
sayden ca4a775
Update fields.go
sayden 37492eb
Fix linting
sayden 82efdce
Fix fields.yml
sayden 08247b6
Remove duplicated field
sayden c99c5bd
Remove test that isn't used anymore
sayden 7451eb7
Fix broken test
sayden fa5dd30
Remove new testdata function
sayden 6ec26a8
Merge branch 'feature-stack-monitoring-mb-ecs' into feature/mb/kibana…
sayden d28540f
Fix broken test
sayden 5ebf645
Remove TODO from field description
sayden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,73 +1,122 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "hyK0oDhoThywCtJd2DV8Bg" | ||
} | ||
}, | ||
"event": { | ||
"dataset": "kibana.stats", | ||
"duration": 115000, | ||
"module": "kibana" | ||
}, | ||
"kibana": { | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "zJpGlM76SkSnRMK1Ihihnw" | ||
} | ||
}, | ||
"stats": { | ||
"concurrent_connections": 1, | ||
"concurrent_connections": 0, | ||
"host": { | ||
"name": "localhost" | ||
"name": "0" | ||
}, | ||
"index": "kibana", | ||
"kibana": { | ||
"host": "0", | ||
"index": ".kibana", | ||
"name": "kibana", | ||
"snapshot": false, | ||
"status": "green", | ||
"transport_address": "0:5601", | ||
"uuid": "47c5b96a-e3c4-430c-afee-5c7e27683b80", | ||
"version": "7.9.0" | ||
}, | ||
"name": "kibana", | ||
"os": { | ||
"distro": "Centos", | ||
"distroRelease": "Centos-7.8.2003", | ||
"load": { | ||
"15m": 1.1416015625, | ||
"1m": 1.18994140625, | ||
"5m": 1.28466796875 | ||
}, | ||
"memory": { | ||
"free_in_bytes": 11949064192, | ||
"total_in_bytes": 33300463616, | ||
"used_in_bytes": 21351399424 | ||
}, | ||
"platform": "linux", | ||
"platformRelease": "linux-5.6.10-arch1-1", | ||
"uptime_in_millis": 11437000 | ||
}, | ||
"index": "Shaunaks-MBP-2.attlocal.net", | ||
"name": "Shaunaks-MBP-2.attlocal.net", | ||
"process": { | ||
"event_loop_delay": { | ||
"ms": 0.45250000059604645 | ||
"ms": 0.13968499936163425 | ||
}, | ||
"memory": { | ||
"heap": { | ||
"size_limit": { | ||
"bytes": 1526909922 | ||
}, | ||
"total": { | ||
"bytes": 307593216 | ||
"bytes": 475709440 | ||
}, | ||
"used": { | ||
"bytes": 226887112 | ||
"bytes": 337236176 | ||
} | ||
}, | ||
"resident_set_size": { | ||
"bytes": 592297984 | ||
} | ||
}, | ||
"uptime": { | ||
"ms": 124098 | ||
"ms": 373166 | ||
} | ||
}, | ||
"request": { | ||
"disconnects": 0, | ||
"total": 0 | ||
"total": 4 | ||
}, | ||
"response_time": { | ||
"avg": {}, | ||
"avg": { | ||
"ms": 5 | ||
}, | ||
"max": { | ||
"ms": 0 | ||
"ms": 6 | ||
} | ||
}, | ||
"snapshot": false, | ||
"status": "green" | ||
"status": "green", | ||
"usage": { | ||
"dashboard": { | ||
"total": 0 | ||
}, | ||
"graph_workspace": { | ||
"total": 0 | ||
}, | ||
"index": ".kibana", | ||
"index_pattern": { | ||
"total": 0 | ||
}, | ||
"search": { | ||
"total": 0 | ||
}, | ||
"timelion_sheet": { | ||
"total": 0 | ||
}, | ||
"visualization": { | ||
"total": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"metricset": { | ||
"name": "stats" | ||
"name": "stats", | ||
"period": 10000 | ||
}, | ||
"process": { | ||
"pid": 93807 | ||
"pid": 6 | ||
}, | ||
"service": { | ||
"address": "127.0.0.1:5601", | ||
"id": "5b2de169-2785-441b-ae8c-186a1936b17d", | ||
"name": "kibana", | ||
"address": "172.26.0.3:5601", | ||
"id": "47c5b96a-e3c4-430c-afee-5c7e27683b80", | ||
"type": "kibana", | ||
"version": "7.0.0" | ||
"version": "7.9.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"@timestamp": "2020-10-02T16:14:24.034Z", | ||
"@metadata": { | ||
"beat": "metricbeat", | ||
"type": "_doc", | ||
"version": "8.0.0" | ||
}, | ||
"kibana": { | ||
"stats": { | ||
"settings": { | ||
ycombinator marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"version": "8.0.0", | ||
"index": ".kibana", | ||
"port": 5601, | ||
"transport_address": "0:5601", | ||
"locale": "en", | ||
"snapshot": true, | ||
"status": "green", | ||
"uuid": "0b55ab2a-5fdc-4097-9a46-a3d35e2c1dbf", | ||
"name": "kibana", | ||
"host": "0" | ||
}, | ||
"elasticsearch": { | ||
"cluster": { | ||
"id": "AcU_Ce_aS5W4NvGYNinnxg" | ||
} | ||
} | ||
} | ||
}, | ||
"ecs": { | ||
"version": "1.5.0" | ||
}, | ||
"host": { | ||
"name": "mcastro" | ||
}, | ||
"agent": { | ||
"version": "8.0.0", | ||
"ephemeral_id": "38dd3436-2a1a-449f-8f43-b8d78c358b22", | ||
"id": "803dfdba-e638-4590-a2de-80cb1cebe78d", | ||
"name": "mcastro", | ||
"type": "metricbeat" | ||
}, | ||
"event": { | ||
"duration": 338628448, | ||
"dataset": "kibana.stats", | ||
"module": "kibana" | ||
}, | ||
"metricset": { | ||
"period": 10000, | ||
"name": "stats" | ||
}, | ||
"service": { | ||
"address": "localhost:5601", | ||
"type": "kibana" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the recent changes in #22732, I don't think we even need to collect
usage
any more. WDYT @chrisronline - safe to omitusage
collection in this PR here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Please remove it