CW指标的LogStash插件:无法收集自动级别的CPUUTILIZE

发布于 2025-02-12 16:37:52 字数 681 浏览 1 评论 0原文

我正在尝试使用LogStash收集CloudWatch指标数据。 我已经成功安装了该插件,但是我无法从自动化组的Cpuutilization收集指标数据。

这是我配置的输入:

cloudwatch {
    access_key_id => "${PROD_KEY_ENV}"
    secret_access_key => "${PROD_SECRET_KEY_ENV}"
    type => "prod"
    tags => ["CWMetrics"]
    namespace => "AWS/EC2"
    metrics => ["CPUUtilization"]
    filters => {"AutoScalingGroupName" => "name_of_asg"}
    period => 60
    statistics => ["Average"]
    region => "eu-central-1"
  }

logStash正确启动并正确地收集数据(我还配置了其他CW指标数据),但是对于上面的输入,我收到了以下错误:

Error: The filter 'AutoScalingGroupName' is invalid

您能帮我吗?

谢谢你,

卢卡

I'm trying to collect CloudWatch metrics data using Logstash.
I have successfully installed the plugin, but I'm unable to collect the ,metrics data from about CPUUtilization of an autoscaling group.

Here's the input I have configured:

cloudwatch {
    access_key_id => "${PROD_KEY_ENV}"
    secret_access_key => "${PROD_SECRET_KEY_ENV}"
    type => "prod"
    tags => ["CWMetrics"]
    namespace => "AWS/EC2"
    metrics => ["CPUUtilization"]
    filters => {"AutoScalingGroupName" => "name_of_asg"}
    period => 60
    statistics => ["Average"]
    region => "eu-central-1"
  }

Logstash correctly starts and correctly collects data (also other CW metrics data I have configured), but for the input right above I got the following error:

Error: The filter 'AutoScalingGroupName' is invalid

Can you please help me?

Thank you,

Luca

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文