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
935 stars 325 forks source link

SQS metrics not updating #469

Closed Sylphe88 closed 2 years ago

Sylphe88 commented 2 years ago

Hello,

I've had a LARGE share of "wtf is going on" today, after trying to upgrade from 0.25 to 0.31. Here is the simple config:

discovery:
  jobs:
  - type: sqs
    regions:
      - eu-west-1
    awsDimensions:
      - QueueName
    period: 60
    length: 60
    metrics:
      - name: ApproximateNumberOfMessagesVisible
        statistics:
        - Sum
        - Average
      - name: NumberOfMessagesSent
        statistics:
        - Sum

The scraping interval is set to 60.

On 0.31, the metrics are found once, then never update again. The scraper trigger correctly every minute but it looks like no data is retrieved: Extract:

Oct 18 14:12:22 std-prod-gra-monit1 yace[331]: {"level":"debug","msg":"Starting scraping async","time":"2021-10-18T14:12:22Z"}
Oct 18 14:12:23 std-prod-gra-monit1 yace[331]: {"level":"info","msg":"{\n  EndTime: 2021-10-18 14:10:00 +0000 UTC,\n  MetricDataQueries: [\n    {\n      Id: \"id_5793183108815074904\",\n      MetricStat: {\n        ...
Oct 18 14:13:22 std-prod-gra-monit1 yace[331]: {"level":"debug","msg":"Starting scraping async","time":"2021-10-18T14:13:22Z"}
Oct 18 14:13:23 std-prod-gra-monit1 yace[331]: {"level":"info","msg":"{\n  EndTime: 2021-10-18 14:10:00 +0000 UTC,\n  MetricDataQueries: [\n    {\n      Id: \"id_232373264269878397\",\n    ...

I briefly tried 0.30 but nothing works there:

Oct 18 15:00:04 std-prod-gra-monit1 yace[2213]: {"level":"info","msg":"Parse config..","time":"2021-10-18T15:00:04Z"}
Oct 18 15:00:04 std-prod-gra-monit1 yace[2213]: {"level":"info","msg":"Startup completed","time":"2021-10-18T15:00:04Z"}

It looks like a lot changed recently and altered some behaviors, so I thought you'd like to hear it. I rolled back to 0.25 for now.

--Eric

thomaspeitz commented 2 years ago

Duplicate of #467 - Thanks for reporting!