liveBook · Manning

Runtime statistic

As explained in Learn Docker in a Month of Lunches, Second Edition

A runtime metric is a measurement describing the activity and resource use of an application's execution runtime.

A runtime statistic measures what an application runtime is doing and how hard it is working. Prometheus client libraries collect and expose these measurements through HTTP endpoints. section 9.2

Runtime statistics can reveal:

  • Active goroutines in a Go application. section 9.2
  • Memory used by the Java Virtual Machine in a Java application. section 9.2
  • Whether containers are running hot through resource signals such as CPU time, memory, or processor threads. section 9.2

Inspecting runtime statistics

Start the image gallery application with Docker Compose, use the application, then browse to http://localhost:8010/metrics. Java metrics are available at http://localhost:8011/actuator/prometheus. section 9.2

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Defines runtime statistics, names Go and Java examples, and demonstrates endpoint inspection without explaining collection internals.
Examples
Uses goroutine counts, JVM memory, Go and Java endpoints, and a Docker Compose image gallery application.
What it assumes
Assumes familiarity with application containers and Docker Compose while introducing runtime metrics through client libraries.
What you can do after
Operate and inspect Prometheus endpoints to evaluate whether application containers are running hot.
How it connects
Connects runtime statistics with Prometheus, Docker, infrastructure metrics, and application metrics.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.