Skip to content

Commit d1d819f

Browse files
committed
metadata schema: Under monitoring, update the regex used in the metric name and label
Signed-off-by: ashish <asnaraya@redhat.com>
1 parent 14b3855 commit d1d819f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

managedtenants/schemas/metadata.schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ properties:
154154
items:
155155
type: string
156156
format: printable
157-
pattern: ^[A-Za-z0-9-_.]+$
157+
pattern: ^[a-zA-Z_:][a-zA-Z0-9_:]*$
158158
description: "List of series names to federate from the prometheus server."
159159
matchLabels:
160160
type: object
161161
items:
162162
type: string
163163
format: printable
164-
pattern: ^[A-Za-z0-9-_.]+$
164+
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
165165
description: "List of labels used to discover the prometheus server(s) to be federated."
166166
minItems: 1
167167
defaultChannel:

0 commit comments

Comments
 (0)