Skip to content

Commit

Permalink
Agent tweaks
Browse files Browse the repository at this point in the history
- Added period for the system/metrics
- Remove a few slashes for dataset.
- Move queue_url to the input level followed @kaiyan-sheng's [advice](elastic#15940 (comment)).
  • Loading branch information
ph committed Feb 11, 2020
1 parent 93a6f77 commit ea2904b
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions x-pack/agent/docs/agent_configuration_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,38 +89,55 @@ datasources:
- id?: {id}
enabled?: false # default true
metricset: cpu
period: 10s
dataset: system.cpu
metrics: ["percentages", "normalized_percentages"]
period: 10s
- metricset: memory
dataset: system.memory
period: 10s
- metricset: diskio
dataset: system.diskio
period: 10s
- metricset: load
dataset: system.load
period: 10s
- metricset: memory
dataset: system.memory
period: 10s
- metricset: process
dataset: system.process
processes: ["firefox*"]
include_top_n:
by_cpu: 5 # include top 5 processes by CPU
by_memory: 5 # include top 5 processes by memory
period: 10s
- metricset: process_summary
dataset: system.process_summary
period: 10s
- metricset: uptime
dataset: system.uptime
period: 15m
- metricset: socket_summary
dataset: system.socket_summary
period: 10s
- metricset: filesystem
dataset: system.filesystem
period: 10s
- metricset: raid
dataset: system.raid
period: 10s
- metricset: socket
dataset: system.socket
period: 10s
- metricset: service
dataset: system.service
period: 10s
- metricset: fsstat
dataset: system.fsstat
period: 10s
- metricset: foo
dataset: system.foo
period: 10s


#################################################################################################
Expand Down Expand Up @@ -211,23 +228,24 @@ datasources:
# buckets?
- type: s3
credential_profile_name: fb-aws
#shared_credential_file: /etc/filebeat/aws_credentials
queue_url: https://sqs.myregion.amazonaws.com/123456/sqs-queue
streams:
- id?: {id}
metricset: s3
dataset: aws/s3
queue_url: https://sqs.myregion.amazonaws.com/123456/myqueue
dataset: aws.s3
- id?: {id}
metricset: s3access
dataset: aws/s3access
dataset: aws.s3access
- id?: {id}
metricset: s3access
metricset: vpcflow
dataset: aws.vpcflow
queue_url: https://sqs.myregion.amazonaws.com/123456/myqueue
- type: aws/metrics
# access_key_id: '${AWS_ACCESS_KEY_ID:""}'
# secret_access_key: '${AWS_SECRET_ACCESS_KEY:""}'
# session_token: '${AWS_SESSION_TOKEN:""}'
credential_profile_name: test-mb
access_key_id: '${AWS_ACCESS_KEY_ID:""}'
secret_access_key: '${AWS_SECRET_ACCESS_KEY:""}'
session_token: '${AWS_SESSION_TOKEN:""}'
#credential_profile_name: test-mb
#shared_credential_file: ...
streams:
- id?: {id}
metricset: usage
Expand Down Expand Up @@ -270,19 +288,19 @@ datasources:
- id?: {id}
metricset: billing
dataset: aws.billing
period: 12
period: 12h
- id?: {id}
metricset: billing
dataset: aws.billing
period: 12
period: 12h
- id?: {id}
metricset: s3_daily_storage
dataset: aws.s3_daily_storage
period: 24
period: 24h
- id?: {id}
metricset: s3_request
dataset: aws.s3_request
period: 24
period: 24h


#################################################################################################
Expand Down

0 comments on commit ea2904b

Please sign in to comment.