2V0-71.23 Question 112
Select 3An organization has deployed a Tanzu Kubernetes Cluster and wants to monitor the performance and health of their workloads. They are considering using Prometheus and Grafana for this purpose. What are the primary roles of Prometheus and Grafana in this monitoring setup?
- A
Prometheus collects and stores time-series metric data from Kubernetes workloads and components.
- B
Grafana provides dashboard visualization capabilities for the metric data collected by Prometheus.
- C
Prometheus is used to configure Kubernetes networking policies for secure communication between pods.
- D
Grafana acts as a metric collection agent for Kubernetes workloads.
- E
Prometheus triggers alerts and notifications based on defined thresholds for metric data.
- F
Grafana performs automatic scaling of Kubernetes workloads based on visualized metrics.
Show answer and explanation
Correct answers: A, B, E
Explanation
Prometheus and Grafana are complementary tools used in monitoring Kubernetes environments. Prometheus focuses on collecting, storing, and alerting on time-series metrics, while Grafana specializes in visualizing this data through dashboards. Together, they provide a comprehensive solution for monitoring and managing the health and performance of Kubernetes workloads.
- A. Correct.
Prometheus is a monitoring tool designed to collect and store time-series metric data from various sources, including Kubernetes workloads and components. This is a core functionality of Prometheus.
- B. Correct.
Grafana is a visualization tool that integrates with Prometheus to display the collected metrics on customizable dashboards. This is one of its primary roles in a monitoring setup.
- C. Incorrect.
Prometheus is not responsible for configuring networking policies. Kubernetes networking policies are managed through specific Kubernetes resources, such as NetworkPolicy objects.
- D. Incorrect.
Grafana is not a metric collection tool; its role is to visualize data collected by tools like Prometheus. Metric collection is handled by Prometheus or other similar tools.
- E. Correct.
Prometheus includes an alerting mechanism that triggers notifications when metric data breaches predefined thresholds. This is a critical component of its role in monitoring.
- F. Incorrect.
Grafana does not perform scaling of workloads. Scaling is managed by Kubernetes itself, often using metrics provided by Prometheus or other metric sources.