Valid PCA Dumps shared by EduDump.com for Helping Passing PCA Exam! EduDump.com now offer the newest PCA exam dumps, the EduDump.com PCA exam questions have been updated and answers have been corrected get the newest EduDump.com PCA dumps with Test Engine here:
How can you select all the up metrics whose instance label matches the regex fe-.*?
Correct Answer: D
PromQL supports regular expression matching for label values using the =~ operator. To select all time series whose label values match a given regex pattern, you use the syntax {label_name=~"regex"}. In this case, to select all up metrics where the instance label begins with fe-, the correct query is: up{instance=~"fe-.*"} Explanation of operators: = → exact match. != → not equal. =~ → regex match. !~ → regex not match. Option D uses the correct =~ syntax. Options A and B use invalid PromQL syntax, and option C is almost correct but includes a misplaced extra quote style (~''), which would cause a parsing error. Reference: Verified from Prometheus documentation - Expression Language Data Selectors, Label Matchers, and Regular Expression Matching Rules.