nerdswords / yet-another-cloudwatch-exporter

Prometheus exporter for AWS CloudWatch - Discovers services through AWS tags, gets CloudWatch metrics data and provides them as Prometheus metrics with AWS tags as labels
Apache License 2.0
981 stars 334 forks source link

feat: add AWS/RUM as supported service #1405

Closed hexionas closed 6 months ago

hexionas commented 6 months ago

Added this locally and ran using docker-compose. Correctly fetches the metric as seen below.

    - type: AWS/RUM
      regions: [eu-west-1]
      period: 60
      length: 60
      metrics:
        - name: JsErrorCount
          statistics:
            - Sum
aws_rum_js_error_count_sum{account_id="<redacted>", dimension_application_name="portal-monitor-dev", instance="yace:8080", job="yace", name="global", region="eu-west-1"}
hexionas commented 6 months ago

One thing i've noticed. If I don't set nilToZero: true on the metric coming from RUM then it stays at NaN even if a metric is present.