Advanced
Searching inSummaries
How to search
  • Words find lesson titles, text and code. Filter by type (guides, courses, programs, books) or stay in this book.
  • book:rhcsa and ch:8 narrow the search; #code finds a word only in commands of the lessons.
  • "two words" finds the exact phrase.
  • Plain words find names, texts and examples.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search
Try:

Course 14Name in the course: Monitoring and Observability for Development and DevOps

Monitoring and Observability for Development and DevOps

Course 14 of 16 in the IBM DevOps and Software Engineering certificate. This course is about monitoring and observability for development and DevOps.

Note

My result — Course completion: 100%; Grade: 100% (pass = 50%); Certificate: not offered on Cognitive Class for this edition.

Course page: Coursera · Cognitive Class

  • 12 Lessons
  • 1 Commands
  • 2 Labs

$ run as a normal user# run as root (or with sudo)

14.1

What the course covers

What monitoring means, and why every service needs it.

  • The four golden signals, metric types, and how to alert without noise.
  • Prometheus and Grafana: collect metrics, query with PromQL, draw dashboards.
  • Logging: levels, structured logs, central storage, and the Mezmo tool.
  • Observability: the 3 pillars, tracing, sampling, OpenTelemetry, and a robot-shop final project.
ModuleMain focus
Module 1 — Introduction to Monitoring for Applications (2h)Monitoring definition, types of monitoring, golden signals, monitoring vs evaluation, metrics, IBM Instana
Module 2 — Monitoring Systems and Techniques (3h)Synthetic and application monitoring, Prometheus, PromQL, Grafana, visualization, alerting
Module 3 — Methodologies and Tools in Logging (4h)Logging basics, log tools, distributed logging and tracing, log storage, Mezmo labs
Module 4 — Observability and Concepts (5h)What observability is, the 3 pillars, cloud-native tools, sampling, telemetry, tracing, OpenTelemetry
Module 5 — Final Project and Assessment (3h)Robot-shop scenario, Instana setup and dashboard, final project, final assessment

14.2

Module 1: Monitoring basics

Monitoring definition, types of monitoring, golden signals, monitoring vs evaluation, metrics, IBM Instana.

  • Monitoring collects data about a system over time, so you can judge its health and answer known questions.
  • Four golden signals: latency (time), traffic (volume), errors (failures), saturation (how full a resource is).
  • Metric types: counter (only goes up), gauge (goes up and down), histogram (spread of values).
  • Monitoring is continuous watching; evaluation judges if results meet the goal. A system has 4 parts: collect, store, visualize, alert.
  • IBM Instana is an APM tool that discovers services and shows their health.
  • Monitoring collects data about a system over time, so you can judge its health.
  • Metric types: counter (only up), gauge (up and down), histogram (spread of values).
  • Monitoring is continuous watching. Evaluation judges if the results meet the goal.
  • A monitoring system has 4 parts: collect, store, visualize, alert.
  • IBM Instana is an APM tool that finds services and shows their health.

14.3

Module 2: Techniques and tools

Synthetic and application monitoring, Prometheus, PromQL, Grafana, visualization, alerting.

  • Synthetic monitoring: robots act like users from many places, so an outage is caught before users report it.
  • APM watches response time, errors, and calls between services.
  • Prometheus pulls (scrapes) a /metrics endpoint on a schedule; the app does not push.
  • PromQL selects and computes metrics. Grafana turns them into dashboards.
  • Alerting rules fire when a metric passes a threshold for a set time. Alerts need an owner and a first check step, or people ignore them.
  • Alerting rules fire when a metric passes a threshold for a set time.
  • Alerts need an owner and a first check step, or people learn to ignore them.

14.4

Module 3: Logging

Logging basics, log tools, distributed logging and tracing, log storage, Mezmo labs.

  • A log is a time-stamped record of one event.
  • Levels: DEBUG, INFO, WARN, ERROR, FATAL. Dev uses DEBUG; prod uses INFO and above.
  • Structured JSON logs are easy to filter and parse. Plain text is hard to search.
  • Central logging sends logs from all hosts to one place. A trace ID links logs from many services.
  • Mezmo parses, filters, and alerts on logs. Never log passwords or tokens.

14.5

Module 4: Observability

What observability is, the 3 pillars, cloud-native tools, sampling, telemetry, tracing, OpenTelemetry.

  • Observability means you can ask new questions without changing the code. Monitoring only covers known problems.
  • 3 pillars: metrics, logs, and traces.
  • A trace follows one request. It has a trace ID and many spans, and a span is one step of that request.
  • Sampling keeps only some traces to save cost. OpenTelemetry is a vendor-neutral standard to create and export telemetry.
  • On Kubernetes, agents run as a DaemonSet or a sidecar, and labels keep data linked to the right pod.
  • The 3 pillars are metrics, logs, and traces.
  • On Kubernetes, agents run as a DaemonSet or a sidecar, and labels keep the data linked to the right pod.

14.6

Module 5: Final project

Robot-shop scenario, Instana setup and dashboard, final project, final assessment.

  • The project uses the robot-shop demo app.
  • Set up Instana, then open the dashboard.
  • Find one slow service and one error in the data.
  • Write a short report: what you saw, what it means, what to fix.

14.7

Course topics and key ideas

Monitoring watches a system and tells you when something is wrong.

  • Observability is how well you can see inside a system from its data.
  • A log is a time-stamped message from a program.
  • A metric is a number measured over time.
  • A trace follows one request across many services.
  • OpenTelemetry is an open standard for telemetry data.

Topics of the course

  • Logging.
  • Telemetry.
  • OpenTelemetry.
  • Tracing.
  • Kubernetes.
  • Prometheus.
  • Grafana.
  • Mezmo (LogDNA).
  • Instana.
  • The three pillars: metrics, logs, and traces.
  • Dashboards and alerts.
  • SLIs and SLOs.

Why it matters

  • Fast problem finding means less downtime.
  • Good data helps you fix the real cause, not just the symptom.
  • Users trust a service that works.
  • Teams can plan capacity with real numbers.

14.8

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
alertA message that something needs attention
Alerting ruleA condition that fires an alert.
APMApplication performance monitoring.
CounterA number that only goes up.
DashboardOne screen with key numbers and charts.
distributed tracingFollowing one request across many services
GaugeA number that can go up and down.
Golden signalsLatency, traffic, errors, saturation.
GrafanaA tool for dashboards on top of data sources.
HistogramThe spread of values in buckets.
InstanaA tool for watching apps and infrastructure
Latency, traffic, errorsTime per request, request count, failed requests.
LogA time-stamped record of one event.
Log levelsDEBUG, INFO, WARN, ERROR, FATAL.
MetricA number that changes over time.
MezmoA tool that parses, filters, and alerts on logs.
MonitoringWatching a system over time to judge its health.
ObservabilityThe power to ask new questions without a code change.
OpenTelemetryA vendor-neutral way to create and export telemetry.
PrometheusA tool that scrapes and stores metrics.
PromQLThe query language for Prometheus.
SamplingKeep only some traces to save cost.
SaturationHow full a resource is.
ScrapeOne pull of a metrics endpoint.
service level indicator (SLI)A number that shows how well a service runs
SpanOne timed step inside a trace.
Structured logA log with named fields, usually JSON.
Synthetic monitoringRobot users test the site on a schedule.
TelemetryData sent from a system to a watcher.
Trace IDThe shared name that ties one request together.
TraceThe full path of one request.

14.9

Check yourself

Answer each question first, then open it to check the answer.

1What is the main purpose of monitoring? a) Make the source code shorter · b) Collect data over time to judge system health · c) Replace unit tests · d) Store database backups

b) Collect data over time to judge system health. Monitoring watches the system over time so you can see its health.

2Which one is NOT a golden signal? a) Latency · b) Traffic · c) Saturation · d) Colour depth

d) Colour depth. The four golden signals are latency, traffic, errors, and saturation.

3A metric that only goes up is a… a) counter · b) gauge · c) histogram · d) trace

a) counter. A counter only increases, for example total requests served.

4Which metric type shows a value that goes up and down, like memory in use? a) Counter · b) Gauge · c) Histogram · d) Span

b) Gauge. A gauge can rise and fall, for example current memory use.

5How does Prometheus collect metrics? a) It waits for the app to push · b) It scrapes an endpoint on a schedule · c) It reads email alerts · d) It runs SQL on the app database

b) It scrapes an endpoint on a schedule. Prometheus uses a pull model: it scrapes the metrics endpoint.

6What is PromQL for? a) Drawing logos · b) Querying and computing metrics · c) Writing Dockerfiles · d) Compressing logs

b) Querying and computing metrics. PromQL is Prometheus's query language for metrics.

7Grafana is mainly used to… a) build and share dashboards · b) deploy pods · c) scan code for bugs · d) store secrets

a) build and share dashboards. Grafana builds dashboards on top of data sources such as Prometheus.

8Synthetic monitoring means… a) fake data in the database · b) robots act like users and test the site on a schedule · c) logs written by hand · d) metrics with no labels

b) robots act like users and test the site on a schedule. Synthetic checks simulate users from outside the system.

9Which log level is the most serious? a) DEBUG · b) INFO · c) WARN · d) FATAL

d) FATAL. FATAL is the highest level, then ERROR, WARN, INFO, DEBUG.

10Why are JSON logs easier to use than plain text? a) They are smaller · b) Their fields can be parsed and searched · c) They never need storage · d) They are encrypted by default

b) Their fields can be parsed and searched. JSON gives named fields, so a tool can filter and group them.

11In a trace, one step of a request is called a… a) span · b) gauge · c) bucket · d) sink

a) span. A span is one timed step inside a trace.

12What is observability? a) A backup plan · b) The ability to ask new questions about a system without changing its code · c) A type of firewall · d) A test framework

b) The ability to ask new questions about a system without changing its code. That is the core idea: unknown questions, no code change.

13What is the main purpose of monitoring? a) Collect data over time to judge system health · b) Replace unit tests · c) Store database backups · d) Make the source code shorter

a) Collect data over time to judge system health. Monitoring watches the system over time so you can see its health.

14Which one is NOT a golden signal? a) Saturation · b) Colour depth · c) Latency · d) Traffic

b) Colour depth. The four golden signals are latency, traffic, errors, and saturation.

15A metric that only goes up is a… a) trace · b) counter · c) gauge · d) histogram

b) counter. A counter only increases, for example total requests served.

16How does Prometheus collect metrics? a) It scrapes an endpoint on a schedule · b) It reads alert messages · c) It runs SQL on the app database · d) It waits for the app to push

a) It scrapes an endpoint on a schedule. Prometheus uses a pull model: it scrapes the metrics endpoint.

17What is PromQL for? a) Writing Dockerfiles · b) Compressing logs · c) Drawing logos · d) Querying and computing metrics

d) Querying and computing metrics. PromQL is the query language for metrics.

18Grafana is mainly used to… a) store secrets · b) build and share dashboards · c) deploy pods · d) scan code for bugs

b) build and share dashboards. Grafana builds dashboards on top of data sources such as Prometheus.

19Which log level is the most serious? a) INFO · b) WARN · c) FATAL · d) DEBUG

c) FATAL. FATAL is the highest level, then ERROR, WARN, INFO, DEBUG.

20Why are JSON logs easier to use than plain text? a) They never need storage · b) They are encrypted by default · c) They are smaller · d) Their fields can be parsed and searched

d) Their fields can be parsed and searched. JSON gives named fields, so a tool can filter and group them.

21In a trace, one step of a request is called a… a) sink · b) span · c) gauge · d) bucket

b) span. A span is one timed step inside a trace.

22Which of these is one of the 3 pillars of observability? a) Passwords · b) Backups · c) Firewalls · d) Metrics

d) Metrics. The pillars are metrics, logs, and traces.

23Why do teams sample traces? a) To remove the trace ID · b) To turn off logging · c) To keep every trace forever · d) To cut cost and data volume

d) To cut cost and data volume. A sample is enough to see the shape of the traffic.

24What does an alerting rule need to be useful? a) A message to everyone · b) An owner and a first check step · c) A very low threshold · d) No logs

b) An owner and a first check step. With no owner, an alert becomes background noise.

25Which tool is vendor-neutral for telemetry? a) OpenTelemetry · b) PromQL · c) Nmap · d) Snyk

a) OpenTelemetry. OpenTelemetry is a standard, so you can change vendors later.

26What does a trace ID do? a) Names the cluster · b) Sets the log level · c) Encrypts the payload · d) Links the logs and spans of one request

d) Links the logs and spans of one request. One ID ties the logs and spans of one request together.

27How does an agent usually run on Kubernetes for monitoring? a) As a git hook · b) As a DNS record · c) As a DaemonSet or a sidecar · d) As a user login

c) As a DaemonSet or a sidecar. A DaemonSet puts an agent on each node. A sidecar sits with the pod.

28What is a good rule for logs? a) Delete all logs each hour · b) Log every password · c) Never log passwords or tokens · d) Use plain text only

c) Never log passwords or tokens. Secrets in logs become a leak that never expires.

29Why does monitoring differ from observability? a) Monitoring covers known questions; observability lets you ask new ones · b) Monitoring is only for logs · c) Observability needs no data · d) They are the same thing

a) Monitoring covers known questions; observability lets you ask new ones. Monitoring answers known questions. Observability explores the unknown.

30Name three tools used in this course.

Prometheus, Grafana, Instana (also Mezmo and OpenTelemetry).

31What is a trace?

The full path of one request across many services.

32What is telemetry?

Data sent from a system to a watcher.

14.10

Study and exam tips

Memorise the golden signals and the metric types. Many questions use them directly.

  • Keep the flow in mind: collect -> store -> visualize -> alert.
  • Learn Prometheus (pull) vs Grafana (draw) and monitoring vs observability.
  • Do the Prometheus, Grafana, and Instana labs. The quiz mirrors the lab words.
  • When a question asks for a log level, match the level to the message.
  • A trace is one request. A span is one step. Do not mix them up.

Practice

All commands in this chapter