Skip to content

Commit d77aeff

Browse files
but still allow colons
1 parent 7e79c24 commit d77aeff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/actions/pushLoggedMetrics/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ runs:
3535
else null
3636
end
3737
) as $value |
38-
select($value != null) |
39-
# only allow alpha and _ in metrics name
40-
(.metric | gsub("[^a-z]"; "_")) as $metric |
38+
# only allow alpha, _, and : in metrics name
39+
(.metric | gsub("[^a-z_]"; ":")) as $metric |
4140
# transform tags into prometheus
4241
(.tags // {} | to_entries | map(.key + "=\"" + .value + "\"") | join(",")) as $tags |
4342
# put it all together. one line with description, one line with metric.

0 commit comments

Comments
 (0)