Skip to content

Commit

Permalink
Metric names might be tuples, they have to be escaped in match specs.
Browse files Browse the repository at this point in the history
Signed-off-by: Karolis Petrauskas <karolis.petrauskas@erisata.lt>
  • Loading branch information
kape1395 committed Jul 4, 2024
1 parent 0c21b16 commit 701eeb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exometer_admin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ find_auto_template(Name) ->
make_patterns(Type, Name) when is_list(Name) ->
Prefixes = prefixes(Name),
[{ #exometer_entry{name = {default,Type,[V || {_,V} <- Pfx]}, _ = '_'},
[{'or',{'=:=',V,X},{'=:=',V,''}} || {X,V} <- Pfx], ['$_'] }
[{'or',{'=:=',V,{const,X}},{'=:=',V,''}} || {X,V} <- Pfx], ['$_'] }
|| Pfx <- Prefixes].

prefixes(L) ->
Expand Down

0 comments on commit 701eeb5

Please sign in to comment.