Prometheus and Metrics Flashcards

1
Q

What is Grafana?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the default port for Grafana?

A

Port 3000.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Grafana Dashboard?

A

A collection of panels organized and arranged into one or more rows.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Grafana Panel?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Prometheus?

A

Prometheus is an open-source systems monitoring and alerting toolkit. It collects and stores its metrics as time series data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True or False: Prometheus was originally built at Google.

A

False. Prometheus was originally built at SoundCloud.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are metrics?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is time-series data?

A

Metrics information stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is PromQL?

A

Prometheus Query Language is a functional query language that leverages the multi-dimensionality (many labels) of Prometheus metrics to easily search/display metrics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does Prometheus collect time-series data?

A

Prometheus uses a pull model. Prometheus collects metrics from targets by scraping metrics HTTP endpoints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: Prometheus supports pushing time series.

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can Prometheus discover targets?

A

Targets are discovered via service discovery or static configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Alertmanager?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the Spring Boot Actuator?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can we configure the Spring Boot Actuator?

A
in application.yml:
management:
  endpoints:
    web:
      exposure:
        include: health, metrics, prometheus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Micrometer?

A

Micrometer provides a simple facade over the instrumentation clients for the most popular monitoring systems. In essence, micrometer serves as an interface that allows you to choose between different JVM-based monitoring systems under the hood.

17
Q

Why do we record application metrics with Micrometer?

A

Application metrics recorded by Micrometer are used to observe, alert, and react to the current/recent operational state of your environment.

18
Q

True or False: We can define custom metrics in a Spring Boot application using Micrometer.

A

True.