Prometheus and Metrics Flashcards
What is Grafana?
Grafana is a visualization and analytics software. Grafana allows you to query, visualize, alert on, and explore your metrics, logs, and traces no matter where they are stored. It provides you with tools to turn your time-series database (TSDB) data into insightful graphs and visualizations.
What is the default port for Grafana?
Port 3000.
What is a Grafana Dashboard?
A collection of panels organized and arranged into one or more rows.
What is a Grafana Panel?
A panel is the basic visualization building block in Grafana. Each panel has a query editor specific to the data source selected in the panel. There are many visualization options available to display on the panel.
What is Prometheus?
Prometheus is an open-source systems monitoring and alerting toolkit. It collects and stores its metrics as time series data.
True or False: Prometheus was originally built at Google.
False. Prometheus was originally built at SoundCloud.
What are metrics?
Metrics are numeric measurements. Metrics play an important role in understanding your application. For example, a web server might monitor request times as a metric, allowing the development team to discover why certain requests are slow.
What is time-series data?
Metrics information stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.
What is PromQL?
Prometheus Query Language is a functional query language that leverages the multi-dimensionality (many labels) of Prometheus metrics to easily search/display metrics.
How does Prometheus collect time-series data?
Prometheus uses a pull model. Prometheus collects metrics from targets by scraping metrics HTTP endpoints.
True or False: Prometheus supports pushing time series.
True. Prometheus can be configured to accept metrics via the push model using an intermediary gateway, but the pull model is default. Note that Prometheus will still pull from the Pushgateway.
How can Prometheus discover targets?
Targets are discovered via service discovery or static configuration.
What is the Alertmanager?
The Alertmanager handles alerts sent by Prometheus (and others). It takes care of deduplicating, grouping, and routing them to the correct receiver. It also takes care of silencing and inhibition of alerts.
What is the Spring Boot Actuator?
The Spring Boot Actuator uses HTTP endpoints to expose operational information about any running application. The main benefit of using this library is that we get health and monitoring metrics from production-ready applications.
How can we configure the Spring Boot Actuator?
in application.yml: management: endpoints: web: exposure: include: health, metrics, prometheus