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 package billing datastream tests #2312

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
dev/packages

elastic-package

# Terraform local module folder and local state files
.terraform/
terraform.tfstate*
52 changes: 22 additions & 30 deletions packages/gcp/_dev/build/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
# Google Cloud Integration

The Google Cloud integration collects and parses Google Cloud audit, VPC flow,
and firewall logs that have been exported from Stackdriver to a Google Pub/Sub topic sink.

## Logs

### Audit

This is the `audit` dataset.

{{event "audit"}}

{{fields "audit"}}

### Firewall

This is the `firewall` dataset.

{{event "firewall"}}

{{fields "firewall"}}

### VPC Flow

This is the `VPC Flow` dataset.

{{event "vpcflow"}}

{{fields "vpcflow"}}
# Google Cloud Platform Integration

This integration is used to fetches logs and metrics from
[Google Cloud Platform](https://cloud.google.com/).

## GCP Credentials
GCP credentials are required for running GCP integration.

### Configuration parameters
* *project_id*: ID of the GCP project.
* *credentials_file*: Path to JSON file with GCP credentials. Required when not using `credentials_json`.
* *credentials_json*: Raw JSON text of GCP Credentials. Required when not using `credentials_file`.

#### Data stream specific configuration parameters
* *period*: How often the data stream is executed.
* *region*: Specify which GCP regions to query metrics from. If the `region`
is not set in the config, then by default, the integration will query metrics
from all available GCP regions. If both `region` and `zone` is set, `region` takes precedent.
* *zone*: Specify which GCP zones to query metrics from. If the `zone`
is not set in the config, then by default, the integration will query metrics
from all available GCP zone. If both `region` and `zone` is set, `region` takes precedent.
* *exclude_labels*: Exclude additional labels from metrics. Defaults to false.
30 changes: 30 additions & 0 deletions packages/gcp/_dev/build/docs/logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Google Cloud Platform Logs Integration

The Google Cloud Platform Logs integration collects and parses Google Cloud audit, VPC flow,
and firewall logs that have been exported from Stackdriver to a Google Pub/Sub topic sink.

## Logs

### Audit

This is the `audit` dataset.

{{event "audit"}}

{{fields "audit"}}

### Firewall

This is the `firewall` dataset.

{{event "firewall"}}

{{fields "firewall"}}

### VPC Flow

This is the `VPC Flow` dataset.

{{event "vpcflow"}}

{{fields "vpcflow"}}
13 changes: 13 additions & 0 deletions packages/gcp/_dev/build/docs/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Google Cloud Platform Metrics Integration

The Google Cloud Platform Metrics integration collects and parses Google Cloud billing metrics.

## Metrics

### Billing

This is the `billing` dataset.

{{event "billing"}}

{{fields "billing"}}
3 changes: 3 additions & 0 deletions packages/gcp/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- description: Add 8.0.0 version constraint
type: enhancement
link: https://github.com/elastic/integrations/pull/2251
- description: Add GCP Billing Metricset
type: enhancement
link: https://github.com/elastic/integrations/pull/2141
- version: "1.1.2"
changes:
- description: Update Title and Description.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
service: gcppubsub-emulator
input: gcp-pubsub
vars:
alternative_host: "{{Hostname}}:{{Port}}"
credentials_json: '{\"fake\":\"creds\"}'
project_id: audit
data_stream:
vars:
subscription_name: subscription
topic: topic
alternative_host: "{{Hostname}}:{{Port}}"
7 changes: 7 additions & 0 deletions packages/gcp/data_stream/audit/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ streams:
required: true
show_user: false
default: false
- name: alternative_host
type: text
title: Alternative host
multi: false
required: false
show_user: false
description: "GCP Alternative host"
- name: tags
type: text
title: Tags
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading