Skip to content

Commit 948dafa

Browse files
[Azure][database_account] Add dimension and metric_type metadata (#7503)
* Add dimension and metric_type metadata to the database_account datastream Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> * Update changelog.yml * run elastic-package build; remove region dimension from the documentation Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co> --------- Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
1 parent eb30eaf commit 948dafa

File tree

8 files changed

+155
-142
lines changed

8 files changed

+155
-142
lines changed

packages/azure_metrics/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- version: "1.0.40"
2+
changes:
3+
- description: Add dimension and metric_type metadata to the database_account datastream
4+
type: enhancement
5+
link: https://github.com/elastic/integrations/pull/7503
16
- version: "1.0.39"
27
changes:
38
- description: Remove region dimension in the database_account datastream

packages/azure_metrics/data_stream/database_account/fields/agent.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
ignore_above: 1024
4949
description: Region in which this host is running.
5050
example: us-east-1
51+
dimension: true
5152
- name: project.id
5253
type: keyword
5354
description: Name of the project in Google Cloud.
@@ -62,26 +63,11 @@
6263
These fields help correlate data based containers from any runtime.'
6364
type: group
6465
fields:
65-
- name: id
66-
level: core
67-
type: keyword
68-
ignore_above: 1024
69-
description: Unique container id.
70-
- name: image.name
71-
level: extended
72-
type: keyword
73-
ignore_above: 1024
74-
description: Name of the image the container was built on.
7566
- name: labels
7667
level: extended
7768
type: object
7869
object_type: keyword
7970
description: Image labels.
80-
- name: name
81-
level: extended
82-
type: keyword
83-
ignore_above: 1024
84-
description: Container name.
8571
- name: host
8672
title: Host
8773
group: 2

packages/azure_metrics/data_stream/database_account/fields/ecs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515
external: ecs
1616
- name: host
1717
external: ecs
18+
- name: agent.id
19+
external: ecs
20+
dimension: true

packages/azure_metrics/data_stream/database_account/fields/fields.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
type: object
33
object_type: float
44
object_type_mapping_type: "*"
5+
metric_type: gauge
56
description: >
67
database account
78

packages/azure_metrics/data_stream/database_account/fields/package-fields.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
fields:
55
- name: timegrain
66
type: keyword
7+
dimension: true
78
description: >
89
The Azure metric timegrain
910
@@ -24,6 +25,7 @@
2425
The name of the resource
2526
2627
- name: id
28+
dimension: true
2729
type: keyword
2830
description: >
2931
The id of the resource
@@ -42,6 +44,7 @@
4244
4345
- name: namespace
4446
type: keyword
47+
dimension: true
4548
description: >
4649
The namespace selected
4750
@@ -55,17 +58,24 @@
5558
description: >
5659
The application ID
5760
58-
- name: dimensions.*
59-
type: object
60-
object_type: keyword
61-
object_type_mapping_type: "*"
62-
description: >
63-
Azure metric dimensions.
64-
65-
- name: metrics.*.*
66-
type: object
67-
object_type: float
68-
object_type_mapping_type: "*"
69-
description: >
70-
Metrics returned.
71-
61+
- name: dimensions
62+
type: group
63+
fields:
64+
- name: database_name
65+
type: keyword
66+
dimension: true
67+
description: Database name
68+
- name: command_name
69+
type: keyword
70+
dimension: true
71+
description: Mongo requests command name
72+
- name: resource_name
73+
type: keyword
74+
dimension: true
75+
description: Name of the resource
76+
- name: closure_reason
77+
type: keyword
78+
description: Reason of the Cassandra Connection Closures
79+
- name: status_code
80+
type: keyword
81+
description: Status code of the made to database requests

packages/azure_metrics/docs/README.md

Lines changed: 60 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -562,62 +562,66 @@ so the `period` for `database_account` should be `300s` or multiples of `300s`.
562562

563563
**Exported fields**
564564

565-
| Field | Description | Type |
566-
|---|---|---|
567-
| @timestamp | Event timestamp. | date |
568-
| azure.application_id | The application ID | keyword |
569-
| azure.database_account.\*.\* | database account | object |
570-
| azure.dimensions.\* | Azure metric dimensions. | object |
571-
| azure.metrics.\*.\* | Metrics returned. | object |
572-
| azure.namespace | The namespace selected | keyword |
573-
| azure.resource.group | The resource group | keyword |
574-
| azure.resource.id | The id of the resource | keyword |
575-
| azure.resource.name | The name of the resource | keyword |
576-
| azure.resource.tags.\* | Azure resource tags. | object |
577-
| azure.resource.type | The type of the resource | keyword |
578-
| azure.subscription_id | The subscription ID | keyword |
579-
| azure.timegrain | The Azure metric timegrain | keyword |
580-
| 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 |
581-
| cloud.availability_zone | Availability zone in which this host is running. | keyword |
582-
| cloud.image.id | Image ID for the cloud instance. | keyword |
583-
| cloud.instance.id | Instance ID of the host machine. | keyword |
584-
| cloud.instance.name | Instance name of the host machine. | keyword |
585-
| cloud.machine.type | Machine type of the host machine. | keyword |
586-
| cloud.project.id | Name of the project in Google Cloud. | keyword |
587-
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword |
588-
| cloud.region | Region in which this host is running. | keyword |
589-
| container.id | Unique container id. | keyword |
590-
| container.image.name | Name of the image the container was built on. | keyword |
591-
| container.labels | Image labels. | object |
592-
| container.name | Container name. | keyword |
593-
| container.runtime | Runtime managing this container. | keyword |
594-
| data_stream.dataset | Data stream dataset name. | constant_keyword |
595-
| data_stream.namespace | Data stream namespace. | constant_keyword |
596-
| data_stream.type | Data stream type. | constant_keyword |
597-
| dataset.name | Dataset name. | constant_keyword |
598-
| dataset.namespace | Dataset namespace. | constant_keyword |
599-
| dataset.type | Dataset type. | constant_keyword |
600-
| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword |
601-
| host | A host is defined as a general computing instance. ECS host.\* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes. | group |
602-
| host.architecture | Operating system architecture. | keyword |
603-
| host.containerized | If the host is a container. | boolean |
604-
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword |
605-
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword |
606-
| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword |
607-
| host.ip | Host ip addresses. | ip |
608-
| host.mac | Host mac addresses. | keyword |
609-
| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword |
610-
| host.os.build | OS build information. | keyword |
611-
| host.os.codename | OS codename, if any. | keyword |
612-
| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword |
613-
| host.os.kernel | Operating system kernel version as a raw string. | keyword |
614-
| host.os.name | Operating system name, without the version. | keyword |
615-
| host.os.name.text | Multi-field of `host.os.name`. | text |
616-
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword |
617-
| host.os.version | Operating system version as a raw string. | keyword |
618-
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
619-
| service.address | Service address | keyword |
620-
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword |
565+
| Field | Description | Type | Metric Type |
566+
|---|---|---|---|
567+
| @timestamp | Event timestamp. | date | |
568+
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
569+
| azure.application_id | The application ID | keyword | |
570+
| azure.database_account.\*.\* | database account | object | gauge |
571+
| azure.dimensions.closure_reason | Reason of the Cassandra Connection Closures | keyword | |
572+
| azure.dimensions.command_name | Mongo requests command name | keyword | |
573+
| azure.dimensions.database_name | Database name | keyword | |
574+
| azure.dimensions.resource_name | Name of the resource | keyword | |
575+
| azure.dimensions.status_code | Status code of the made to database requests | keyword | |
576+
| azure.namespace | The namespace selected | keyword | |
577+
| azure.resource.group | The resource group | keyword | |
578+
| azure.resource.id | The id of the resource | keyword | |
579+
| azure.resource.name | The name of the resource | keyword | |
580+
| azure.resource.tags.\* | Azure resource tags. | object | |
581+
| azure.resource.type | The type of the resource | keyword | |
582+
| azure.subscription_id | The subscription ID | keyword | |
583+
| azure.timegrain | The Azure metric timegrain | keyword | |
584+
| 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 | |
585+
| cloud.availability_zone | Availability zone in which this host is running. | keyword | |
586+
| cloud.image.id | Image ID for the cloud instance. | keyword | |
587+
| cloud.instance.id | Instance ID of the host machine. | keyword | |
588+
| cloud.instance.name | Instance name of the host machine. | keyword | |
589+
| cloud.machine.type | Machine type of the host machine. | keyword | |
590+
| cloud.project.id | Name of the project in Google Cloud. | keyword | |
591+
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | |
592+
| cloud.region | Region in which this host is running. | keyword | |
593+
| container.id | Unique container id. | keyword | |
594+
| container.image.name | Name of the image the container was built on. | keyword | |
595+
| container.labels | Image labels. | object | |
596+
| container.name | Container name. | keyword | |
597+
| container.runtime | Runtime managing this container. | keyword | |
598+
| data_stream.dataset | Data stream dataset name. | constant_keyword | |
599+
| data_stream.namespace | Data stream namespace. | constant_keyword | |
600+
| data_stream.type | Data stream type. | constant_keyword | |
601+
| dataset.name | Dataset name. | constant_keyword | |
602+
| dataset.namespace | Dataset namespace. | constant_keyword | |
603+
| dataset.type | Dataset type. | constant_keyword | |
604+
| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | |
605+
| host | A host is defined as a general computing instance. ECS host.\* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes. | group | |
606+
| host.architecture | Operating system architecture. | keyword | |
607+
| host.containerized | If the host is a container. | boolean | |
608+
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | |
609+
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | |
610+
| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | |
611+
| host.ip | Host ip addresses. | ip | |
612+
| host.mac | Host mac addresses. | keyword | |
613+
| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | |
614+
| host.os.build | OS build information. | keyword | |
615+
| host.os.codename | OS codename, if any. | keyword | |
616+
| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | |
617+
| host.os.kernel | Operating system kernel version as a raw string. | keyword | |
618+
| host.os.name | Operating system name, without the version. | keyword | |
619+
| host.os.name.text | Multi-field of `host.os.name`. | text | |
620+
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | |
621+
| host.os.version | Operating system version as a raw string. | keyword | |
622+
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | |
623+
| service.address | Service address | keyword | |
624+
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword | |
621625

622626

623627
## Additional notes about metrics and costs

0 commit comments

Comments
 (0)