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

[AWS][API Gateway] Fix metric type #6952

Merged
merged 4 commits into from
Jul 14, 2023
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
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.46.5"
changes:
- description: Fix metric type for API Gateway metric fields.
type: enhancement
link: https://github.com/elastic/integrations/pull/6952
- version: "1.46.4"
changes:
- description: Set dimensions fields for API Gateway data stream.
Expand Down
26 changes: 13 additions & 13 deletions packages/aws/data_stream/apigateway_metrics/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
- name: 4XXError.sum
type: long
description: The number of client-side errors captured in a given period.
metric_type: counter
metric_type: gauge
- name: 4xx.sum
type: long
description: The number of client-side errors captured in a given period.
metric_type: counter
metric_type: gauge
- name: 5XXError.sum
type: long
description: The number of server-side errors captured in a given period.
metric_type: counter
metric_type: gauge
- name: 5xx.sum
type: long
description: The number of server-side errors captured in a given period.
metric_type: counter
metric_type: gauge
- name: Count.sum
type: long
description: The total number API requests in a given period.
metric_type: counter
metric_type: gauge
- name: IntegrationLatency.avg
type: long
description: The time between when API Gateway relays a request to the backend and when it receives a response from the backend.
Expand All @@ -45,35 +45,35 @@
- name: CacheHitCount.sum
type: long
description: The number of requests served from the API cache in a given period.
metric_type: counter
metric_type: gauge
- name: CacheMissCount.sum
type: long
description: The number of requests served from the backend in a given period, when API caching is enabled.
metric_type: counter
metric_type: gauge
- name: Count.sum
type: long
description: The total number of API requests in a given period.
metric_type: counter
metric_type: gauge
- name: ConnectCount.sum
type: long
description: The number of messages sent to the connect route integration.
metric_type: counter
metric_type: gauge
- name: MessageCount.sum
type: long
description: The number of messages sent to the WebSocket API, either from or to the client.
metric_type: counter
metric_type: gauge
- name: IntegrationError.sum
type: long
description: The number of requests that return a 4XX/5XX response from the integration.
metric_type: counter
metric_type: gauge
- name: ClientError.sum
type: long
description: The number of requests that have a 4XX response returned by API Gateway before the integration is invoked.
metric_type: counter
metric_type: gauge
- name: ExecutionError.sum
type: long
description: Errors that occurred when calling the integration.
metric_type: counter
metric_type: gauge
- name: dimensions
type: group
fields:
Expand Down
24 changes: 12 additions & 12 deletions packages/aws/docs/apigateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,21 @@ An example event for `apigateway` looks as following:
|---|---|---|---|---|
| @timestamp | Event timestamp. | date | | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | | |
| aws.apigateway.metrics.4XXError.sum | The number of client-side errors captured in a given period. | long | | counter |
| aws.apigateway.metrics.4xx.sum | The number of client-side errors captured in a given period. | long | | counter |
| aws.apigateway.metrics.5XXError.sum | The number of server-side errors captured in a given period. | long | | counter |
| aws.apigateway.metrics.5xx.sum | The number of server-side errors captured in a given period. | long | | counter |
| aws.apigateway.metrics.CacheHitCount.sum | The number of requests served from the API cache in a given period. | long | | counter |
| aws.apigateway.metrics.CacheMissCount.sum | The number of requests served from the backend in a given period, when API caching is enabled. | long | | counter |
| aws.apigateway.metrics.ClientError.sum | The number of requests that have a 4XX response returned by API Gateway before the integration is invoked. | long | | counter |
| aws.apigateway.metrics.ConnectCount.sum | The number of messages sent to the connect route integration. | long | | counter |
| aws.apigateway.metrics.Count.sum | The total number of API requests in a given period. | long | | counter |
| aws.apigateway.metrics.4XXError.sum | The number of client-side errors captured in a given period. | long | | gauge |
| aws.apigateway.metrics.4xx.sum | The number of client-side errors captured in a given period. | long | | gauge |
| aws.apigateway.metrics.5XXError.sum | The number of server-side errors captured in a given period. | long | | gauge |
| aws.apigateway.metrics.5xx.sum | The number of server-side errors captured in a given period. | long | | gauge |
| aws.apigateway.metrics.CacheHitCount.sum | The number of requests served from the API cache in a given period. | long | | gauge |
| aws.apigateway.metrics.CacheMissCount.sum | The number of requests served from the backend in a given period, when API caching is enabled. | long | | gauge |
| aws.apigateway.metrics.ClientError.sum | The number of requests that have a 4XX response returned by API Gateway before the integration is invoked. | long | | gauge |
| aws.apigateway.metrics.ConnectCount.sum | The number of messages sent to the connect route integration. | long | | gauge |
| aws.apigateway.metrics.Count.sum | The total number of API requests in a given period. | long | | gauge |
| aws.apigateway.metrics.DataProcessed.avg | The amount of data processed in bytes. | long | byte | gauge |
| aws.apigateway.metrics.ExecutionError.sum | Errors that occurred when calling the integration. | long | | counter |
| aws.apigateway.metrics.IntegrationError.sum | The number of requests that return a 4XX/5XX response from the integration. | long | | counter |
| aws.apigateway.metrics.ExecutionError.sum | Errors that occurred when calling the integration. | long | | gauge |
| aws.apigateway.metrics.IntegrationError.sum | The number of requests that return a 4XX/5XX response from the integration. | long | | gauge |
| aws.apigateway.metrics.IntegrationLatency.avg | The time between when API Gateway relays a request to the backend and when it receives a response from the backend. | long | ms | gauge |
| aws.apigateway.metrics.Latency.avg | The time between when API Gateway receives a request from a client and when it returns a response to the client. | long | ms | gauge |
| aws.apigateway.metrics.MessageCount.sum | The number of messages sent to the WebSocket API, either from or to the client. | long | | counter |
| aws.apigateway.metrics.MessageCount.sum | The number of messages sent to the WebSocket API, either from or to the client. | long | | gauge |
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword | | |
| aws.dimensions.ApiId | Each API created in API Gateway is assigned a unique ApiId, which is used to distinguish and reference that specific API within the system. | keyword | | |
| aws.dimensions.ApiName | It represents a human-readable name that helps identify and differentiate the API within the API Gateway service. | keyword | | |
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: aws
title: AWS
version: 1.46.4
version: 1.46.5
license: basic
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
type: integration
Expand Down