Skip to content

Commit

Permalink
Cherry-pick elastic#14702 to 7.x: Fix rds metricset from reporting th…
Browse files Browse the repository at this point in the history
…e same value for different instances (elastic#14832)

* Fix rds metricset from reporting the same value for different instances (elastic#14702)

* Fix rds metricset from reporting the same value for different instances
* Change cpu.total.pct to be percent (devide by 100)

(cherry picked from commit bd82c06)

* update changelog
  • Loading branch information
kaiyan-sheng authored Nov 30, 2019
1 parent a269249 commit bf912a1
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 54 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fixed bug with `elasticsearch/cluster_stats` metricset not recording license ID in the correct field. {pull}14592[14592]
- Vshpere module splits `virtualmachine.host` into `virtualmachine.host.id` and `virtualmachine.host.hostname`. {issue}7187[7187] {pull}7213[7213]
- Log bulk failures from bulk API requests to monitoring cluster. {issue}14303[14303] {pull}14356[14356]
- Fix rds metricset from reporting same values for different instances. {pull}14702[14702]
- Closing handler after verifying the registry key in diskio metricset. {issue}14683[14683] {pull}14759[14759]
- Fix docker network stats when multiple interfaces are configured. {issue}14586[14586] {pull}14825[14825]

Expand Down
30 changes: 30 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2474,6 +2474,36 @@ type: long
--
*`aws.rds.db_instance.db_cluster_identifier`*::
+
--
This identifier is the unique key that identifies a DB cluster specifically for Amazon Aurora DB cluster.
type: keyword
--
*`aws.rds.db_instance.role`*::
+
--
DB roles like WRITER or READER, specifically for Amazon Aurora DB cluster.
type: keyword
--
*`aws.rds.db_instance.engine_name`*::
+
--
Each DB instance runs a DB engine, like MySQL, MariaDB, PostgreSQL and etc.
type: keyword
--
[float]
=== s3_daily_storage
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/fields.go

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

12 changes: 12 additions & 0 deletions x-pack/metricbeat/module/aws/rds/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,15 @@
type: long
description: >
The average number of transactions in the database that are blocked per second.
- name: db_instance.db_cluster_identifier
type: keyword
description: >
This identifier is the unique key that identifies a DB cluster specifically for Amazon Aurora DB cluster.
- name: db_instance.role
type: keyword
description: >
DB roles like WRITER or READER, specifically for Amazon Aurora DB cluster.
- name: db_instance.engine_name
type: keyword
description: >
Each DB instance runs a DB engine, like MySQL, MariaDB, PostgreSQL and etc.
6 changes: 6 additions & 0 deletions x-pack/metricbeat/module/aws/rds/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,11 @@ var (
"blocked": c.Float("BlockedTransactions"),
},
"login_failures": c.Float("LoginFailures"),

"db_instance.identifier": c.Str("DBInstanceIdentifier"),
"db_instance.db_cluster_identifier": c.Str("DBClusterIdentifier"),
"db_instance.class": c.Str("DatabaseClass"),
"db_instance.role": c.Str("Role"),
"db_instance.engine_name": c.Str("EngineName"),
}
)
Loading

0 comments on commit bf912a1

Please sign in to comment.