-
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
[Metricbeat] Fix fields not being parsed correctly in postgresql/database #29051
Closed
sayden
wants to merge
3
commits into
elastic:main
from
sayden:bugfix/postgresql/fix-bulk_read_write-values
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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,53 +1,71 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"@timestamp": "2021-11-19T13:08:37.241Z", | ||
"@metadata": { | ||
"beat": "metricbeat", | ||
"type": "_doc", | ||
"version": "8.1.0" | ||
}, | ||
"service": { | ||
"type": "postgresql", | ||
"address": "postgres://localhost:5432/test?connect_timeout=10&sslmode=disable" | ||
}, | ||
"event": { | ||
"duration": 12127879, | ||
"dataset": "postgresql.database", | ||
"duration": 115000, | ||
"module": "postgresql" | ||
}, | ||
"metricset": { | ||
"name": "database", | ||
"period": 10000 | ||
}, | ||
"postgresql": { | ||
"database": { | ||
"deadlocks": 0, | ||
"stats_reset": "2021-11-19T13:03:43.827Z", | ||
"temporary": { | ||
"files": 0, | ||
"bytes": 0 | ||
}, | ||
"transactions": { | ||
"rollback": 5, | ||
"commit": 141 | ||
}, | ||
"blocks": { | ||
"hit": 43969, | ||
"read": 381, | ||
"time": { | ||
"read": { | ||
"ms": 0 | ||
"ms": 7.686 | ||
}, | ||
"write": { | ||
"ms": 0 | ||
} | ||
} | ||
}, | ||
"read": 726, | ||
"hit": 26718 | ||
}, | ||
"conflicts": 0, | ||
"deadlocks": 0, | ||
"name": "postgres", | ||
"number_of_backends": 2, | ||
"oid": 13395, | ||
"number_of_backends": 4, | ||
"oid": 16384, | ||
"name": "test", | ||
"rows": { | ||
"deleted": 42, | ||
"fetched": 26418, | ||
"inserted": 98, | ||
"returned": 53201, | ||
"updated": 14 | ||
}, | ||
"stats_reset": "2021-03-05T18:39:18.089Z", | ||
"temporary": { | ||
"bytes": 0, | ||
"files": 0 | ||
}, | ||
"transactions": { | ||
"commit": 445, | ||
"rollback": 5 | ||
"deleted": 31, | ||
"returned": 46331, | ||
"fetched": 13006, | ||
"inserted": 71, | ||
"updated": 2 | ||
} | ||
} | ||
}, | ||
"service": { | ||
"address": "192.168.128.2:5432", | ||
"type": "postgresql" | ||
"ecs": { | ||
"version": "8.0.0" | ||
}, | ||
"host": { | ||
"name": "thinkpad" | ||
}, | ||
"agent": { | ||
"type": "metricbeat", | ||
"version": "8.1.0", | ||
"ephemeral_id": "ce27b375-714a-4304-9b41-5f1cba028d6e", | ||
"id": "7aaa6d29-9700-452a-bd12-2bdd2a2f884e", | ||
"name": "thinkpad" | ||
}, | ||
"metricset": { | ||
"name": "database", | ||
"period": 10000 | ||
} | ||
} | ||
} |
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.
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.
Please, double check if this change is problematic in a deployment with both versions of Metricbeat, we had recently some bad experiences with type changes that looked safe.
The kind of test you could do is:
metricbeat-*
index pattern where this field appears.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.
cc @kaiyan-sheng
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.
Yeah please double check here 😂 Not sure if it's the same case but I accidentally made a breaking change for changing field type from scaled float to long.