Open baweaver opened 7 years ago
@baweaver Looks good. Do you have a screenshot of the metrics coming through to confirm it works?
I'll get that a little later today.
On Mon, Jun 26, 2017, 7:04 AM Jrgns notifications@github.com wrote:
@baweaver https://github.com/baweaver Looks good. Do you have a screenshot of the metrics coming through to confirm it works?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/logstash-plugins/logstash-input-cloudwatch/pull/21#issuecomment-311068779, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7zC8qY30nfnXtkfCDH_JSirIZxrudHks5sH7pqgaJpZM4N-ZWj .
# agent configuration
input {
cloudwatch {
namespace => "AWS/ELB"
metrics => ["HealthyHostCount"]
region => "our-region"
}
}
# Server logs:
[timestamp][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[timestamp][INFO ][logstash.inputs.cloudwatch] [AWS CloudWatch 200 2.241 0 retries] list_metrics(:namespace=>"AWS/ELB")
[timestamp][INFO ][logstash.inputs.cloudwatch] Polling metric HealthyHostCount
[timestamp][INFO ][logstash.inputs.cloudwatch] Filters: []
[timestamp][INFO ][logstash.inputs.cloudwatch] [AWS ELB 200 5.357 0 retries] describe_load_balancers()
[timestamp][INFO ][logstash.inputs.cloudwatch] Polling resource LoadBalancerName: our-loadbalancer-name
[timestamp][INFO ][logstash.inputs.cloudwatch] [AWS CloudWatch 200 0.769 0 retries] get_metric_statistics(:dimensions=>[{:name=>"LoadBalancerName",:value=>"our-loadbalancer-name"}],:end_time=>"timestamp",:metric_name=>"HealthyHostCount",:namespace=>"AWS/ELB",:period=>300,:start_time=>"timestamp",:statistics=>["SampleCount","Average","Minimum","Maximum","Sum"])
...
Need to remove filters from describe_load_balancers
though. One sec on that one.
Added in reference to https://github.com/logstash-plugins/logstash-input-cloudwatch/issues/20 .