Skip to content

Commit

Permalink
[InfluxDB] Modify the dimension field mapping to support public cloud…
Browse files Browse the repository at this point in the history
… deployment (#6035)

* Modify the dimension field mapping to support public cloud deployment
  • Loading branch information
agithomas committed May 10, 2023
1 parent b9dc109 commit f680157
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/influxdb/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.4.2"
changes:
- description: Modifed the dimension field mapping to support public cloud deployment.
type: bugfix
link: https://github.com/elastic/integrations/pull/6035
- version: "0.4.1"
changes:
- description: Add additional dimension field for advstatus datastream.
Expand Down
8 changes: 7 additions & 1 deletion packages/influxdb/data_stream/advstatus/fields/ecs.yml
Expand Up @@ -11,8 +11,14 @@
name: agent.id
dimension: true
- external: ecs
name: cloud.project.id
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: cloud.availability_zone
dimension: true
- external: ecs
name: cloud.instance.id
dimension: true
Expand Down
2 changes: 1 addition & 1 deletion packages/influxdb/data_stream/advstatus/manifest.yml
Expand Up @@ -27,4 +27,4 @@ streams:
elasticsearch:
index_template:
settings:
index.mapping.dimension_fields.limit: 24
index.mapping.dimension_fields.limit: 32
8 changes: 7 additions & 1 deletion packages/influxdb/data_stream/status/fields/ecs.yml
Expand Up @@ -11,8 +11,14 @@
name: agent.id
dimension: true
- external: ecs
name: cloud.project.id
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: cloud.availability_zone
dimension: true
- external: ecs
name: cloud.instance.id
dimension: true
Expand Down
8 changes: 6 additions & 2 deletions packages/influxdb/docs/README.md
Expand Up @@ -25,9 +25,11 @@ Status metrics include details of memory usage, OS thread usage, query statistic
|---|---|---|---|---|
| @timestamp | Event timestamp. | date | | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | | |
| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | | |
| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword | | |
| cloud.instance.id | Instance ID of the host machine. | keyword | | |
| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword | | |
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | | |
| cloud.region | Region in which this host, resource, or service is located. | keyword | | |
| container.id | Unique container id. | keyword | | |
| data_stream.dataset | Data stream dataset. | constant_keyword | | |
| data_stream.namespace | Data stream namespace. | constant_keyword | | |
Expand Down Expand Up @@ -206,9 +208,11 @@ Advanced status metric include details of query execution statistics, compaction
|---|---|---|
| @timestamp | Event timestamp. | date |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword |
| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword |
| cloud.availability_zone | Availability zone in which this host, resource, or service is located. | keyword |
| cloud.instance.id | Instance ID of the host machine. | keyword |
| cloud.project.id | The cloud project identifier. Examples: Google Cloud Project id, Azure Project id. | keyword |
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword |
| cloud.region | Region in which this host, resource, or service is located. | keyword |
| container.id | Unique container id. | keyword |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/influxdb/manifest.yml
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: influxdb
title: "InfluxDb"
version: 0.4.1
version: 0.4.2
license: basic
description: "Collect metrics from Influxdb database"
type: integration
Expand Down

0 comments on commit f680157

Please sign in to comment.