DevOps

Monitoring & Prometheus

Metrics collection, PromQL, exporters, Alertmanager, Grafana integration, troubleshooting missing metrics

22 pertanyaan wawancara·
Mid-Level
1

What is a Counter metric type in Prometheus?

Jawaban

A Counter is a metric that can only increase or be reset to zero on restart. It is ideal for counting cumulative events like HTTP requests, errors, or processed messages. To calculate a rate of change, use the PromQL rate() or irate() function which automatically handles resets.

2

What is the default metric collection model used by Prometheus?

Jawaban

Prometheus uses a pull model where the server actively scrapes metrics from targets at defined regular intervals. This model centralizes configuration, easily detects down targets, and prevents applications from overloading the server. The push gateway exists for ephemeral jobs but represents an exceptional pattern, not the norm.

3

What is an exporter in the Prometheus ecosystem?

Jawaban

An exporter is a component that exposes metrics from third-party systems in Prometheus format. It translates native metrics from applications like MySQL, Redis, or NGINX into compatible metrics accessible via HTTP. Official exporters follow strict naming conventions and are maintained by the Prometheus community.

4

What is the main difference between a Gauge and a Counter?

5

What is the /metrics endpoint used for in an instrumented application?

+19 pertanyaan wawancara

Kuasai DevOps untuk wawancara berikutnya

Akses semua pertanyaan, flashcards, tes teknis, latihan code review dan simulator wawancara.

Mulai gratis