Workshop 12: Observability and Metrics
Learning Objectives
By the end of this workshop, you will be able to:
- Locate metrics - Find and interpret metric definitions
- Trace observability setup - Identify where metrics and tracing are initialized
- Connect signals to subsystems - Map metrics to runtime behavior
Goal
Build a mental model of how ICN observes itself and how operators diagnose issues using metrics, tracing, and logs.
Prerequisites
- Completed Module 12: Observability
- Familiarity with Module 9 (Operations)
Estimated time
1-2 hours
Related Materials
icn/crates/icn-obs/monitoring/README.mddocs/onboarding/patterns.md
Part 1: Metric Definitions
Steps
- Open
icn/crates/icn-obs/src/metrics/ - Choose one subsystem file (e.g., gossip or ledger)
- List three metrics and their descriptions
Questions
- What naming convention is used?
- Which metrics indicate throughput vs errors?
Checkpoint
- You can find and interpret metric definitions
Part 2: Initialization Path
Steps
- Find where observability is initialized in runtime startup
- Identify which components register metrics
Questions
- Where are metric descriptions registered?
- Where is tracing configured?
Checkpoint
- You can trace the observability initialization path
Part 3: Dashboard Mapping
Steps
- Open
monitoring/grafana-dashboard.json - Identify panels related to gossip and ledger
- Note which metrics drive those panels
Checkpoint
- You can map dashboard panels to subsystem metrics
Summary
After completing this workshop you should be able to:
- Locate metric definitions and interpret their intent
- Trace how observability is initialized
- Connect dashboards to runtime behavior
Next steps
Proceed to Workshop 13: Security and Privacy