Skip to contentমূল লেখায় যান

Topic 19 · Architectureটপিক 19 · Architecture

Monitoring and Observability

Think of a car dashboard. The warning light tells you that something is wrong with the engine. That is monitoring. The mechanic who plugs in a reader and finds that one sensor failed at 80 km/h is doing observability. You need both: the light to know that there is a problem, and the reader to know why.

6 min read6 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 9 sources9টি সোর্স · updated Nov 2026আপডেট: Nov 2026

From slow login to the causeধীর লগইন থেকে কারণ পর্যন্ত

Follow a slow login from a metric to the logs to one trace, and find the slow SMS call.একটা ধীর লগইনকে মেট্রিক থেকে লগ, তারপর একটা ট্রেস পর্যন্ত অনুসরণ করুন, আর ধীর SMS কলটা খুঁজে বের করুন।

2 min2 মিনিট8 steps8টি ধাপ
  • Login p95লগইন p95300 ms
  • Signals usedসিগন্যাল0 / 3
student · loginশিক্ষার্থী · লগইনMetricsমেট্রিকp95 300 msp95 300 msLogsলগTraceট্রেসMetrics · login p95মেট্রিক · লগইন p95normal p95স্বাভাবিক p95300 ms300 msStudents say: login is slowশিক্ষার্থীরা বলছে: লগইন ধীর

You’ll learnআপনি শিখবেন

  • What metrics, logs, and traces each tell youমেট্রিক, লগ ও ট্রেস প্রতিটা কী বলে
  • How a shared ID joins logs to a traceshared ID কীভাবে লগকে ট্রেসের সাথে জোড়ে
  • How a span shows where the time wentspan কীভাবে দেখায় সময় কোথায় গেল
  • Why a missing request ID hurtsrequest ID না থাকলে কেন সমস্যা

In plain words

Monitoring means to collect, process, and show live numbers about a system, such as request counts, error counts, and processing times Source 2সোর্স 2. Google's SRE book says monitoring must answer two questions: what is broken, and why Source 2সোর্স 2. Monitoring tells you that the system is not healthy.

Observability lets you understand a system from the outside, by asking it questions. It helps you answer "Why is this happening?" Source 1সোর্স 1. For this, the application must send out three kinds of signals: logs, metrics, and traces Source 1সোর্স 1.

SignalWhat it isWhat it tells you
LogA message with a timestamp that a service writes Source 1সোর্স 1What happened
MetricA number collected over a period of time, such as error rate, CPU use, or request rate Source 1সোর্স 1How much, or how often
TraceThe path of one request through many services Source 1সোর্স 1Where the request spent its time

Spans. A trace is made of spans. A span is one unit of work, such as one database call Source 1সোর্স 1. For example, one page load can pass through an API gateway, a backend service, and a database. Each step is a span, and together they make one trace Source 1সোর্স 1.

Linking logs to traces. Logs alone often miss context, such as where the code was called from. They become much more useful when they are linked to a trace Source 1সোর্স 1. That link is a shared ID. The W3C Trace Context standard defines HTTP headers that carry an ID for each request from service to service Source 9সোর্স 9.

An application sends three streams, logs, metrics, and traces, into one observability platform. The platform sends alerts, and the alerts go to the engineering team.Open the image in full sizeছবিটি পূর্ণ আকারে খুলুন

The numbers to watch

Google's SRE book names four golden signals: latency, traffic, errors, and saturation Source 2সোর্স 2. In everyday terms:

  • RPS (requests per second): the traffic. For a web service, the SRE book says traffic is usually HTTP requests per second Source 2সোর্স 2.
  • Error rate: the share of requests that fail. A failure can also be a 200 OK with the wrong content Source 2সোর্স 2.
  • p95 and p99 latency: 95 % or 99 % of requests are faster than this time. Averages hide slow requests. The SRE book gives an example: with an average of 100 ms at 1,000 requests per second, 1 % of requests might easily take 5 s Source 2সোর্স 2.
  • Queue length, slow database queries, and replication lag: signs that a part behind the API is falling behind.
  • CPU, RAM, and disk use: how full the servers are. The SRE book calls this saturation: how "full" your service is Source 2সোর্স 2.

সহজ English

Monitoring means to collect, process, and show live numbers about a system, such as request counts, error counts, and processing times Source 2সোর্স 2. It tells you that the system is not healthy. Google's SRE book says that monitoring must answer two questions: what is broken, and why Source 2সোর্স 2.

Observability lets you understand a system from the outside. You ask the system questions, such as "Why is this happening?" Source 1সোর্স 1. For this, the application must send out three kinds of signals Source 1সোর্স 1:

  • Logs: messages with a timestamp. They tell you what happened.
  • Metrics: numbers collected over time, such as the error rate. They tell you how much or how often.
  • Traces: the path of one request through many services. A trace is made of spans. Each span is one unit of work, such as one database call.

A shared ID links the logs to a trace. The W3C Trace Context standard defines HTTP headers that carry this ID from service to service Source 9সোর্স 9.

Google's SRE book names four golden signals: latency, traffic, errors, and saturation Source 2সোর্স 2. Watch p95 and p99 latency too, because averages hide slow requests Source 2সোর্স 2.

বাংলা ব্যাখ্যা

Monitoring মানে একটি system সম্পর্কে live সংখ্যা সংগ্রহ করা, process করা এবং দেখানো, যেমন request-এর সংখ্যা, error-এর সংখ্যা এবং processing time Source 2সোর্স 2। Google-এর SRE book বলে, monitoring-কে দুটি প্রশ্নের উত্তর দিতে হবে: কী নষ্ট হয়েছে, এবং কেন Source 2সোর্স 2। Monitoring আপনাকে জানায় যে system healthy নয়।

Observability আপনাকে বাইরে থেকে প্রশ্ন করে একটি system বুঝতে সাহায্য করে। এটি "এটি কেন হচ্ছে?" প্রশ্নের উত্তর দিতে সাহায্য করে Source 1সোর্স 1। এর জন্য application-কে তিন ধরনের signal পাঠাতে হয়: log, metric এবং trace Source 1সোর্স 1।

  • Log: একটি service-এর লেখা timestamp-সহ একটি message। এটি বলে কী ঘটেছে।
  • Metric: একটি সময়ের মধ্যে সংগ্রহ করা একটি সংখ্যা, যেমন error rate, CPU use বা request rate। এটি বলে কতটা বা কতবার।
  • Trace: অনেক service-এর মধ্য দিয়ে একটি request-এর পথ। এটি বলে request কোথায় সময় নিয়েছে। একটি trace কয়েকটি span দিয়ে তৈরি। একটি span হলো কাজের একটি একক, যেমন একটি database call।

শুধু log-এ প্রায়ই context থাকে না। Log-কে একটি trace-এর সাথে যুক্ত করলে log অনেক বেশি কাজে লাগে Source 1সোর্স 1। এই যোগসূত্র হলো একটি shared ID। W3C Trace Context standard এমন HTTP header নির্ধারণ করে, যা প্রতিটি request-এর একটি ID এক service থেকে আরেক service-এ নিয়ে যায় Source 9সোর্স 9।

Google-এর SRE book চারটি golden signal-এর কথা বলে: latency, traffic, errors এবং saturation Source 2সোর্স 2। p95 আর p99 latency-ও দেখুন, কারণ average ধীর request-গুলোকে আড়াল করে। যেমন, average 100 ms এবং প্রতি সেকেন্ডে 1,000 request হলেও 1 % request সহজেই 5 s নিতে পারে Source 2সোর্স 2।

When you need it

  • A production system is running.
  • There are critical flows: payment, login, order, or enrollment.
  • The system uses more than one service or server.
  • The system depends on a queue, a cache, or an external API.
  • The team must find the cause of an incident fast.
  • There is an uptime target or an SLA (service level agreement, a promise to customers).

সহজ English

You need monitoring and observability in these cases:

  • A production system is running.
  • The system has critical flows, such as payment, login, order, or enrollment.
  • The system uses more than one service or server.
  • The system depends on a queue, a cache, or an external API.
  • The team must find the cause of an incident fast.
  • There is an uptime target or an SLA. An SLA (service level agreement) is a promise to customers.

বাংলা ব্যাখ্যা

নিচের যেকোনো অবস্থায় আপনার monitoring আর observability দরকার:

  • একটি production system চলছে।
  • System-এ গুরুত্বপূর্ণ flow আছে: payment, login, order বা enrollment।
  • System একাধিক service বা server ব্যবহার করে।
  • System একটি queue, একটি cache বা একটি external API-এর উপর নির্ভর করে।
  • Team-কে দ্রুত একটি incident-এর কারণ খুঁজে বের করতে হবে।
  • একটি uptime target বা একটি SLA আছে। SLA (service level agreement) হলো customer-দের কাছে দেওয়া একটি প্রতিশ্রুতি।

A real-life example

Students say that login in the LMS is slow. Without observability, developers guess and read code at random.

With observability, the team sees the problem in steps:

  1. Metrics show that login p95 latency went up from 300 ms to 3 s.
  2. Logs show timeouts from the SMS provider that sends the login code.
  3. A trace of one slow login shows that the call to the SMS provider takes 2.5 s.

Now the cause is clear, and nobody had to guess.

সহজ English

Students say that login in the LMS is slow. Without observability, the developers guess and read code at random.

With observability, the team finds the problem in steps:

  1. The metrics show that the login p95 latency went up from 300 ms to 3 s.
  2. The logs show timeouts from the SMS provider. This provider sends the login code.
  3. A trace of one slow login shows that the call to the SMS provider takes 2.5 s.

Now the cause is clear. Nobody had to guess.

বাংলা ব্যাখ্যা

ধরুন, শিক্ষার্থীরা বলছেন যে LMS-এ login ধীর। Observability না থাকলে developer-রা অনুমান করেন এবং এলোমেলোভাবে code পড়েন।

Observability থাকলে team ধাপে ধাপে সমস্যাটি দেখতে পায়:

  1. Metric দেখায় যে login-এর p95 latency 300 ms থেকে বেড়ে 3 s হয়েছে।
  2. Log দেখায় যে login code পাঠানো SMS provider থেকে timeout আসছে।
  3. একটি ধীর login-এর trace দেখায় যে SMS provider-কে করা call-টি 2.5 s নেয়।

এখন কারণটি পরিষ্কার, আর কাউকে অনুমান করতে হয়নি।

Common tools

The tool names below come from common practice. They are examples, not a recommendation.

AreaPopular tools
LogsELK Stack / Elastic Stack, Grafana Loki, Splunk, Datadog Logs, AWS CloudWatch Logs
MetricsPrometheus, Grafana, Datadog, New Relic, AWS CloudWatch
Traces / APMJaeger, Zipkin, OpenTelemetry, Datadog APM, New Relic APM
AlertingAlertmanager, Grafana Alerting, PagerDuty, Opsgenie, AWS CloudWatch Alarms
Cloud monitoringAWS CloudWatch, Google Cloud Monitoring, Azure Monitor

APM means application performance monitoring. What some of these tools do, in one line each:

সহজ English

The tool names here come from common practice. They are examples, not a recommendation. The table gives tools for five areas: logs, metrics, traces or APM, alerting, and cloud monitoring. APM means application performance monitoring.

What some of these tools do:

বাংলা ব্যাখ্যা

এখানের tool-এর নামগুলো প্রচলিত ব্যবহার থেকে নেওয়া। এগুলো শুধু উদাহরণ, কোনো সুপারিশ নয়। Table-এ পাঁচটি ক্ষেত্রের tool আছে: logs, metrics, traces / APM, alerting এবং cloud monitoring। APM মানে application performance monitoring।

কয়েকটি tool কী করে, প্রতিটি এক লাইনে:

  • Prometheus একটি open-source monitoring ও alerting toolkit। এটি metric-কে time series হিসেবে রাখে, অর্থাৎ timestamp-সহ value Source 3সোর্স 3।
  • Alertmanager duplicate alert সরিয়ে দেয়, alert-গুলোকে group করে এবং email, PagerDuty বা OpsGenie-এর মতো একটি receiver-এ পাঠায় Source 4সোর্স 4।
  • Grafana Loki একটি open-source logging stack। এটি log-এর পুরো text নয়, শুধু label-গুলো index করে Source 5সোর্স 5।
  • Grafana দিয়ে আপনি metric, log আর trace query করতে, দেখাতে এবং সেগুলোর উপর alert দিতে পারেন Source 6সোর্স 6।
  • Jaeger একটি open-source distributed tracing platform Source 7সোর্স 7।
  • OpenTelemetry হলো signal পাঠানোর code (instrumentation) যোগ করার একটি mechanism Source 1সোর্স 1।
  • AWS CloudWatch AWS resource আর app monitor করে। এর alarm-গুলো আপনার ঠিক করা limit-এর সাথে metric মিলিয়ে দেখে Source 8সোর্স 8।

Common mistakes

  • Logs with no context. "Error occurred" with no user, no request, and no step is noise.
  • No request ID or correlation ID. Without one shared ID, you cannot join the log lines of one request across services. The W3C Trace Context standard exists to carry an ID that identifies each request from service to service Source 9সোর্স 9.
  • Only CPU alerts. CPU can be fine while payments fail. Watch business signals too, such as failed payments per minute.
  • Metrics but no useful alert. Google's SRE book says every page to a human should be actionable Source 2সোর্স 2.
  • Microservices with no traces. When a request crosses ten services, logs alone cannot show where the time went.

সহজ English

Look out for these common mistakes:

  • Logs with no context. A log line such as "Error occurred" with no user, no request, and no step is only noise.
  • No request ID or correlation ID. Without one shared ID, you cannot join the log lines of one request across services. The W3C Trace Context standard exists to carry an ID that identifies each request from service to service Source 9সোর্স 9.
  • Only CPU alerts. The CPU can be fine while payments fail. Also watch business signals, such as failed payments per minute.
  • Metrics but no useful alert. Google's SRE book says that every page to a human should be actionable Source 2সোর্স 2.
  • Microservices with no traces. When a request goes through ten services, logs alone cannot show where the time went.

বাংলা ব্যাখ্যা

এই সাধারণ ভুলগুলোর দিকে খেয়াল রাখুন:

  • Context ছাড়া log। User, request বা step ছাড়া "Error occurred"-এর মতো একটি log শুধু noise।
  • কোনো request ID বা correlation ID নেই। একটি shared ID ছাড়া আপনি বিভিন্ন service জুড়ে একটি request-এর log line-গুলো জোড়া লাগাতে পারবেন না। W3C Trace Context standard ঠিক এই কাজের জন্য আছে: এটি এমন একটি ID বহন করে, যা এক service থেকে আরেক service-এ প্রতিটি request-কে চিহ্নিত করে Source 9সোর্স 9।
  • শুধু CPU alert। CPU ঠিক থাকলেও payment fail করতে পারে। Business signal-ও দেখুন, যেমন প্রতি মিনিটে fail হওয়া payment-এর সংখ্যা।
  • Metric আছে, কিন্তু কাজের alert নেই। Google-এর SRE book বলে, একজন মানুষের কাছে যাওয়া প্রতিটি page actionable হওয়া উচিত Source 2সোর্স 2।
  • Trace ছাড়া microservices। একটি request দশটি service পার হলে শুধু log দেখে বোঝা যায় না সময় কোথায় গেল।

What a tester can check

Tutorial advice

These test ideas are the tutorial's own advice.

  • Log content. Run a payment and a failed login. Check that each log line has a timestamp, a request ID, the user ID, and the step. Check that no password, OTP, or card number is in the logs.
  • Request ID end to end. Send one request with a known ID. Find it in the gateway, the service, and the worker logs.
  • Alert fires. In a test environment, make a dependency slow or make payments fail. Check that the right alert fires within the promised time, and that it says what to do.
  • Trace is complete. Open the trace of one checkout. Check that each service and each external call shows up as a span.
  • Performance tests report p95 and p99. Do not accept a report that shows only the average.

সহজ English

These test ideas are the tutorial's own advice.

  • Log content. Run a payment and a failed login. Make sure that each log line has a timestamp, a request ID, the user ID, and the step. Make sure that the logs contain no password, OTP, or card number.
  • Request ID end to end. Send one request with a known ID. Find this ID in the gateway logs, the service logs, and the worker logs.
  • Alert fires. In a test environment, make a dependency slow, or make payments fail. Make sure that the correct alert fires within the promised time. Make sure that the alert says what to do.
  • Trace is complete. Open the trace of one checkout. Make sure that each service and each external call shows as a span.
  • Performance tests report p95 and p99. Do not accept a report that shows only the average.

বাংলা ব্যাখ্যা

নিচের test ধারণাগুলো এই tutorial-এর নিজস্ব পরামর্শ।

  • Log-এর content। একটি payment আর একটি failed login চালান। দেখুন, প্রতিটি log line-এ একটি timestamp, একটি request ID, user ID এবং step আছে কি না। দেখুন, log-এ কোনো password, OTP বা card number নেই।
  • শুরু থেকে শেষ পর্যন্ত request ID। একটি জানা ID দিয়ে একটি request পাঠান। ID-টি gateway, service এবং worker-এর log-এ খুঁজে বের করুন।
  • Alert চালু হয়। একটি test environment-এ একটি dependency ধীর করুন বা payment fail করান। দেখুন, ঠিক alert-টি প্রতিশ্রুত সময়ের মধ্যে আসে কি না, এবং alert-টি বলে কি না কী করতে হবে।
  • Trace সম্পূর্ণ। একটি checkout-এর trace খুলুন। দেখুন, প্রতিটি service এবং প্রতিটি external call একটি span হিসেবে দেখা যায় কি না।
  • Performance test p95 আর p99 report করে। শুধু average দেখানো কোনো report গ্রহণ করবেন না।

Key words

WordMeaning
MonitoringCollecting and showing live numbers that tell you if a system is healthy
ObservabilityThe power to find out why a system behaves as it does, from its signals
LogA timestamped message about one event
MetricA number measured over time, such as requests per second
TraceThe path of one request through all the services it touches
SpanOne step inside a trace, such as one database call
p95 latencyThe time that 95 % of requests are faster than
SaturationHow full a resource is, such as CPU or a queue
Correlation IDOne ID that follows a request through every service
SLAA promise to customers about uptime or speed

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

  1. [1]
    Observability primer

    OpenTelemetry · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  2. [2]
    Monitoring Distributed Systems (Site Reliability Engineering, chapter 6)

    Google · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  3. [3]
    Overview

    Prometheus · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  4. [4]
    Alertmanager

    Prometheus · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  5. [5]
    Grafana Loki documentation

    Grafana Labs · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  6. [6]
    Introduction to Grafana

    Grafana Labs · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  7. [7]
    Introduction

    Jaeger · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  8. [8]
    What is Amazon CloudWatch?

    AWS · accessed 2026-10-20দেখা হয়েছে: 2026-10-20

  9. [9]
    Trace Context

    W3C · accessed 2026-10-20দেখা হয়েছে: 2026-10-20