Skip to content

Commit

Permalink
[memcached] Add dimension fields to stats datastream (#6926)
Browse files Browse the repository at this point in the history
* Add dimension fields to stats datastream

* Updated PR link in changelog

* Added fix to resolve dashboard issues
  • Loading branch information
agithomas authored Jul 17, 2023
1 parent 7e0edb3 commit 5bed897
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 101 deletions.
5 changes: 5 additions & 0 deletions packages/memcached/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.1.0"
changes:
- description: Add dimensions mapping for TSDB enablement.
type: enhancement
link: https://github.com/elastic/integrations/pull/6926
- version: "1.0.0"
changes:
- description: Make Memcached GA
Expand Down
25 changes: 25 additions & 0 deletions packages/memcached/data_stream/stats/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,32 @@
name: ecs.version
- external: ecs
name: service.address
dimension: true
- external: ecs
name: service.type
- external: ecs
name: tags
- external: ecs
name: agent.id
dimension: true
- external: ecs
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
- external: ecs
name: cloud.provider
dimension: true
- external: ecs
name: container.id
dimension: true
- external: ecs
name: host.name
dimension: true
8 changes: 8 additions & 0 deletions packages/memcached/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ The below metrics are fetched from memcached:
| Field | Description | Type | Unit | Metric Type |
|---|---|---|---|---|
| @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.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 | | |
| data_stream.type | Data stream type. | constant_keyword | | |
Expand All @@ -19,6 +26,7 @@ The below metrics are fetched from memcached:
| event.kind | Event kind | constant_keyword | | |
| event.module | Event module | constant_keyword | | |
| event.type | Event type | constant_keyword | | |
| 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 | | |
| memcached.stats.cmd.get | Number of "get" commands received since server startup not counting if they were successful or not. | long | | counter |
| memcached.stats.cmd.set | Number of "set" commands serviced since server startup. | long | | counter |
| memcached.stats.connections.current | Number of open connections to this Memcached server, should be the same value on all servers during normal operation. | long | | counter |
Expand Down
Loading

0 comments on commit 5bed897

Please sign in to comment.