Skip to content

Fetch packages from package-storage #21

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

Merged
merged 5 commits into from
May 18, 2020
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
metricsets: ["billing"]
period: {{period}}
{{#if aws_access_key_id}}
aws_access_key_id: {{aws_access_key_id}}
{{/if}}
{{#if aws_secret_access_key}}
aws_secret_access_key: {{aws_secret_access_key}}
{{/if}}
{{#if aws_session_token}}
aws_session_token: {{aws_session_token}}
{{/if}}
{{#if credential_profile_name}}
credential_profile_name: {{credential_profile_name}}
{{/if}}
{{#if shared_credential_file}}
shared_credential_file: {{shared_credential_file}}
{{/if}}
{{#if role_arn}}
role_arn: {{role_arn}}
{{/if}}
{{#if regions}}
regions: {{regions}}
{{/if}}
50 changes: 50 additions & 0 deletions dev/packages/alpha/aws/0.0.3/dataset/billing/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
- name: cloud
title: Cloud
group: 2
type: group
footnote: 'Examples: If Metricbeat is running on an EC2 host 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.'
fields:
- name: account.id
level: extended
type: keyword
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.
ignore_above: 1024
- name: account.name
level: extended
type: keyword
description: |-
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.
ignore_above: 1024
- name: availability_zone
level: extended
type: keyword
description: Availability zone in which this host is running.
ignore_above: 1024
- name: instance.id
level: extended
type: keyword
description: Instance ID of the host machine.
ignore_above: 1024
- name: machine.type
level: extended
type: keyword
description: Machine type of the host machine.
ignore_above: 1024
- name: provider
level: extended
type: keyword
description: Name of the cloud provider. Example values are aws, azure, gcp, or
digitalocean.
ignore_above: 1024
- name: region
level: extended
type: keyword
description: Region in which this host is running.
ignore_above: 1024
10 changes: 10 additions & 0 deletions dev/packages/alpha/aws/0.0.3/dataset/billing/fields/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- name: aws.billing
type: group
release: beta
fields:
- name: metrics
type: group
fields:
- name: EstimatedCharges.max
type: long
description: Maximum estimated charges for AWS acccount.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- name: aws
type: group
fields:
- name: tags.*
type: object
description: |
Tag key value pairs from aws resources.
- name: s3.bucket.name
type: keyword
description: |
Name of a S3 bucket.
- name: dimensions.*
type: object
description: |
Metric dimensions.
- name: '*.metrics.*.*'
type: object
description: |
Metrics that returned from Cloudwatch API query.
15 changes: 15 additions & 0 deletions dev/packages/alpha/aws/0.0.3/dataset/billing/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: AWS billing metrics
release: beta
type: metrics
streams:
- input: aws/metrics
vars:
- name: period
type: text
title: Period
multi: false
required: true
show_user: true
default: 12h
title: AWS Billing metrics
description: Collect AWS billing metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
queue_url: {{queue_url}}
expand_event_list_from_field: Records
{{#if credential_profile_name}}
credential_profile_name: {{credential_profile_name}}
{{/if}}
{{#if shared_credential_file}}
shared_credential_file: {{shared_credential_file}}
{{/if}}
{{#if visibility_timeout}}
visibility_timeout: {{visibility_timeout}}
{{/if}}
{{#if api_timeout}}
api_timeout: {{api_timeout}}
{{/if}}
{{#if endpoint}}
endpoint: {{endpoint}}
{{/if}}
{{#if access_key_id}}
access_key_id: {{access_key_id}}
{{/if}}
{{#if secret_access_key}}
secret_access_key: {{secret_access_key}}
{{/if}}
{{#if session_token}}
session_token: {{session_token}}
{{/if}}
{{#if role_arn}}
role_arn: {{role_arn}}
{{/if}}
processors:
- add_fields:
target: ''
fields:
ecs.version: 1.5.0
Loading