Skip to content

Commit

Permalink
Cherry-pick #14114 to 7.5: [Metricbeat] Release cloudwatch, s3, sqs, …
Browse files Browse the repository at this point in the history
…rds as GA (#14166)

* [Metricbeat] Release cloudwatch, s3, sqs, rds as GA (#14114)

* Release cloudwatch, s3, sqs, rds as GA

(cherry picked from commit dcb92e8)
  • Loading branch information
kaiyan-sheng committed Oct 25, 2019
1 parent abc0c67 commit 6b6f970
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 32 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Expand Up @@ -97,6 +97,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Metricbeat*

- Release cloudwatch, s3_daily_storage, s3_request, sqs and rds metricset as GA. {pull}14114[14114] {issue}14059[14059]

*Packetbeat*

Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/aws/cloudwatch.asciidoc
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-aws-cloudwatch]]
=== aws cloudwatch metricset

beta[]

include::../../../../x-pack/metricbeat/module/aws/cloudwatch/_meta/docs.asciidoc[]

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.
Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/aws/rds.asciidoc
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-aws-rds]]
=== aws rds metricset

beta[]

include::../../../../x-pack/metricbeat/module/aws/rds/_meta/docs.asciidoc[]


Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/aws/s3_daily_storage.asciidoc
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-aws-s3_daily_storage]]
=== aws s3_daily_storage metricset

beta[]

include::../../../../x-pack/metricbeat/module/aws/s3_daily_storage/_meta/docs.asciidoc[]


Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/aws/s3_request.asciidoc
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-aws-s3_request]]
=== aws s3_request metricset

beta[]

include::../../../../x-pack/metricbeat/module/aws/s3_request/_meta/docs.asciidoc[]


Expand Down
2 changes: 0 additions & 2 deletions metricbeat/docs/modules/aws/sqs.asciidoc
Expand Up @@ -5,8 +5,6 @@ This file is generated! See scripts/mage/docs_collector.go
[[metricbeat-metricset-aws-sqs]]
=== aws sqs metricset

beta[]

include::../../../../x-pack/metricbeat/module/aws/sqs/_meta/docs.asciidoc[]


Expand Down
10 changes: 5 additions & 5 deletions metricbeat/docs/modules_list.asciidoc
Expand Up @@ -12,14 +12,14 @@ This file is generated! See scripts/mage/docs_collector.go
|<<metricbeat-module-appsearch,appsearch>> beta[] |image:./images/icon-no.png[No prebuilt dashboards] |
.1+| .1+| |<<metricbeat-metricset-appsearch-stats,stats>> beta[]
|<<metricbeat-module-aws,aws>> |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.8+| .8+| |<<metricbeat-metricset-aws-cloudwatch,cloudwatch>> beta[]
.8+| .8+| |<<metricbeat-metricset-aws-cloudwatch,cloudwatch>>
|<<metricbeat-metricset-aws-ebs,ebs>> beta[]
|<<metricbeat-metricset-aws-ec2,ec2>>
|<<metricbeat-metricset-aws-elb,elb>> beta[]
|<<metricbeat-metricset-aws-rds,rds>> beta[]
|<<metricbeat-metricset-aws-s3_daily_storage,s3_daily_storage>> beta[]
|<<metricbeat-metricset-aws-s3_request,s3_request>> beta[]
|<<metricbeat-metricset-aws-sqs,sqs>> beta[]
|<<metricbeat-metricset-aws-rds,rds>>
|<<metricbeat-metricset-aws-s3_daily_storage,s3_daily_storage>>
|<<metricbeat-metricset-aws-s3_request,s3_request>>
|<<metricbeat-metricset-aws-sqs,sqs>>
|<<metricbeat-module-azure,azure>> beta[] |image:./images/icon-yes.png[Prebuilt dashboards are available] |
.3+| .3+| |<<metricbeat-metricset-azure-compute_vm,compute_vm>> beta[]
|<<metricbeat-metricset-azure-compute_vm_scaleset,compute_vm_scaleset>> beta[]
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/cloudwatch/_meta/fields.yml
Expand Up @@ -2,7 +2,7 @@
type: group
description: >
`cloudwatch` contains the metrics that were scraped from AWS CloudWatch which contains monitoring metrics sent by different namespaces.
release: beta
release: ga
fields:
- name: namespace
type: keyword
Expand Down
2 changes: 0 additions & 2 deletions x-pack/metricbeat/module/aws/cloudwatch/cloudwatch.go
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi/resourcegroupstaggingapiiface"
"github.com/pkg/errors"

"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/metricbeat/mb"
"github.com/elastic/beats/x-pack/metricbeat/module/aws"
)
Expand Down Expand Up @@ -91,7 +90,6 @@ type namespaceDetail struct {
// New creates a new instance of the MetricSet. New is responsible for unpacking
// any MetricSet specific configuration options if there are any.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The aws cloudwatch metricset is beta.")
metricSet, err := aws.NewMetricSet(base)
if err != nil {
return nil, errors.Wrap(err, "error creating aws metricset")
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.

2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/rds/_meta/fields.yml
Expand Up @@ -2,7 +2,7 @@
type: group
description: >
`rds` contains the metrics that were scraped from AWS CloudWatch which contains monitoring metrics sent by AWS RDS.
release: beta
release: ga
fields:
- name: cpu.total.pct
type: scaled_float
Expand Down
Expand Up @@ -2,7 +2,7 @@
type: group
description: >
`s3_daily_storage` contains the daily storage metrics that were scraped from AWS CloudWatch which contains monitoring metrics sent by AWS S3.
release: beta
release: ga
fields:
- name: bucket.size.bytes
type: long
Expand Down
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cloudwatch"
"github.com/pkg/errors"

"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/metricbeat/mb"
"github.com/elastic/beats/x-pack/metricbeat/module/aws"
)
Expand All @@ -39,8 +38,6 @@ type MetricSet struct {
// New creates a new instance of the MetricSet. New is responsible for unpacking
// any MetricSet specific configuration options if there are any.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The aws s3_daily_storage metricset is beta.")

moduleConfig := aws.Config{}
if err := base.Module().UnpackConfig(&moduleConfig); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/s3_request/_meta/fields.yml
Expand Up @@ -2,7 +2,7 @@
type: group
description: >
`s3_request` contains request metrics that were scraped from AWS CloudWatch which contains monitoring metrics sent by AWS S3.
release: beta
release: ga
fields:
- name: requests.total
type: long
Expand Down
3 changes: 0 additions & 3 deletions x-pack/metricbeat/module/aws/s3_request/s3_request.go
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cloudwatch"
"github.com/pkg/errors"

"github.com/elastic/beats/libbeat/common/cfgwarn"
"github.com/elastic/beats/metricbeat/mb"
"github.com/elastic/beats/x-pack/metricbeat/module/aws"
)
Expand All @@ -39,8 +38,6 @@ type MetricSet struct {
// New creates a new instance of the MetricSet. New is responsible for unpacking
// any MetricSet specific configuration options if there are any.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The aws s3_request metricset is beta.")

moduleConfig := aws.Config{}
if err := base.Module().UnpackConfig(&moduleConfig); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/sqs/_meta/fields.yml
Expand Up @@ -2,7 +2,7 @@
type: group
description: >
`sqs` contains the metrics that were scraped from AWS CloudWatch which contains monitoring metrics sent by AWS SQS.
release: beta
release: ga
fields:
- name: oldest_message_age.sec
type: long
Expand Down
3 changes: 0 additions & 3 deletions x-pack/metricbeat/module/aws/sqs/sqs.go
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/aws/aws-sdk-go-v2/service/sqs/sqsiface"
"github.com/pkg/errors"

"github.com/elastic/beats/libbeat/common/cfgwarn"
s "github.com/elastic/beats/libbeat/common/schema"
"github.com/elastic/beats/metricbeat/mb"
"github.com/elastic/beats/x-pack/metricbeat/module/aws"
Expand All @@ -43,8 +42,6 @@ type MetricSet struct {
// New creates a new instance of the MetricSet. New is responsible for unpacking
// any MetricSet specific configuration options if there are any.
func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
cfgwarn.Beta("The aws sqs metricset is beta.")

metricSet, err := aws.NewMetricSet(base)
if err != nil {
return nil, errors.Wrap(err, "error creating aws metricset")
Expand Down

0 comments on commit 6b6f970

Please sign in to comment.