【问题标题】:Prometheus Cloudwatch-Exporter not able to fetch metrics from Amazon AWS CloudwatchPrometheus Cloudwatch-Exporter 无法从 Amazon AWS Cloudwatch 获取指标
【发布时间】:2020-06-08 18:55:28
【问题描述】:

Prometheus 新手,尝试配置 cloudwatch-exporter 以从 AWS 账户中提取指标。 导出器正在运行 elb.yml 以提取测试负载均衡器指标,但无法获取任何内容。

有人可以指导我有什么问题吗? 附上配置供参考。

-Prometheus cloudwatch-exporter Configuration

【问题讨论】:

  • 有同样的问题 - IAM 角色具有 cloudwatch:ListMetrics 和 cloudwatch:GetMetricStatistics 权限,但 /metrics 端点上没有指标。你找到问题了吗?

标签: monitoring prometheus amazon-cloudwatch


【解决方案1】:

如果您想监控 Application Load Balancer,而不是已弃用的 Classic,请使用此配置

---
region: us-east-1
metrics:
- aws_namespace: AWS/ApplicationELB
  aws_metric_name: HTTPCode_Target_5XX_Count
  aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup]
  aws_statistics: [Sum]

【讨论】:

    猜你喜欢
    • 2023-01-05
    • 1970-01-01
    • 2017-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-18
    • 2014-10-14
    相关资源
    最近更新 更多