Skip to content
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

[8.13](backport #37720) [Metricbeat][Postgresql][Database] Fix fields not being parsed correctly #38411

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ fields added to events containing the Beats version. {pull}37553[37553]

*Metricbeat*

- Fix fields not being parsed correctly in postgresql/database {issue}25301[25301] {pull}37720[37720]

*Osquerybeat*

Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -56448,7 +56448,7 @@ type: long
Time spent reading data file blocks by backends in this database, in milliseconds.


type: long
type: double

--

Expand All @@ -56458,7 +56458,7 @@ type: long
Time spent writing data file blocks by backends in this database, in milliseconds.


type: long
type: double

--

Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/postgresql/database/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
that a read was not necessary (this only includes hits in the PostgreSQL
buffer cache, not the operating system's file system cache).
- name: blocks.time.read.ms
type: long
type: double
description: >
Time spent reading data file blocks by backends in this database, in
milliseconds.
- name: blocks.time.write.ms
type: long
type: double
description: >
Time spent writing data file blocks by backends in this database, in
milliseconds.
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/postgresql/database/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var schema = s.Schema{
"read": c.Int("blks_read"),
"hit": c.Int("blks_hit"),
"time": s.Object{
"read": s.Object{"ms": c.Int("blk_read_time")},
"write": s.Object{"ms": c.Int("blk_write_time")},
"read": s.Object{"ms": c.Float("blk_read_time")},
"write": s.Object{"ms": c.Float("blk_write_time")},
},
},
"rows": s.Object{
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/postgresql/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading