โ† All PCA Flashcard Decks

PCA Recording Rules & Aggregation Flashcards

6 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 6 PCA Recording Rules & Aggregation flashcards as text
  1. What is the primary purpose of recording rules in Prometheus?

    Answer: To precompute expensive PromQL expressions and store results as new time series

    Recording rules evaluate PromQL expressions on a schedule and write the results as new metric series, making repeated queries faster.

  2. What naming convention does Prometheus recommend for recording rule metric names?

    Answer: level:metric:operations (e.g., job:http_requests_total:rate5m)

    The recommended format is level:metric:operations, encoding aggregation level, source metric, and transformations into the name.

  3. In a Prometheus rule file, which YAML key defines a recording rule's output metric name?

    Answer: record

    The `record` key in a rule group entry specifies the name of the new time series that the rule's expression will be written to.

  4. How are recording rule files loaded into Prometheus?

    Answer: Via the rule_files directive in prometheus.yml listing file paths or globs

    The rule_files section of prometheus.yml accepts file paths and glob patterns pointing to YAML files containing rule groups.

  5. What happens when Prometheus evaluates a recording rule that produces no series (empty result)?

    Answer: No new data points are written for that evaluation interval

    If a recording rule returns an empty result, Prometheus simply writes nothing for that interval, leaving a gap in the recorded metric.

  6. What is the `interval` field in a Prometheus rule group used for?

    Answer: Setting how frequently all rules in the group are evaluated

    The interval field overrides the global evaluation_interval for a specific rule group, allowing different groups to evaluate at different frequencies.