Skip to content

Commit

Permalink
fix: port annotation rule doesn't account for additional source label
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhackl committed Jan 8, 2025
1 parent 32aeea4 commit 693ff28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/kubernetes/annotations/metrics.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ declare "kubernetes" {
"__meta_kubernetes_" + argument.__service_role.value + "_annotation_" + argument.__sd_annotation.value + "_port",
]
separator = ";"
regex = "^([^:]+)(?::\\d+)?;(\\d+)$"
regex = "^([^:]+)(?::\\d+)?(?:;+(\\d+);*(?:;\\d+)*)$"
replacement = "$1:$2"
target_label = "__address__"
}
Expand Down

0 comments on commit 693ff28

Please sign in to comment.