The valid PromQL query to select metrics with a specific label is http_requests_total{job="apiserver"}. This query retrieves all time series with the metric name http_requests_total where the job label is equal to apiserver.
D. http_requests_total{job="apiserver"}
In PromQL (Prometheus Query Language), the syntax for filtering metrics based on label values uses curly braces {}. Option D correctly filters the http_requests_total metric to include only the metrics where the label job equals "apiserver".
D is correct but the right way to write it is:
http_requests_total{job="apiserver"}
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.KCNA Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
shahy0
1 month, 2 weeks ago2211094
3 months agomiskill
6 months, 4 weeks ago