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

Actual exam question for Linux Foundation's PCA exam
Question #: 8
Topic #: 1
[All PCA Questions]

Which of the following is a valid metric name?

Show Suggested Answer Hide Answer
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.

Contribute your Thoughts:

0/2000 characters
Yolande
9 hours ago
Metric names should be descriptive, not just random numbers. D) is a no-go.
upvoted 0 times
...
Tambra
5 days ago
B) go.goroutines looks like a Java package name, not a metric.
upvoted 0 times
...
Verlene
26 days ago
A) go routines is too vague, it needs more specificity.
upvoted 0 times
...
Mona
1 month ago
D) 99_goroutines sounds like a secret level in a video game.
upvoted 0 times
...
Edelmira
1 month ago
C) go_goroutines is the valid metric name.
upvoted 0 times
...
Phuong
1 month ago
I'm confused about option A; it seems like it might not be valid because of the space.
upvoted 0 times
...
Monte
2 months ago
I feel like I saw a similar question in practice, and I think it was about using letters and numbers only.
upvoted 0 times
...
Willie
2 months ago
I remember something about underscores being valid in metric names, so maybe C is correct?
upvoted 0 times
...
Rikki
2 months ago
I think metric names should follow a certain format, but I'm not entirely sure if dots are allowed.
upvoted 0 times
...
Leonora
2 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.
upvoted 0 times
...
Carlee
2 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.
upvoted 0 times
...
Estrella
2 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.
upvoted 0 times
...
Cathern
3 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.
upvoted 0 times
...
Taryn
3 months ago
I think I know this one. The valid metric name is option C, go_goroutines.
upvoted 0 times
...

Save Cancel