Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation PCA Exam - Topic 1 Question 8 Discussion

Posted by Louis on Jan 05, 2026 at 05:16 AM

Which of the following is a valid metric name?

Suggested Answer: C

According to Prometheus naming rules, metric names must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*. This means metric names must begin with a letter, underscore, or colon, and can only contain letters, digits, and underscores thereafter.

The valid metric name among the options is go_goroutines, which follows all these rules. It starts with a letter (g), uses underscores to separate words, and contains only allowed characters.

By contrast:

go routines is invalid because it contains a space.

go.goroutines is invalid because it contains a dot (.), which is reserved for recording rule naming hierarchies, not metric identifiers.

99_goroutines is invalid because metric names cannot start with a number.

Following these conventions ensures compatibility with PromQL syntax and Prometheus' internal data model.


Extracted from Prometheus documentation -- Metric Naming Conventions and Data Model Rules sections.

Get Premium PCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
LA
Lashawnda 6 months ago
A) go routines is not valid. Space issue.
AM
Ammie 6 months ago
D) 99_goroutines seems odd. Numbers at start?
SH
Shaun 6 months ago
I prefer C) go_goroutines. Underscores are valid.
LA
Lacey 6 months ago
I think it's B) go.goroutines. Looks correct.
TA
Tanja 7 months ago
Wait, are we sure about B? Seems weird to have a dot in there.
DA
Davida 7 months ago
I agree, A) go routines doesn't look right.
JU
Julio 7 months ago
D) 99_goroutines? That seems odd.
RO
Rosina 7 months ago
C) go_goroutines is definitely valid too!
MY
Myra 7 months ago
I think B) go.goroutines is valid.
YO
Yolande 8 months ago
Metric names should be descriptive, not just random numbers. D) is a no-go.
TA
Tambra 8 months ago
B) go.goroutines looks like a Java package name, not a metric.
VE
Verlene 8 months ago
A) go routines is too vague, it needs more specificity.
MO
Mona 9 months ago
D) 99_goroutines sounds like a secret level in a video game.
ED
Edelmira 9 months ago
C) go_goroutines is the valid metric name.
PH
Phuong 9 months ago
I'm confused about option A; it seems like it might not be valid because of the space.
MO
Monte 9 months ago
I feel like I saw a similar question in practice, and I think it was about using letters and numbers only.
WI
Willie 9 months ago
I remember something about underscores being valid in metric names, so maybe C is correct?
RI
Rikki 9 months ago
I think metric names should follow a certain format, but I'm not entirely sure if dots are allowed.
LE
Leonora 10 months ago
I've got a good feeling about option C. The underscore seems like the appropriate separator for metric names. I'm confident that's the right answer.
CA
Carlee 10 months ago
Ugh, I'm totally lost on this one. Metric names are not my strong suit. I'm just going to have to guess and hope for the best.
ES
Estrella 10 months ago
Okay, let me see. The question is asking about valid metric names, so I need to consider the naming conventions. I'm leaning towards option C or option B.
CA
Cathern 10 months ago
Hmm, I'm not sure about this. I'll need to think it through carefully. Maybe I should eliminate the obvious wrong answers first.
TA
Taryn 10 months ago
I think I know this one. The valid metric name is option C, go_goroutines.
AL
Alline 4 months ago
↳ replying to Taryn
I thought it was go.goroutines at first!
HE
Helaine 4 months ago
↳ replying to Taryn
Yeah, the underscore makes it valid.
LA
Lashawna 6 months ago
↳ replying to Taryn
I agree, go_goroutines seems right.
0/2000 characters

Save Cancel