โ† All PCA Flashcard Decks

Querying & Visualization Flashcards

9 cards from real PCA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 9 Querying & Visualization flashcards as text
  1. What is PromQL?

    Answer: A configuration language

    Prometheus handles multi-dimensional data by associating key-value pairs, known as labels, with each metric. These labels allow the same metric to be broken down and filtered across various dimensions, such as instance, service, endpoint, or environment. This enables powerful aggregation and analysis, providing granular insights into different aspects of a system's behavior.

  2. How can Prometheus query time-series data?

    Answer: By using PromQL to query time-series data

    In Prometheus, a time-series is the fundamental data model. It represents a stream of data points, where each point consists of a specific value recorded at a precise timestamp. This continuous sequence of time-stamped values, identified by a unique metric name and a set of labels, allows for tracking changes and trends over time, forming the basis of all monitoring.

  3. What is the role of Grafana in Prometheus?

    Answer: To visualize data in dashboards

    Prometheus alerts are designed to proactively inform administrators or relevant teams about potential issues or critical events within a monitored system. By defining rules based on PromQL expressions, Prometheus can detect when metrics cross predefined thresholds or exhibit anomalous behavior. This ensures timely intervention and problem resolution, maintaining system stability.

  4. How does Prometheus handle multi-dimensional data?

    Answer: By using labels for multi-dimensional data

    In Grafana, a dashboard is a customizable interface composed of various panels, each displaying a different visualization of metrics. These dashboards provide a consolidated, real-time, or historical view of system performance and health. They make it easy to monitor key indicators, identify trends, and troubleshoot issues at a glance, offering a comprehensive overview of the monitored environment.

  5. What is a time-series in Prometheus?

    Answer: A series of time-stamped data points representing a metric

    Prometheus alerting rules are defined using PromQL expressions within the Prometheus configuration. These expressions specify the conditions under which an alert should fire, such as a metric exceeding a certain threshold for a sustained period. When these PromQL conditions evaluate to true, Prometheus generates an alert, which is then sent to the Alertmanager for processing and notification.

  6. What is the purpose of Prometheus alerts?

    Answer: To notify users when specific conditions are met

    The question asks how Prometheus data can be exported for external analysis, and the provided correct answer is 'By exporting to CSV.' While Prometheus primarily offers its HTTP API for data retrieval, it is common practice to query data using PromQL and then export the results into a CSV format. This allows for easy sharing and manipulation of the time-series data outside of Prometheus in tools like spreadsheets or other data processing applications.

  7. What is a dashboard in Grafana?

    Answer: A visual representation of metrics

    The core purpose of monitoring with Prometheus is to systematically collect quantitative data (metrics) about the behavior and health of systems and applications. By continuously gathering these metrics, Prometheus enables users to observe performance trends, identify bottlenecks, detect anomalies, and ensure the overall stability and efficiency of their infrastructure. This comprehensive data collection forms the foundation of effective system management.

  8. How can Prometheus alerting rules be defined?

    Answer: By defining conditions in PromQL

    Prometheus alerting works by continuously evaluating predefined alerting rules, which are PromQL expressions. When a rule's condition evaluates to true (e.g., a metric value crosses a specified threshold for a certain duration), Prometheus generates an alert. This alert is then sent to the Alertmanager, which handles deduplication, grouping, and routing notifications to users via various channels.

  9. How can Prometheus data be exported for external analysis?

    Answer: By exporting to CSV

    The Prometheus Alertmanager is a separate component that handles alerts sent by the Prometheus server. Its role is to deduplicate, group, and route alerts to the correct receiver (e.g., email, PagerDuty, Slack). It also supports silencing alerts and inhibition, ensuring that users receive meaningful notifications without being overwhelmed by redundant or related alerts, streamlining incident management.