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

[GCP] Convert GCP Compute metricset from lightweight #3797

Merged
merged 5 commits into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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/gcp/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.2.1"
changes:
- description: Move Compute lightweight module config into integration
type: enhancement
link: https://github.com/elastic/integrations/pull/3797
- version: "2.2.0"
changes:
- description: Remove fields duplicated in ECS fields
Expand Down
24 changes: 23 additions & 1 deletion packages/gcp/data_stream/compute/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
metricsets: ["compute"]
metricsets: ["metrics"]
period: {{period}}
project_id: {{project_id}}
{{#if credentials_file}}
Expand All @@ -14,3 +14,25 @@ region: {{region}}
zone: {{zone}}
{{/if}}
exclude_labels: {{exclude_labels}}
metrics:
- service: compute
metric_types:
- "firewall/dropped_bytes_count"
- "firewall/dropped_packets_count"
- "instance/cpu/reserved_cores"
- "instance/cpu/usage_time"
- "instance/cpu/utilization"
- "instance/disk/read_bytes_count"
- "instance/disk/read_ops_count"
- "instance/disk/write_bytes_count"
- "instance/disk/write_ops_count"
- "instance/memory/balloon/ram_size"
- "instance/memory/balloon/ram_used"
- "instance/memory/balloon/swap_in_bytes_count"
- "instance/memory/balloon/swap_out_bytes_count"
- "instance/network/received_bytes_count"
- "instance/network/received_packets_count"
- "instance/network/sent_bytes_count"
- "instance/network/sent_packets_count"
- "instance/uptime"
- "instance/uptime_total"
2 changes: 1 addition & 1 deletion packages/gcp/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcp
title: Google Cloud Platform
version: "2.2.0"
version: "2.2.1"
release: ga
description: Collect logs from Google Cloud Platform with Elastic Agent.
type: integration
Expand Down