Skip to content

[BUG] exportedTagsOnMetrics not working for AWS/KMS #1758

@carlos4ndre

Description

@carlos4ndre

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.62.1

Config file

apiVersion: v1alpha1
discovery:
  exportedTagsOnMetrics:
    AWS/KMS:
      - Name
  jobs:
    - type: AWS/KMS
      regions:
        - us-east-1
      period: 300
      roles:
        - roleArn: "arn:aws:iam::<account>:role/<cloudwatch role>"
      metrics:
        - name: SecondsUntilKeyMaterialExpiration
          statistics:
            - Minimum
            - Maximum
        - name: SuccessfulRequest
          statistics:
            - Sum

Current Behavior

The tag Name is not exported as label in the KMS metrics (e.,g., aws_kms_successful_request_sum).

Expected Behavior

The tag Name is exported as label tag_Name in the KMS metrics.

Note: the aws_kms_info metric exports all tags by default, so this doesn't seem to be a permissions issue when pulling tag information from the KMS resources.

Steps To Reproduce

  1. Create KMS Customer-managed key with some tags on (e.g., Name)
  2. Create IAM role to allow YACE to collect KMS metrics from CloudWatch
  3. Run YACE with config provided above
  4. Pull metrics from YACE and confirm it is missing tag_Name label on KMS metrics, except for aws_kms_info metric

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions