prometheus-community / 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
983 stars 335 forks source link

[BUG] unable to pull metrics from the specified AmazonMWAA instance using searchTags #1533

Open ninad-opsverse opened 1 month ago

ninad-opsverse commented 1 month ago

Is there an existing issue for this?

YACE version

I am using the latest YACE version - v0.61.2

Config file

config: |-
  apiVersion: v1alpha1
  sts-region: us-east-1
  discovery:
    jobs:
      - type: AmazonMWAA
        length: 60
        period: 60
        searchTags:
          - key: airflow
            value: dev
        regions:
          - us-east-1
        metrics:
          - name: SLAMissed
            statistics:
              - Average
          - name: FailedSLACallback
            statistics:
              - Average
          - name: Updates
            statistics:
              - Average
          - name: Orphaned
            statistics:
              - Average

Current Behavior

I have 2 airflow instances deployed on aws named mwaa-dev and mwaa-prod.

I have the following tags on the instances - mwaa-dev -> airflow: dev mwaa-prod -> airflow: prod

According to the configured searchTags I should be receiving metrics from mwaa-dev instance only. But I am able to see metrics for both the instances.

Expected Behavior

Metrics of only the configured mwaa instance(mwaa-dev) should be visible.

Steps To Reproduce

No response

Anything else?

No response