diff --git a/packages/gcp/_dev/build/docs/redis.md b/packages/gcp/_dev/build/docs/redis.md new file mode 100644 index 00000000000..771dc00a634 --- /dev/null +++ b/packages/gcp/_dev/build/docs/redis.md @@ -0,0 +1,13 @@ +# Redis + +## Metrics + +The `redis` dataset fetches metrics from [Redis](https://cloud.google.com/memorystore/) in Google Cloud Platform. It contains all metrics exported from the [GCP Redis Monitoring API](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-redis). + +## Sample Event + +{{event "redis"}} + +## Exported fields + +{{fields "redis"}} \ No newline at end of file diff --git a/packages/gcp/changelog.yml b/packages/gcp/changelog.yml index c47d321ab09..6ea618559dc 100644 --- a/packages/gcp/changelog.yml +++ b/packages/gcp/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "2.12.0" + changes: + - description: Add GCP Redis + type: enhancement + link: https://github.com/elastic/integrations/pull/4325 - version: "2.11.12" changes: - description: Add GKE ingest pipeline. diff --git a/packages/gcp/data_stream/redis/agent/stream/stream.yml.hbs b/packages/gcp/data_stream/redis/agent/stream/stream.yml.hbs new file mode 100644 index 00000000000..f49f27a4876 --- /dev/null +++ b/packages/gcp/data_stream/redis/agent/stream/stream.yml.hbs @@ -0,0 +1,50 @@ +metricsets: ["metrics"] +period: {{period}} +project_id: {{project_id}} +{{#if credentials_file}} +credentials_file_path: {{credentials_file}} +{{/if}} +{{#if credentials_json}} +credentials_json: '{{credentials_json}}' +{{/if}} +{{#if region}} +region: {{region}} +{{/if}} +{{#if zone}} +zone: {{zone}} +{{/if}} +exclude_labels: {{exclude_labels}} +metrics: + - service: redis + metric_types: + - "clients/blocked" + - "clients/connected" + - "commands/calls" + - "commands/total_time" + - "commands/usec_per_call" + - "keyspace/avg_ttl" + - "keyspace/keys" + - "keyspace/keys_with_expiration" + - "persistence/rdb/bgsave_in_progress" + - "replication/master/slaves/lag" + - "replication/master/slaves/offset" + - "replication/master_repl_offset" + - "replication/offset_diff" + - "replication/role" + - "server/uptime" + - "stats/cache_hit_ratio" + - "stats/connections/total" + - "stats/cpu_utilization" + - "stats/evicted_keys" + - "stats/expired_keys" + - "stats/keyspace_hits" + - "stats/keyspace_misses" + - "stats/memory/maxmemory" + - "stats/memory/system_memory_overload_duration" + - "stats/memory/system_memory_usage_ratio" + - "stats/memory/usage" + - "stats/memory/usage_ratio" + - "stats/network_traffic" + - "stats/pubsub/channels" + - "stats/pubsub/patterns" + - "stats/reject_connections_count" \ No newline at end of file diff --git a/packages/gcp/data_stream/redis/elasticsearch/ingest_pipeline/default.yml b/packages/gcp/data_stream/redis/elasticsearch/ingest_pipeline/default.yml new file mode 100644 index 00000000000..6760e205f00 --- /dev/null +++ b/packages/gcp/data_stream/redis/elasticsearch/ingest_pipeline/default.yml @@ -0,0 +1,131 @@ +--- +description: Pipeline for parsing GCP Redis metrics. +processors: + - rename: + field: gcp.metrics.clients.blocked.value + target_field: gcp.redis.clients.blocked.count + ignore_missing: true + - rename: + field: gcp.metrics.clients.connected.value + target_field: gcp.redis.clients.connected.count + ignore_missing: true + - rename: + field: gcp.metrics.commands.calls.value + target_field: gcp.redis.commands.calls.count + ignore_missing: true + - rename: + field: gcp.metrics.commands.total_time.value + target_field: gcp.redis.commands.total_time.us + ignore_missing: true + - rename: + field: gcp.metrics.commands.usec_per_call.value + target_field: gcp.redis.commands.usec_per_call.sec + ignore_missing: true + - rename: + field: gcp.metrics.keyspace.avg_ttl.value + target_field: gcp.redis.keyspace.avg_ttl.sec + ignore_missing: true + - rename: + field: gcp.metrics.keyspace.keys.value + target_field: gcp.redis.keyspace.keys.count + ignore_missing: true + - rename: + field: gcp.metrics.keyspace.keys_with_expiration.value + target_field: gcp.redis.keyspace.keys_with_expiration.count + ignore_missing: true + - rename: + field: gcp.metrics.persistence.rdb.bgsave_in_progress.value + target_field: gcp.redis.persistence.rdb.bgsave_in_progress + ignore_missing: true + - rename: + field: gcp.metrics.replication.master.slaves.lag.value + target_field: gcp.redis.replication.master.slaves.lag.sec + ignore_missing: true + - rename: + field: gcp.metrics.replication.master.slaves.offset.value + target_field: gcp.redis.replication.master.slaves.offset.bytes + ignore_missing: true + - rename: + field: gcp.metrics.replication.master_repl_offset.value + target_field: gcp.redis.replication.master_repl_offset.bytes + ignore_missing: true + - rename: + field: gcp.metrics.replication.offset_diff.value + target_field: gcp.redis.replication.offset_diff.bytes + ignore_missing: true + - rename: + field: gcp.metrics.replication.role.value + target_field: gcp.redis.replication.role + ignore_missing: true + - rename: + field: gcp.metrics.server.uptime.value + target_field: gcp.redis.server.uptime.sec + ignore_missing: true + - rename: + field: gcp.metrics.stats.cache_hit_ratio.value + target_field: gcp.redis.stats.cache_hit_ratio + ignore_missing: true + - rename: + field: gcp.metrics.stats.connections.total.value + target_field: gcp.redis.stats.connections.total.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.cpu_utilization.value + target_field: gcp.redis.stats.cpu_utilization.sec + ignore_missing: true + - rename: + field: gcp.metrics.stats.evicted_keys.value + target_field: gcp.redis.stats.evicted_keys.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.expired_keys.value + target_field: gcp.redis.stats.expired_keys.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.keyspace_hits.value + target_field: gcp.redis.stats.keyspace_hits.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.keyspace_misses.value + target_field: gcp.redis.stats.keyspace_misses.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.memory.maxmemory.value + target_field: gcp.redis.stats.memory.maxmemory.mb + ignore_missing: true + - rename: + field: gcp.metrics.stats.memory.system_memory_overload_duration.value + target_field: gcp.redis.stats.memory.system_memory_overload_duration.us + ignore_missing: true + - rename: + field: gcp.metrics.stats.memory.system_memory_usage_ratio.value + target_field: gcp.redis.stats.memory.system_memory_usage_ratio + ignore_missing: true + - rename: + field: gcp.metrics.stats.memory.usage.value + target_field: gcp.redis.stats.memory.usage.bytes + ignore_missing: true + - rename: + field: gcp.metrics.stats.memory.usage_ratio.value + target_field: gcp.redis.stats.memory.usage_ratio + ignore_missing: true + - rename: + field: gcp.metrics.stats.network_traffic.value + target_field: gcp.redis.stats.network_traffic.bytes + ignore_missing: true + - rename: + field: gcp.metrics.stats.pubsub.channels.value + target_field: gcp.redis.stats.pubsub.channels.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.pubsub.patterns.value + target_field: gcp.redis.stats.pubsub.patterns.count + ignore_missing: true + - rename: + field: gcp.metrics.stats.reject_connections_count.value + target_field: gcp.redis.stats.reject_connections.count + ignore_missing: true +on_failure: + - set: + field: error.message + value: '{{ _ingest.on_failure_message }}' \ No newline at end of file diff --git a/packages/gcp/data_stream/redis/fields/agent.yml b/packages/gcp/data_stream/redis/fields/agent.yml new file mode 100644 index 00000000000..2a31d79f494 --- /dev/null +++ b/packages/gcp/data_stream/redis/fields/agent.yml @@ -0,0 +1,198 @@ +- name: cloud + title: Cloud + group: 2 + description: Fields related to the cloud or infrastructure the events are coming from. + footnote: 'Examples: If Metricbeat is running on an GCP Compute VM and fetches data from its host, the cloud info contains the data about this machine. If Metricbeat runs on a remote machine outside the cloud and fetches data from a service running in the cloud, the field contains cloud data from the machine the service is running on.' + type: group + fields: + - name: account.id + level: extended + type: keyword + ignore_above: 1024 + description: '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.' + example: 666777888999 + - name: availability_zone + level: extended + type: keyword + ignore_above: 1024 + description: Availability zone in which this host is running. + example: us-east-1c + - name: instance.id + level: extended + type: keyword + ignore_above: 1024 + description: Instance ID of the host machine. + example: i-1234567890abcdef0 + - name: instance.name + level: extended + type: keyword + ignore_above: 1024 + description: Instance name of the host machine. + - name: machine.type + level: extended + type: keyword + ignore_above: 1024 + description: Machine type of the host machine. + example: t2.medium + - name: provider + level: extended + type: keyword + ignore_above: 1024 + description: Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. + example: aws + - name: region + level: extended + type: keyword + ignore_above: 1024 + description: Region in which this host is running. + example: us-east-1 + - name: project.id + type: keyword + description: Name of the project in Google Cloud. + - name: image.id + type: keyword + description: Image ID for the cloud instance. +- name: container + title: Container + group: 2 + description: 'Container fields are used for meta information about the specific container that is the source of information. + + These fields help correlate data based containers from any runtime.' + type: group + fields: + - name: id + level: core + type: keyword + ignore_above: 1024 + description: Unique container id. + - name: image.name + level: extended + type: keyword + ignore_above: 1024 + description: Name of the image the container was built on. + - name: labels + level: extended + type: object + object_type: keyword + description: Image labels. + - name: name + level: extended + type: keyword + ignore_above: 1024 + description: Container name. +- name: host + title: Host + group: 2 + description: '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.' + type: group + fields: + - name: architecture + level: core + type: keyword + ignore_above: 1024 + description: Operating system architecture. + example: x86_64 + - name: domain + level: extended + type: keyword + ignore_above: 1024 + description: '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.' + example: CONTOSO + default_field: false + - name: hostname + level: core + type: keyword + ignore_above: 1024 + description: 'Hostname of the host. + + It normally contains what the `hostname` command returns on the host machine.' + - name: id + level: core + type: keyword + ignore_above: 1024 + description: 'Unique host id. + + As hostname is not always unique, use values that are meaningful in your environment. + + Example: The current usage of `beat.name`.' + - name: ip + level: core + type: ip + description: Host ip addresses. + - name: mac + level: core + type: keyword + ignore_above: 1024 + description: Host mac addresses. + - name: name + level: core + type: keyword + ignore_above: 1024 + description: '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.' + - name: os.family + level: extended + type: keyword + ignore_above: 1024 + description: OS family (such as redhat, debian, freebsd, windows). + example: debian + - name: os.kernel + level: extended + type: keyword + ignore_above: 1024 + description: Operating system kernel version as a raw string. + example: 4.4.0-112-generic + - name: os.name + level: extended + type: keyword + ignore_above: 1024 + multi_fields: + - name: text + type: text + norms: false + default_field: false + description: Operating system name, without the version. + example: Mac OS X + - name: os.platform + level: extended + type: keyword + ignore_above: 1024 + description: Operating system platform (such centos, ubuntu, windows). + example: darwin + - name: os.version + level: extended + type: keyword + ignore_above: 1024 + description: Operating system version as a raw string. + example: 10.14.1 + - name: type + level: core + type: keyword + ignore_above: 1024 + description: '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.' + - name: containerized + type: boolean + description: > + If the host is a container. + + - name: os.build + type: keyword + example: "18D109" + description: > + OS build information. + + - name: os.codename + type: keyword + example: "stretch" + description: > + OS codename, if any. + diff --git a/packages/gcp/data_stream/redis/fields/base-fields.yml b/packages/gcp/data_stream/redis/fields/base-fields.yml new file mode 100644 index 00000000000..04b25f1af46 --- /dev/null +++ b/packages/gcp/data_stream/redis/fields/base-fields.yml @@ -0,0 +1,20 @@ +- name: data_stream.type + type: constant_keyword + description: Data stream type. +- name: data_stream.dataset + type: constant_keyword + description: Data stream dataset. +- name: data_stream.namespace + type: constant_keyword + description: Data stream namespace. +- name: '@timestamp' + type: date + description: Event timestamp. +- name: event.module + type: constant_keyword + description: Event module + value: gcp +- name: event.dataset + type: constant_keyword + description: Event dataset + value: gcp.redis diff --git a/packages/gcp/data_stream/redis/fields/ecs.yml b/packages/gcp/data_stream/redis/fields/ecs.yml new file mode 100644 index 00000000000..83e3f6f1225 --- /dev/null +++ b/packages/gcp/data_stream/redis/fields/ecs.yml @@ -0,0 +1,24 @@ +- external: ecs + name: cloud +- external: ecs + name: cloud.account.id +- external: ecs + name: cloud.account.name +- external: ecs + name: cloud.availability_zone +- external: ecs + name: cloud.instance.id +- external: ecs + name: cloud.machine.type +- external: ecs + name: cloud.provider +- external: ecs + name: cloud.region +- external: ecs + name: ecs.version +- external: ecs + name: error +- external: ecs + name: error.message +- external: ecs + name: service.type diff --git a/packages/gcp/data_stream/redis/fields/fields.yml b/packages/gcp/data_stream/redis/fields/fields.yml new file mode 100644 index 00000000000..b3a1d72c5b5 --- /dev/null +++ b/packages/gcp/data_stream/redis/fields/fields.yml @@ -0,0 +1,141 @@ +- name: gcp.redis + description: Google Cloud Redis metrics + type: group + fields: + - name: clients.blocked.count + type: long + metric_type: gauge + description: Number of blocked clients. + - name: clients.connected.count + type: long + metric_type: gauge + description: Number of client connections. + - name: commands.calls.count + type: long + metric_type: counter + description: Total number of calls for this command in one minute. + - name: commands.total_time.us + type: long + unit: micros + metric_type: counter + description: The amount of time in microseconds that this command took in the last second. + - name: commands.usec_per_call.sec + type: double + unit: s + metric_type: gauge + description: Average time per call over 1 minute by command. + - name: keyspace.avg_ttl.sec + type: double + unit: s + metric_type: gauge + description: Average TTL for keys in this database. + - name: keyspace.keys.count + type: long + metric_type: gauge + description: Number of keys stored in this database. + - name: keyspace.keys_with_expiration.count + type: long + metric_type: gauge + description: Number of keys with an expiration in this database. + - name: persistence.rdb.bgsave_in_progress + type: boolean + metric_type: gauge + description: Flag indicating a RDB save is on-going. + - name: replication.master.slaves.lag.sec + type: long + unit: s + metric_type: gauge + description: The number of seconds that replica is lagging behind primary. + - name: replication.master.slaves.offset.bytes + type: long + unit: byte + metric_type: gauge + description: The number of bytes that have been acknowledged by replicas. + - name: replication.master_repl_offset.bytes + type: long + unit: byte + metric_type: gauge + description: The number of bytes that master has produced and sent to replicas. + - name: replication.offset_diff.bytes + type: long + unit: byte + metric_type: gauge + description: The largest number of bytes that have not been replicated across all replicas. This is the biggest difference between replication byte offset (master) and replication byte offset (replica) of all replicas. + - name: replication.role + type: long + metric_type: gauge + description: Returns a value indicating the node role. 1 indicates primary and 0 indicates replica. + - name: server.uptime.sec + type: long + unit: s + metric_type: gauge + description: Uptime in seconds. + - name: stats.cache_hit_ratio + type: double + metric_type: gauge + description: Cache Hit ratio as a fraction. + - name: stats.connections.total.count + type: long + metric_type: counter + description: Total number of connections accepted by the server. + - name: stats.cpu_utilization.sec + type: double + unit: s + metric_type: gauge + description: CPU-seconds consumed by the Redis server, broken down by system/user space and parent/child relationship. + - name: stats.evicted_keys.count + type: long + metric_type: counter + description: Number of evicted keys due to maxmemory limit. + - name: stats.expired_keys.count + type: long + metric_type: counter + description: Total number of key expiration events. + - name: stats.keyspace_hits.count + type: long + metric_type: counter + description: Number of successful lookup of keys in the main dictionary. + - name: stats.keyspace_misses.count + type: long + metric_type: counter + description: Number of failed lookup of keys in the main dictionary. + - name: stats.memory.maxmemory.mb + type: long + unit: m + metric_type: gauge + description: Maximum amount of memory Redis can consume. + - name: stats.memory.system_memory_overload_duration.us + type: long + unit: micros + metric_type: gauge + description: The amount of time in microseconds the instance is in system memory overload mode. + - name: stats.memory.system_memory_usage_ratio + type: double + metric_type: gauge + description: Memory usage as a ratio of maximum system memory. + - name: stats.memory.usage.bytes + type: long + unit: byte + metric_type: gauge + description: Total number of bytes allocated by Redis. + - name: stats.memory.usage_ratio + type: double + metric_type: gauge + description: Memory usage as a ratio of maximum memory. + - name: stats.network_traffic.bytes + type: long + unit: byte + metric_type: counter + description: Total number of bytes sent to/from redis (includes bytes from commands themselves, payload data, and delimiters). + - name: stats.pubsub.channels.count + type: long + metric_type: gauge + description: Global number of pub/sub channels with client subscriptions. + - name: stats.pubsub.patterns.count + type: long + metric_type: gauge + description: Global number of pub/sub pattern with client subscriptions. + - name: stats.reject_connections.count + type: long + metric_type: gauge + description: Number of connections rejected because of maxclients limit. diff --git a/packages/gcp/data_stream/redis/fields/package-fields.yml b/packages/gcp/data_stream/redis/fields/package-fields.yml new file mode 100644 index 00000000000..d8ccb93f502 --- /dev/null +++ b/packages/gcp/data_stream/redis/fields/package-fields.yml @@ -0,0 +1,31 @@ +- name: gcp + description: >- + GCP module + fields: + - name: labels + type: object + description: >- + GCP monitoring metrics labels + fields: + - name: user.* + type: object + object_type: keyword + - name: metadata.* + type: object + object_type: keyword + - name: metrics.* + type: object + object_type: keyword + - name: system.* + type: object + object_type: keyword + - name: resource.* + type: object + object_type: keyword + - name: "metrics.*.*.*.*" + type: object + object_type: double + object_type_mapping_type: "*" + description: > + Metrics that returned from Google Cloud API query. + diff --git a/packages/gcp/data_stream/redis/manifest.yml b/packages/gcp/data_stream/redis/manifest.yml new file mode 100644 index 00000000000..34af2e39c8a --- /dev/null +++ b/packages/gcp/data_stream/redis/manifest.yml @@ -0,0 +1,31 @@ +title: "GCP Redis Metrics" +type: metrics +streams: + - input: gcp/metrics + title: GCP Redis Metrics + description: Collect GCP Redis Metrics + vars: + - name: zone + type: text + title: GCP Zone + multi: false + required: false + show_user: true + - name: region + type: text + title: GCP Region + multi: false + required: false + show_user: true + - name: period + type: text + title: Period + default: 60s + required: true + - name: exclude_labels + type: bool + title: Exclude Labels + description: Exclude additional labels from metrics + multi: false + required: false + show_user: true diff --git a/packages/gcp/data_stream/redis/sample_event.json b/packages/gcp/data_stream/redis/sample_event.json new file mode 100644 index 00000000000..d4a07632b07 --- /dev/null +++ b/packages/gcp/data_stream/redis/sample_event.json @@ -0,0 +1,49 @@ +{ + "@timestamp": "2017-10-12T08:05:34.853Z", + "cloud": { + "account": { + "id": "elastic-obs-integrations-dev", + "name": "elastic-obs-integrations-dev" + }, + "instance": { + "id": "4751091017865185079", + "name": "gke-cluster-1-default-pool-6617a8aa-5clh" + }, + "machine": { + "type": "e2-medium" + }, + "provider": "gcp", + "availability_zone": "us-central1-c", + "region": "us-central1" + }, + "event": { + "dataset": "gcp.redis", + "duration": 115000, + "module": "gcp" + }, + "gcp": { + "redis": { + "clients": { + "blocked": { + "count": 4 + } + } + }, + "labels": { + "user": { + "goog-gke-node": "" + } + } + }, + "host": { + "id": "4751091017865185079", + "name": "gke-cluster-1-default-pool-6617a8aa-5clh" + }, + "metricset": { + "name": "metrics", + "period": 10000 + }, + "service": { + "type": "gcp" + } +} \ No newline at end of file diff --git a/packages/gcp/docs/redis.md b/packages/gcp/docs/redis.md new file mode 100644 index 00000000000..9760f9540d1 --- /dev/null +++ b/packages/gcp/docs/redis.md @@ -0,0 +1,147 @@ +# Redis + +## Metrics + +The `redis` dataset fetches metrics from [Redis](https://cloud.google.com/memorystore/) in Google Cloud Platform. It contains all metrics exported from the [GCP Redis Monitoring API](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-redis). + +## Sample Event + +An example event for `redis` looks as following: + +```json +{ + "@timestamp": "2017-10-12T08:05:34.853Z", + "cloud": { + "account": { + "id": "elastic-obs-integrations-dev", + "name": "elastic-obs-integrations-dev" + }, + "instance": { + "id": "4751091017865185079", + "name": "gke-cluster-1-default-pool-6617a8aa-5clh" + }, + "machine": { + "type": "e2-medium" + }, + "provider": "gcp", + "availability_zone": "us-central1-c", + "region": "us-central1" + }, + "event": { + "dataset": "gcp.redis", + "duration": 115000, + "module": "gcp" + }, + "gcp": { + "redis": { + "clients": { + "blocked": { + "count": 4 + } + } + }, + "labels": { + "user": { + "goog-gke-node": "" + } + } + }, + "host": { + "id": "4751091017865185079", + "name": "gke-cluster-1-default-pool-6617a8aa-5clh" + }, + "metricset": { + "name": "metrics", + "period": 10000 + }, + "service": { + "type": "gcp" + } +} +``` + +## Exported fields + +**Exported fields** + +| Field | Description | Type | Unit | Metric Type | +|---|---|---|---|---| +| @timestamp | Event timestamp. | date | | | +| cloud | Fields related to the cloud or infrastructure the events are coming from. | group | | | +| 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.account.name | The cloud account name or alias used to identify different entities in a multi-tenant environment. Examples: AWS account name, Google Cloud ORG display name. | keyword | | | +| cloud.availability_zone | Availability zone in which this host is running. | keyword | | | +| cloud.image.id | Image ID for the cloud instance. | keyword | | | +| cloud.instance.id | Instance ID of the host machine. | keyword | | | +| cloud.instance.name | Instance name of the host machine. | keyword | | | +| cloud.machine.type | Machine type of the host machine. | keyword | | | +| cloud.project.id | Name of the project in Google Cloud. | 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 | | | +| container.image.name | Name of the image the container was built on. | keyword | | | +| container.labels | Image labels. | object | | | +| container.name | Container name. | 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 | | | +| 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 | | | +| error | These fields can represent errors of any kind. Use them for errors that happen while fetching events or in cases where the event itself contains an error. | group | | | +| error.message | Error message. | match_only_text | | | +| event.dataset | Event dataset | constant_keyword | | | +| event.module | Event module | constant_keyword | | | +| gcp.labels.metadata.\* | | object | | | +| gcp.labels.metrics.\* | | object | | | +| gcp.labels.resource.\* | | object | | | +| gcp.labels.system.\* | | object | | | +| gcp.labels.user.\* | | object | | | +| gcp.metrics.\*.\*.\*.\* | Metrics that returned from Google Cloud API query. | object | | | +| gcp.redis.clients.blocked.count | Number of blocked clients. | long | | gauge | +| gcp.redis.clients.connected.count | Number of client connections. | long | | gauge | +| gcp.redis.commands.calls.count | Total number of calls for this command in one minute. | long | | counter | +| gcp.redis.commands.total_time.us | The amount of time in microseconds that this command took in the last second. | long | micros | counter | +| gcp.redis.commands.usec_per_call.sec | Average time per call over 1 minute by command. | double | s | gauge | +| gcp.redis.keyspace.avg_ttl.sec | Average TTL for keys in this database. | double | s | gauge | +| gcp.redis.keyspace.keys.count | Number of keys stored in this database. | long | | gauge | +| gcp.redis.keyspace.keys_with_expiration.count | Number of keys with an expiration in this database. | long | | gauge | +| gcp.redis.persistence.rdb.bgsave_in_progress | Flag indicating a RDB save is on-going. | boolean | | gauge | +| gcp.redis.replication.master.slaves.lag.sec | The number of seconds that replica is lagging behind primary. | long | s | gauge | +| gcp.redis.replication.master.slaves.offset.bytes | The number of bytes that have been acknowledged by replicas. | long | byte | gauge | +| gcp.redis.replication.master_repl_offset.bytes | The number of bytes that master has produced and sent to replicas. | long | byte | gauge | +| gcp.redis.replication.offset_diff.bytes | The largest number of bytes that have not been replicated across all replicas. This is the biggest difference between replication byte offset (master) and replication byte offset (replica) of all replicas. | long | byte | gauge | +| gcp.redis.replication.role | Returns a value indicating the node role. 1 indicates primary and 0 indicates replica. | long | | gauge | +| gcp.redis.server.uptime.sec | Uptime in seconds. | long | s | gauge | +| gcp.redis.stats.cache_hit_ratio | Cache Hit ratio as a fraction. | double | | gauge | +| gcp.redis.stats.connections.total.count | Total number of connections accepted by the server. | long | | counter | +| gcp.redis.stats.cpu_utilization.sec | CPU-seconds consumed by the Redis server, broken down by system/user space and parent/child relationship. | double | s | gauge | +| gcp.redis.stats.evicted_keys.count | Number of evicted keys due to maxmemory limit. | long | | counter | +| gcp.redis.stats.expired_keys.count | Total number of key expiration events. | long | | counter | +| gcp.redis.stats.keyspace_hits.count | Number of successful lookup of keys in the main dictionary. | long | | counter | +| gcp.redis.stats.keyspace_misses.count | Number of failed lookup of keys in the main dictionary. | long | | counter | +| gcp.redis.stats.memory.maxmemory.mb | Maximum amount of memory Redis can consume. | long | m | gauge | +| gcp.redis.stats.memory.system_memory_overload_duration.us | The amount of time in microseconds the instance is in system memory overload mode. | long | micros | gauge | +| gcp.redis.stats.memory.system_memory_usage_ratio | Memory usage as a ratio of maximum system memory. | double | | gauge | +| gcp.redis.stats.memory.usage.bytes | Total number of bytes allocated by Redis. | long | byte | gauge | +| gcp.redis.stats.memory.usage_ratio | Memory usage as a ratio of maximum memory. | double | | gauge | +| gcp.redis.stats.network_traffic.bytes | Total number of bytes sent to/from redis (includes bytes from commands themselves, payload data, and delimiters). | long | byte | counter | +| gcp.redis.stats.pubsub.channels.count | Global number of pub/sub channels with client subscriptions. | long | | gauge | +| gcp.redis.stats.pubsub.patterns.count | Global number of pub/sub pattern with client subscriptions. | long | | gauge | +| gcp.redis.stats.reject_connections.count | Number of connections rejected because of maxclients limit. | long | | gauge | +| host.architecture | Operating system architecture. | keyword | | | +| host.containerized | If the host is a container. | boolean | | | +| 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 | | | +| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | | | +| 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 | | | +| host.ip | Host ip addresses. | ip | | | +| host.mac | Host mac addresses. | 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 | | | +| host.os.build | OS build information. | keyword | | | +| host.os.codename | OS codename, if any. | keyword | | | +| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | | | +| host.os.kernel | Operating system kernel version as a raw string. | keyword | | | +| host.os.name | Operating system name, without the version. | keyword | | | +| host.os.name.text | Multi-field of `host.os.name`. | text | | | +| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | | | +| host.os.version | Operating system version as a raw string. | keyword | | | +| 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 | | | +| 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 | | | diff --git a/packages/gcp/manifest.yml b/packages/gcp/manifest.yml index 45bdb623b45..94054e2b10c 100644 --- a/packages/gcp/manifest.yml +++ b/packages/gcp/manifest.yml @@ -1,6 +1,6 @@ name: gcp title: Google Cloud Platform -version: "2.11.12" +version: "2.12.0" release: ga description: Collect logs from Google Cloud Platform with Elastic Agent. type: integration @@ -200,5 +200,14 @@ policy_templates: - type: gcp/metrics title: Collect GCP PubSub Metrics description: Collect GCP PubSub Metrics + - name: redis + title: Google Cloud Platform (GCP) Redis metrics + description: Collect Redis metrics from Google Cloud Platform (GCP) with Elastic Agent + data_streams: + - redis + inputs: + - type: gcp/metrics + title: Collect GCP Redis Metrics + description: Collect GCP Redis Metrics owner: github: elastic/security-external-integrations