Skip to content

Cloudwatch/metrics API call errors because of duplicate label #528

@feliksik

Description

@feliksik

I'm trying to create a cloudwatch counter using the kit/metrics/cloudwatch package (looks nice). I am using this addsvc line as example, but doing a call on a counter/counter with .With("succes", "true"). However I receive a cloudwatch error: InvalidParameterValue: No metric may specify the same dimension name twice. It seems to be because of this line , which just appends the label, using inernal.lv.LabelValues:With().

This looks like a bug to me, related to the fact that the new label is just appended, without deduplicating.

Is this cloudwatch lib used at all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions