Kcna Kubernetes And Cloud Native Associate · Free Practice Question Easy
Question 59
After Prometheus has successfully collected metrics from servers, what language is used to query and visualize the data into dashboards and charts?
-
A
GraphQL
-
B
GranfanaQL
-
C
PromQL
-
D
SQL
Reveal correct answer
Correct answer: C
Explanation
Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user select and aggregate time series data in real time. The result of an expression can either be shown as a graph, viewed as tabular data in Prometheus's expression browser, or consumed by external systems via the HTTP API.
https://prometheus.io/docs/prometheus/latest/querying/basics/
A. GraphQL is a query language for APIs and is not designed for querying and visualizing metrics data collected by Prometheus. It is used for fetching specific data from APIs, not for working with time-series data collected by monitoring tools like Prometheus.
B. GranfanaQL is not a valid language for querying and visualizing metrics data in Prometheus. Grafana is a separate tool used for creating dashboards and visualizations, but it does not have its own query language. Instead, Grafana typically uses PromQL to query Prometheus data for visualization.
C. PromQL is the language specifically designed for querying and visualizing the data collected by Prometheus. It allows users to perform complex queries, aggregations, and transformations on the metrics data to create meaningful dashboards and charts.
D. SQL is a language used for querying relational databases and is not directly related to querying and visualizing metrics data collected by Prometheus. While SQL can be used in some cases for data manipulation, it is not the primary language for working with Prometheus metrics.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
