diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 26a824cc8e8..b856cb12918 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -28948,7 +28948,6 @@ type: long Google Cloud Storage metrics - *`gcp.storage.api.request_count.value`*:: + -- @@ -28958,7 +28957,6 @@ type: long -- - *`gcp.storage.authz.acl_based_object_access_count.value`*:: + -- @@ -28986,7 +28984,6 @@ type: long -- - *`gcp.storage.network.received_bytes_count.value`*:: + -- @@ -29005,7 +29002,6 @@ type: long -- - *`gcp.storage.storage.object_count.value`*:: + -- diff --git a/x-pack/metricbeat/module/gcp/fields.go b/x-pack/metricbeat/module/gcp/fields.go index d0737a69666..16d31715cf7 100644 --- a/x-pack/metricbeat/module/gcp/fields.go +++ b/x-pack/metricbeat/module/gcp/fields.go @@ -19,5 +19,5 @@ func init() { // AssetGcp returns asset data. // This is the base64 encoded zlib format compressed contents of module/gcp. func AssetGcp() string { - return "eJzcXVuP2zb2f8+nOOhLkj8mzr/dxT4EiwLTybYNNtMamCSvKkUd26wpUiWpcZxPv+BFsmRLtmyJnubyNLZ1+Ds3ngsvegVr3L6BJS2eARhmOL6B579IueQId1yWGcw5MQup8ufPABRyJBrfQIqGPAPIUFPFCsOkeAM/PgMA+OVuDrnMSo7PABYMeabfuC9egSA5VkPZf2Zb2L+VLKtPmr9vPsNJilzXH1ePyvRPpKbxcQee6p/HJZiRiokl5GgUo/qQ8j6EJoxSo5r9X+urXij2n/8w8b9Y43YjVdZJOEdDMmJILOKW1Si09VYbzKOQVqhlqShORrwi/F0tEP//u9N21aKbyTJ11t3xbZKTomBiGX76XYv4Eeu8D+ZoVsSAQlMqgRkslMyh5Yy383fwV4lqOztgK2WcM7HsG69F5if/28o0Gs/se3hbME1fhU5nqdBQqb1Enh2qrkvrLax3Uhv3Ww1MUF5mCAqXJSfqBgz5fAMk+7PUJkdhboCIDJQsRWbFjkpJNevAw8SjZBSTXAqzugRTJTKFhV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5k5BFWCdeYH20p02ZuUZvV1RihPUqIxS8JfxCKUoh5XJOzhrkvh8IeyrAM6U4vwV7jCpcilIsJgBh4BaMmRbyEr3Q3W8M27+w+dhc5OmN3aM0oG/+dJrNbvPzTWs65XBPbjCSrVBVK2YDSx+PLSjF+/9zRcnTnJSdZUVsW3V2sRroPvIdu7CL5/dXoaT574RninCJ1/iGAa+NWrfYK3jLp2sHcf3JPUUKCCtKRrNC3I1bt/KCdat+4fu7eyh4ZECoqOQka2/k+3uRvO1fcUFv4sOTHhwFO4SQzuZsUT4dUBbln6V+NlpPOU+eErmZLqovG344tTv1eqSpuE89qa4X0cfzOD/icAAP//v6KrVA==" } diff --git a/x-pack/metricbeat/module/gcp/storage/_meta/fields.yml b/x-pack/metricbeat/module/gcp/storage/_meta/fields.yml index cdf2fde2fff..ae53b563133 100644 --- a/x-pack/metricbeat/module/gcp/storage/_meta/fields.yml +++ b/x-pack/metricbeat/module/gcp/storage/_meta/fields.yml @@ -1,44 +1,32 @@ - name: storage + description: Google Cloud Storage metrics release: beta type: group - description: Google Cloud Storage metrics fields: - - name: api - type: group - fields: - - name: request_count.value - type: long - description: Delta count of API calls, grouped by the API method name and response code. - - name: authz - type: group - fields: - - name: acl_based_object_access_count.value - type: long - description: Delta count of requests that result in an object being granted access solely due to object ACLs. - - name: acl_operations_count.value - type: long - description: Usage of ACL operations broken down by type. - - name: object_specific_acl_mutation_count.value - type: long - description: Delta count of changes made to object specific ACLs. - - name: network - type: group - fields: - - name: received_bytes_count.value - type: long - description: Delta count of bytes received over the network, grouped by the API method name and response code. - - name: sent_bytes_count.value - type: long - description: Delta count of bytes sent over the network, grouped by the API method name and response code. - - name: storage - type: group - fields: - - name: object_count.value - type: long - description: Total number of objects per bucket, grouped by storage class. This value is measured once per day, and the value is repeated at each sampling interval throughout the day. - - name: total_byte_seconds.value - type: long - description: Delta count of bytes received over the network, grouped by the API method name and response code. - - name: total_bytes.value - type: long - description: Total size of all objects in the bucket, grouped by storage class. This value is measured once per day, and the value is repeated at each sampling interval throughout the day. + - name: api.request_count.value + type: long + description: Delta count of API calls, grouped by the API method name and response code. + - name: authz.acl_based_object_access_count.value + type: long + description: Delta count of requests that result in an object being granted access solely due to object ACLs. + - name: authz.acl_operations_count.value + type: long + description: Usage of ACL operations broken down by type. + - name: authz.object_specific_acl_mutation_count.value + type: long + description: Delta count of changes made to object specific ACLs. + - name: network.received_bytes_count.value + type: long + description: Delta count of bytes received over the network, grouped by the API method name and response code. + - name: network.sent_bytes_count.value + type: long + description: Delta count of bytes sent over the network, grouped by the API method name and response code. + - name: storage.object_count.value + type: long + description: Total number of objects per bucket, grouped by storage class. This value is measured once per day, and the value is repeated at each sampling interval throughout the day. + - name: storage.total_byte_seconds.value + type: long + description: Delta count of bytes received over the network, grouped by the API method name and response code. + - name: storage.total_bytes.value + type: long + description: Total size of all objects in the bucket, grouped by storage class. This value is measured once per day, and the value is repeated at each sampling interval throughout the day. diff --git a/x-pack/metricbeat/module/gcp/storage/storage_integration_test.go b/x-pack/metricbeat/module/gcp/storage/storage_integration_test.go index 97c69e05be3..e89926bffe6 100644 --- a/x-pack/metricbeat/module/gcp/storage/storage_integration_test.go +++ b/x-pack/metricbeat/module/gcp/storage/storage_integration_test.go @@ -11,11 +11,27 @@ import ( "fmt" "testing" + "github.com/stretchr/testify/assert" + "github.com/elastic/beats/v7/libbeat/common" mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" "github.com/elastic/beats/v7/x-pack/metricbeat/module/gcp/metrics" ) +func TestFetch(t *testing.T) { + config := metrics.GetConfigForTest(t, "storage") + fmt.Printf("%+v\n", config) + + metricSet := mbtest.NewReportingMetricSetV2WithContext(t, config) + events, errs := mbtest.ReportingFetchV2WithContext(metricSet) + if len(errs) > 0 { + t.Fatalf("Expected 0 error, had %d. %v\n", len(errs), errs) + } + + assert.NotEmpty(t, events) + mbtest.TestMetricsetFieldsDocumented(t, metricSet, events) +} + func TestData(t *testing.T) { metricPrefixIs := func(metricPrefix string) func(e common.MapStr) bool { return func(e common.MapStr) bool {