Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,12 @@ private void scrape(List<MetricFamilySamples> mfs) {
// "tag_" prefix
// The AWS tags are case sensitive, so to avoid loosing information and label
// collisions, tag keys are not snaked cased
labelNames.add("tag_" + safeLabelName(tag.key()));
labelValues.add(tag.value());
String labelName = "tag_" + safeLabelName(tag.key());
// If multiple labels end up with the same safe label name, use only the first
if (!labelNames.contains(labelName)) {
labelNames.add(labelName);
labelValues.add(tag.value());
}
}

infoSamples.add(
Expand Down