Observability
Observability shows the logs, traces and metrics your services send with OpenTelemetry, next to the cost, security and carbon of the same resources. Connect it first.

Find your way
Section titled “Find your way”Observability has its own group in the sidebar:
| Area | What you find |
|---|---|
| Health | the services sending telemetry, with spans per minute, error rate and p95, and what needs attention; Investigate finds where an incident started |
| Services (APM) | each service’s requests, errors and latency, and the map of which service calls which |
| Infrastructure | hosts, Kubernetes and databases at a glance, with what needs attention |
| User experience | what real users see in the browser: page views, Core Web Vitals, JavaScript errors and sessions (with Korai’s RUM SDK: set it up) |
| Edge | the CDN in front of your services (Cloudflare): traffic, 52x against your origin’s 5xx, firewall, Workers and single requests (more); shown once a zone is connected |
| Explore | Traces, Logs, Errors and Metrics |
| Reliability | SLOs, SLAs, monitors and uptime checks |
| Dashboards | your dashboards, and ones you import |
| Telemetry | how to connect, which data arrives from where, and the API providers Korai reads for you |
Services that send traces appear on their own. Click a service to see its traces; click a figure to open the logs or traces behind it.
Kubernetes pods over a time range
Section titled “Kubernetes pods over a time range”Infrastructure › Kubernetes goes from clusters to namespaces, workloads and pods. By default the Pods table is a current inventory: a pod must have a core signal in the final five minutes of the selected range, so a pod that was deleted, replaced or evicted earlier is not counted as Running. Rows load in stable pages of 100; Load more pods keeps the same frozen end time, while the headline still covers the complete selected scope.
On the Pods level, turn on Include pods that ended in the range to list them too, as Terminated with the time of their last report (Ended). Started is when a pod first reported in the range, so new pods stand out; a dash means it was already there when the range starts, or is still alive at its end. A dash in a metric or phase means that signal is unknown for the pod, never zero.
The summary views are computed once and shared, so moving between screens is fast. The button at the top says when they were last Updated; press it to recompute what is on screen. When a view’s last answer has just expired, Korai shows it at once and computes the new one in the background, so the next visit gets it. If the observability backend is busy, Korai keeps showing the last answer it had with a warning (Showing earlier data: the backend is busy) and tries again later.
Kubernetes: memory and CPU against limits
Section titled “Kubernetes: memory and CPU against limits”Infrastructure › Kubernetes goes from clusters to namespaces, workloads and pods. To find a container that runs out of memory:
- On Workloads and Pods, Peak mem / limit is the highest share of its memory limit that any container reached in the range, and Peak at says when. It reads the working set at its peak in each step, so a spike just before an OOM kill is not lost between two samples. Mem / limits is the value at the end of the range.
- The Pods under memory pressure tile counts current pods whose worst container averaged at least 90 % of its limit over the final 15 minutes. Click it to see the complete scope, worst first; 15 min / limit is distinct from the historical peak.
- Click a pod to open its detail: one row per container with its memory and CPU against the limit, restarts and why it last stopped (when kube-state-metrics sends it), and a chart per container with the request and limit lines and a marker at each restart. A restart while memory was at 95 % of the limit or more is marked OOM. Click a container to open the pod’s logs.
It works with the kubeletstats and k8s_cluster receivers and with cAdvisor and kube-state-metrics. A container without a memory limit shows no peak.
Investigate an incident
Section titled “Investigate an incident”Health › Investigate looks for where an incident started. Describe what happened (for example “the system went down for 5 minutes because of a database lock”), set the From and To of the window in your local time and press Investigate. Korai walks your services, error issues, logs, traces, database metrics and Kubernetes events (autoscaling, scheduling, restarts) in that window, the same reads you would do by hand, and shows each step live under How Korai is investigating. You can also start it from the investigation mode banner (Investigate with AI) or from a recent incident on Health.
It ends in a report: the root cause, the most likely trigger with a confidence level, the impact, a timeline, the evidence behind each claim, what it ruled out, what was missing to be sure and the next steps. It only reads and never changes anything. One investigation runs at a time per tenant. Without AI configured on the server, Korai follows a fixed investigation playbook with the same reads.
Recent incidents. Health’s list of what needs attention also shows the worst two incidents of the last 24 hours that ended over an hour ago (a service whose errors spiked, with when, how long and the peak). Click one to open Investigate over its window (15 minutes either side) with investigation mode on.
Investigation mode
Section titled “Investigation mode”Investigation mode pins one window on every Observability view (Health, Services, Infrastructure, User experience, Traces, Logs, Errors, Metrics and Dashboards) so you can move between them without setting the range again. Turn it on from any time picker: pick an Absolute From and To, or an Estimated time of the incident with a margin of ± minutes, and press Pin on all views. A banner on every view shows the pinned window, with Investigate with AI and Turn off. Picking a relative range also turns it off. A view that only reads relative ranges keeps its own and says so. The pin is kept per tenant in this browser.
Environments
Section titled “Environments”When staging and production send to the same place, choose the environment once with Environment in the top bar
(next to Updated). Every Observability page then shows only that environment until you change it: Health,
Services and each service’s page, Infrastructure, Traces, Logs, Errors and Metrics. All environments mixes them,
and the button shows a dot as a reminder. A link that carries env= (for example one a colleague shares) sets it too.
The choice is kept per tenant in this browser.
Health by environment. With more than one environment, Health starts with one card per environment (production first), each with its own services, request rate, error rate and verdict, so a healthy production is never averaged with a failing staging or the other way round. Click a card to show only that environment everywhere.
Where the environment comes from. Traces and logs carry it as deployment.environment.name (or
deployment.environment). Kubernetes and cloud metrics usually carry only the cluster, so in Telemetry › Coverage ›
Environments an admin says which environment each cluster belongs to (for example gke-prod-eu → prod,
gke-stg → staging), and sets the Default environment everyone sees before choosing. Data that carries neither
the environment nor a mapped cluster cannot be split; the Environment menu says which signals those are. To split
everything without a map, set the attribute on every signal in your collector or SDK:
processors: resource: attributes: - { key: deployment.environment.name, value: prod, action: upsert }Services over long ranges are read from summaries that do not keep the environment: with an environment chosen, a very wide range reads the newest part that fits and says so.
Time range
Section titled “Time range”The picker at the top right sets the range. Relative covers the last minutes, hours or days. Absolute takes a From and a To in your local time, for example to look at an incident from last week. Every Observability view has both, including Health, Infrastructure and Errors. Raw logs and traces are read in windows of up to 7 days; the From can go back as far as your retention. If your plan sets a shorter window for raw logs (for example 3 days on very large log streams), the Logs picker only offers up to that window, and any window of that length within your retention can still be picked with Absolute. Health, Services, Errors, Infrastructure and User experience read summaries, so they keep the longer ranges.
While a view loads. A view shows the shape of what is coming and, if it takes more than a second, a short line that changes every few seconds so you can tell it is still working. Wide ranges over a lot of data take longer; after about 15 seconds the line suggests a shorter range, which loads faster.
Sorting. Click a column header to sort the tables of Health, Services, a service’s page, Traces and Errors; click it again to reverse the order.
Zoom. On the time charts of Services and User experience, drag across the chart to zoom: the whole page switches to that interval (the picker shows it as an absolute range) and every view reads it again. Back next to the picker (or Alt+←) undoes the last zoom; picking a range in the picker leaves the zoom. On a phone a finger scrolls the page, so use the picker’s Absolute… instead.
Services
Section titled “Services”The list shows every service with its requests, errors, p95, apdex and what it depends on; Map draws who calls whom. Click a service for its page: an overview (requests and errors, latency, what changed), its endpoints, dependencies, logs, errors, deployments and, when it sends them, runtime and GenAI. The range you pick, relative or absolute, follows you from the list to a service and back. The service’s charts mark its deployments and, when your cluster sends Kubernetes events, each time its workload scaled up or down (in orange).
On the map, what your services call but nobody instruments is grouped into one card per kind, with how many it holds: external APIs, uninstrumented hosts, and databases by system (for example “14 hosts, not instrumented” or “5 postgresql databases”). Click a group to see its members one by one, and again to fold it; Expand all opens every group. Links and services Korai saw in earlier ranges but not in this one are folded into “not seen in this range”. The map fits the width of the page and never grows taller than one screen: scroll or drag inside it, and use the zoom buttons (Fit goes back to the whole width). Over a long, busy range the map draws the most recent part of the range and its header says from when; links seen earlier in the range still come from Korai’s memory.
Over a long range Korai counts a busy service’s whole range from five-minute aggregates (APM history); without them it shows the most recent part of the range and says from when. To get from “there was a latency spike” to the requests behind it, drag across the spike on the requests or latency chart: the narrow interval is read from the raw spans again. While zoomed, View traces in this interval opens Explore › Traces filtered to the service over exactly that interval.
Infrastructure
Section titled “Infrastructure”Infrastructure builds one view for each thing your telemetry shows: Kubernetes, hosts, databases, queues, load balancers and cloud services. A view lights up by itself when its metrics arrive; until then it shows the collector snippet that would feed it.
Google Cloud load balancer reads loadbalancing.googleapis.com from Cloud Monitoring and shows requests per
second (the per-minute counts of each step added up, so a short spike is not hidden on a wide range), the 5xx and 4xx
share, total and backend latency (the gap between them is the client’s network, TLS and the load balancer), the cache
hit ratio with Cloud CDN, and requests over time by status class. The tables split the traffic by client country
(where the load balancer locates the client), by the continent of the Google front end, by status code and by
forwarding rule and backend, each with its share and 5xx. A country that suddenly grows, or only fails, stands out
there. If your collector aggregates the series, keep client_country, response_code and proxy_continent in its
group-by, or the country table stays empty. Load balancer and Cloud NAT metrics rarely say which environment they
serve: when the environment chosen in the top bar is not on them, these views show every environment and say so.
Google Cloud NAT reads router.googleapis.com/nat (per gateway) and compute.googleapis.com/nat (per VM, for
GKE the nodes). It shows the ports each VM uses against the ports it has, packets dropped because there were no ports
left (reason OUT_OF_RESOURCES), port allocation failures and open connections, by gateway and by VM. Running out of
NAT ports shows here before it shows as timeouts in your services. The bell on Dropped for lack of ports, Port
allocation failures and Peak port usage creates a monitor with the threshold already set (any drop, any
failure, 90 % of the ports). Add both metric families to the googlecloudmonitoring receiver:
receivers: googlecloudmonitoring: project_id: my-project collection_interval: 60s metrics_list: - metric_name: "loadbalancing.googleapis.com/https/request_count" - metric_name: "loadbalancing.googleapis.com/https/total_latencies" - metric_name: "loadbalancing.googleapis.com/https/backend_latencies" - metric_descriptor_filter: 'metric.type = starts_with("router.googleapis.com/nat/")' - metric_descriptor_filter: 'metric.type = starts_with("compute.googleapis.com/nat/")'Kubernetes
Section titled “Kubernetes”Infrastructure › Kubernetes goes from clusters to namespaces, workloads and pods, with usage against requests and limits, restarts and ready replicas against desired. Deployments, StatefulSets, DaemonSets and Argo Rollouts are workloads; a Rollout shows its ready and desired replicas and its phase (for example Rollout · Paused) when the cluster sends Argo Rollouts’ metrics.
The headline (CPU and memory against requests and limits, restarts) always covers the complete selected scope, independently of the rows loaded. The current Pods table loads 100 stable identities at a time; Load more pods keeps the same frozen window. Turn on Include pods that ended in the range to query the historical inventory. Unknown signals remain a dash rather than being turned into zero.
When your cluster sends Kubernetes events (the OpenTelemetry Collector’s k8sobjects receiver watching events,
or k8s_events), the view also shows what happened to the pods in the range, not only how they ended:
- Pods that were Pending, Scheduling failures (with how many did not trigger a scale-up) and Probe failures (liveness, readiness and startup) at the top.
- On each workload: the longest time one of its pods spent Pending, its scheduling and probe failures, and Most on one node (for example “5 of 6 on node-a”, flagged when more than half of the replicas share a node). On each pod: its time Pending and its failures. A pod that never sent a core metric remains in the Kubernetes events table; it is not inserted into a stable metric-inventory page.
- The Kubernetes events table: each object with its reason (FailedScheduling, NotTriggerScaleUp, Unhealthy, BackOff, Evicted, OOM, rollout aborted or paused…), how many times it happened, when it was first and last seen in your local time, and the message as Kubernetes wrote it (for example “0/6 nodes are available: 1 Insufficient memory…”). Click a row to open the pods of its workload.
With a cluster or an environment chosen, events that arrive without a cluster name (some collectors do not set it on events) still count when they belong to that cluster’s pods, workloads or nodes. Over long ranges the counts at the top are added up by reason, so they never depend on how many objects the table lists.
Without events the view says so and how to add them.
OOM episodes and why containers restart
Section titled “OOM episodes and why containers restart”Infrastructure › Kubernetes counts OOM episodes in the range: one episode for each container restart caused by exceeding its memory limit, next to Container restarts. Click the number to jump to the OOM episodes table: when, which pod and container, on which node, the processes killed, how many event observations were grouped, how close to its limit the container’s memory was just before, and where Korai read it. Repeated watch observations and the several process-kill messages produced by one restart do not increase the episode count. Updates to a Kubernetes Event’s count received together for the same event start remain source observations of that episode; a later count increase is a new episode. Every level (clusters, namespaces, workloads, pods, nodes) gets an OOM column, and workloads and pods a Restarts: why column that splits the restarts in the range by cause: OOMKilled, Error, Liveness probe, Completed.
On GKE the OOM event belongs to the node, not to the pod, and only names the process. Korai links it to the pod by
the pod’s uid when the message carries it, or else by the container that restarted on that node at that moment (the
one whose last termination was OOMKilled and whose name matches the process first). It reads restart evidence only
for the affected node and the minutes around the event, at one-minute resolution; a decreasing restart gauge is a
reset, not a new restart. Without restart metrics, it
takes the pod running on that node whose container Kubernetes started again or backed off right after the kill, or
else the one whose memory collapsed at that moment. Korai marks each correlation as direct (pod identity or
termination reason), inferred (one compatible restart on the node) or unassigned. If several pods are equally
compatible, it does not guess: the episode remains on its node and says why it could not be assigned.
Time correlation never reaches beyond five real minutes, even when a long range uses wide chart buckets. The
Event observations column distinguishes one episode supported by many event rows from several real restarts.
Korai accepts a container name only from a known Kubernetes event sentence; a state word such as started is not a
container identity. If a safety limit truncates evidence or a required read fails, the headline says at least or
partial and names the affected evidence instead of presenting the count as complete. Several compatible pods are
an explicit ambiguous result, not missing data, and do not by themselves make the answer partial.
What it reads, in your collector:
- Kubernetes events, node events included: the
k8sobjectsreceiver watchingevents, or thek8s_eventsreceiver. Don’t filter out events whose object is a Node. - The last termination reason of each container: turn on
k8s.container.status.last_terminated_reasonin thek8s_clusterreceiver, or send kube-state-metrics (kube_pod_container_status_last_terminated_reason). With it, restarts say why even without events.
When neither arrives, the Kubernetes view says so and what to add.
Databases and cloud resources
Section titled “Databases and cloud resources”Infrastructure has a page per database (PostgreSQL, Redis, MongoDB, MySQL…) and per cloud (AWS, Google Cloud). Managed services such as Cloud SQL, RDS, Memorystore or ElastiCache get a table with one row per instance, and under each column title Korai says how the range became one number:
| Label | Meaning |
|---|---|
| peak | the highest value in the range. Each chart step keeps its own maximum, so a one-minute spike still shows on a one-day range |
| avg | the average of the samples, for percentages and latencies |
| min | the lowest value, for things where low is bad (free memory, free storage) |
| total | requests, errors or evictions added up over the range |
| now | the latest value |
Hover a column title for the full explanation. Counts such as backends, connections and clients are always a peak, never added up over time: Korai adds the instance’s databases and counts a series that arrives twice (for example from two collectors) only once. For Cloud SQL (PostgreSQL) Korai also shows Backends waiting, a chart of backends and of backends waiting with one line per instance, and Backends waiting by wait event (Lock, LWLock, IO…), so a lock incident shows on the instance where it happened.
MongoDB Atlas clusters connected in Settings › Integrations show on the MongoDB page: one row per cluster, one row per member (primary or secondary) with connections, operations, CPU, query targeting, read time, replication lag, cache and disk, and the cluster headline. See API providers › MongoDB Atlas.
Which query held things up. With Cloud SQL Query Insights on, the PostgreSQL page also lists the Top
queries by lock time: each normalised query with the seconds it waited on locks in the range, its share of all
lock time, its worst minute and when, its execution time and calls, per instance and database. The query that
waited most at the worst moment of the range is flagged, so for a lock incident you see the same culprit as Query
Insights in the Google Cloud console. Lock wait per instance charts the seconds of waiting per minute (60 s per
minute is one session waiting the whole minute). Investigate reads the same numbers. To turn it on, enable
Query Insights on the instance and add these metrics to the googlecloudmonitoring receiver of your collector (the
page shows the snippet when they are missing):
receivers: googlecloudmonitoring: project_id: my-project metrics_list: - metric_name: "cloudsql.googleapis.com/database/postgresql/backends_in_wait" - metric_name: "cloudsql.googleapis.com/database/postgresql/insights/perquery/lock_time" - metric_name: "cloudsql.googleapis.com/database/postgresql/insights/perquery/execution_time" - metric_name: "cloudsql.googleapis.com/database/postgresql/insights/perquery/latencies"
Type in the query bar and press Enter:
| You type | It finds |
|---|---|
service:payments |
a field equal to a value (* as wildcard) |
level:error |
the severity, in any case |
"timed out" or timeout |
full text |
-debug, -service:web |
excludes |
status!=200, duration>500 |
compares |
service, level, env, trace, namespace, pod and host are shortcuts for the OpenTelemetry field names.
Open an event to see all its fields; the magnifier icons add a field as a filter or exclude it, and Open its
trace jumps to the trace of that log. View in context shows the lines around it (±5 minutes, optionally only
from the same host). The arrow at the start of a row expands that line in place instead (→ to expand, ← to collapse);
Collapse all closes every expanded line.
Pages. The list shows 100 rows per page; the picker next to the pager changes it to 250, 500 or 1000. Move with
Prev and Next (or [ and ]), or type a page number. On the histogram a box marks the time of the rows on
the current page: drag it to jump to another page. Draw across bars, or click them, to select a time span and
Zoom to selection; double-click to zoom, and Back (Alt+←) undoes the last zoom.
More. Live tail refreshes the first page every few seconds for up to 15 minutes (it needs a relative range).
Patterns groups similar lines so the noisiest ones stand out. Columns chooses what the list shows, the filter
panel narrows by any field, and Saved views keeps a query, its columns and its range for your whole team.
Press / to jump to the query bar.
Long ranges. The histogram and the main facets (service, status, environment, host, source, HTTP status and route) cover the whole range you pick, also a week of a very busy service, as long as the query filters on those fields. The list is a feed: Showing the most recent lines first, Load older for the rest, or draw on the histogram to read the lines of any interval. Attribute facets, and full-text searches over a wide range, are computed over the most recent lines and say so. Before Korai started keeping these counts for your organization the chart shows “No data (before history was turned on)”; the lines themselves are still listed.
Traces
Section titled “Traces”
Filter by service, duration or only those with errors. Each trace opens as a waterfall: one bar per span, indented under its parent, red when it failed. Click a span for its attributes and error message.
Untracked time
Section titled “Untracked time”Time inside a request that no span covers is untracked: Korai cannot see what ran there. The trace header shows how much there is (“Untracked 2.09 s (88%)”), the holes are hatched on their parent’s bar, and every hole of 20 ms or more (or 5% of a short trace) gets its own Untracked row between the spans before and after it. Next gap (or the G key) jumps from one hole to the next. When a span’s parent never arrived, Korai places it under the span of the same service that contains it in time and marks it with a link icon; spans it cannot place stay at the top level, marked with a broken link. The waterfall and the flame graph grow with the window. When most of a trace is untracked, Explain this trace says so and names the spans on each side of the biggest hole instead of guessing what happened there. Fill the holes with more instrumentation: for PHP, see PHP and Laravel traces.
Events, inferred spans and repeated spans
Section titled “Events, inferred spans and repeated spans”- Events a span records (cache hits, log messages, exceptions) are drawn as ticks on its bar at the moment they happened, exceptions in red. Events as rows lists each one as a row in time order. A span keeps up to 1,000 events; its Events tab says when it carried more.
- Inferred spans (built by a profiler from stack samples, attribute
is_inferred) are drawn dashed and labelled inferred; their panel shows the stack trace they came from. - Fold repeated hides spans that only repeat others: database driver calls (
PDO::prepare,PDOStatement::execute,PDOStatement::fetchAll) next to the query span that already describes them, and a request recorded twice by two instrumentations. Nothing is dropped: turn the switch off to see them. - When your pipeline keeps the instrumentation scope, the span panel shows which library produced each span and Instrumentation appears as a facet.
A trace of more than 2,000 spans opens with the first 2,000 by start time; Load all spans reads the rest (up to 20,000). The waterfall only draws the rows in view, so large traces stay fast.
Errors
Section titled “Errors”Explore › Errors groups exceptions from your spans and logs into issues, with how often each happens and when it was first and last seen. Open an issue for its stack trace and sample traces. Create alert in the issue panel opens a new monitor already filled in: it counts that issue’s occurrences every minute and alerts, with high priority, when a five-minute window goes above about twice the busiest five minutes of the last 24 hours. Adjust it if you want and save it; it then lives in Reliability › Monitors.
Wide ranges
Section titled “Wide ranges”Korai never refuses a range your retention covers, however busy your services are, and it shows you the whole range: with history on (Korai turns it on for you within the hour of your first data), Services, a service’s overview and endpoints, the Traces chart, totals, latency distribution and groups, and Errors count every five minutes of the range from Korai’s aggregates. Lists of individual rows (spans, log lines, error events) show the most recent first (“Showing the most recent”); Load older reads the next older part, and again, so you can walk back through the whole range; Newest returns to the start. Drag across the chart to zoom into an interval: its rows are read in full. In Errors, every issue of the range is listed with its counts, and opening one shows its stack trace and sample traces from around its last occurrence. When a Traces query has a term that cannot be counted over the whole range (a duration, an attribute or free text), the chart says so and shows the most recent part. History fills in from the day it is turned on: before that, charts show “No data (before history was turned on)”. Views that need every attribute of the raw data (a service’s dependencies, runtime and versions, the service Map, User experience and dashboard panels) show the most recent part of the range and say from when. If the log facets cannot be counted for a range, the facet panel says they are not available for it and the rest of the page works as usual. In the rare case that even the most recent five minutes cannot be read, Korai asks for a shorter range.
Logs and the service Map go further. The logs histogram and main facets cover the whole range (see Logs). The map shows the links of the newest part with their numbers, and the older links Korai remembers with when they were last seen; once Korai has seen most of the range (80 % or more) it shows every link with its numbers for the whole range (“12 h: every link seen in the range”). Korai keeps this map memory itself, every 15 minutes, so once it has 7 days of it the map shows every link and its numbers for the whole range; latency (p95) over the whole range is an approximation.
Metrics
Section titled “Metrics”
Pick a metric from the catalogue and Korai writes a sensible PromQL query (a rate for counters, an average for gauges, the p95 for histograms). Edit the query and press Enter to change it.
Infrastructure › Redis puts each Redis or Valkey server on its own row: clients, memory against maxmemory (the peak in the range), commands per second, keys and evictions. Below it:
- Memory of maxmemory per instance, over time. Above 95 % Redis starts evicting keys, or refuses writes with
the
noevictionpolicy. An instance without a limit shows no limit. - Keyspace: keys per database, how many have a TTL and their average TTL.
- Server-side latency by command: the time Redis itself spends on each command (p50 and p99), without the
network or the client. Active commands — those whose
redis.cmd.callscounter increased in the selected range — come first. Retained latency statistics with no observed calls stay below as inactive context and cannot drive the Server p99 headline. That headline shows the worst p99 among the instance/command pairs that together cover at least 99% of calls in the range, so a command called only once or twice cannot hide the latency experienced by the main traffic. Rare commands remain visible in the table, together with their approximate call count. If the call counter is missing, incompatible, partial or could not be read, Korai does not claim a representative headline. Next to the Client p95 from your services’ spans, this tells a slow Redis from a slow network or client. - Slow commands (SLOWLOG): the commands Redis logged as slower than
slowlog-log-slower-than, with the slowest and average time, how many times and when it last happened. - Memorystore, when Google Cloud Monitoring metrics arrive: the provider’s numbers per instance (clients, CPU, memory, maxmemory, hit ratio, evictions), the keyspace counted on the primary, and the time per call by command.
The Redis receiver only sends some of this when you turn it on. Add this to the receiver in your collector (the configuration Korai generates in Telemetry › Connect already has it):
receivers: redis: endpoint: "cache.internal:6379" password: "${env:REDIS_PASSWORD}" metrics: redis.maxmemory: { enabled: true } # memory against its limit redis.cmd.latency: { enabled: true } # server-side latency per command redis.cmd.calls: { enabled: true } resource_attributes: server.address: { enabled: true } # one row per instance server.port: { enabled: true }If the collector sets a service.instance.id per Redis target (for example with a resource processor on each
receiver’s pipeline), Korai uses it to tell instances apart instead of server.address: a name like sessions stays
the same across failovers and endpoint changes, and no IP shows in the rows. Without either, every instance behind the
same receiver name shows as a single row. For Memorystore, add
redis.googleapis.com/stats/memory/maxmemory, redis.googleapis.com/stats/memory/usage,
redis.googleapis.com/keyspace/keys, redis.googleapis.com/commands/calls and
redis.googleapis.com/commands/usec_per_call to the metrics_list of your googlecloudmonitoring receiver.
Slow commands
Section titled “Slow commands”No receiver reads the SLOWLOG, and managed services like Memorystore don’t publish it in their cloud metrics, so Korai
reads it itself with its private probe, inside your network. List
your servers in KORAI_REDIS_SLOWLOG when you run the probe:
docker run -d --name korai-probe --restart unless-stopped -v korai-probe:/var/lib/korai-probe -e KORAI_PROBE_TOKEN='<install token>' -e KORAI_REDIS_SLOWLOG='redis://:<auth string>@10.0.0.3:6379?name=cache,rediss://10.0.0.4:6378?name=sessions' ghcr.io/koraitech/korai-probe:1Every 30 seconds the probe reads SLOWLOG GET from each server and sends the new entries to Korai over its own
connection. It works with self-hosted Redis and Valkey, Memorystore and ElastiCache. It never sends argument values,
client addresses or client names, and by default not the key either: a command arrives as its name, its duration
and its number of arguments. Keys can hold personal data or tokens, so KORAI_REDIS_SLOWLOG_KEYS=1 is needed to also
send the key as a pattern: only its structure stays, the namespace and a final word such as profile, and every
other part becomes ? (GET cart:91822 becomes GET cart:?, GET user:jane:profile becomes GET user:?:profile). The table names each server with its ?name=. Whether the probe could read each server shows on the
probe in Uptime checks › Private probes.
Without a probe, run the small reader korai-redis-slowlog.py next to your
collector instead. It needs only Python 3.9 or later and sends each entry to the collector as a log record (OTLP over
HTTP), with the same rules: only the name by default, and SLOWLOG_KEYS=1 adds the key as a pattern.
REDIS_ADDRS="cache.internal:6379,sessions.internal:6379" REDIS_PASSWORD="..." OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" OTEL_RESOURCE_ATTRIBUTES="deployment.environment=prod" python3 korai-redis-slowlog.pySet REDIS_TLS=1 for servers that need TLS (Memorystore with in-transit encryption) and REDIS_USERNAME for an ACL
user. In Kubernetes, run it as a sidecar of the collector, so that localhost:4318 reaches it. The collector needs
the OTLP receiver with HTTP enabled.
Monitors
Section titled “Monitors”Reliability › Monitors watches a signal every minute and raises an alert when it misbehaves. Press New monitor and choose What to watch: a Metric (or PromQL query), a Log count (matching lines per minute, in the same language as Logs), the Traces of a service (requests per minute, error rate or a latency percentile, optionally for one operation), the Browser (RUM) (page views, JS errors, poor LCP, INP or CLS, failed or slow API calls, read from the RUM history every five minutes), a CloudWatch metric, or one error issue (its occurrences per minute; Create alert on an issue in Errors fills this in for you). The chart under the form shows the last period and marks where it would alert or would warn.
When to alert has three kinds of condition:
| Condition | It alerts when |
|---|---|
| Threshold | the value goes above or below a critical level (and optionally a warning level) |
| Change | the value moves up, down or either by a percentage compared with 1 hour, 1 day or 1 week ago |
| Anomaly | the value leaves its normal band, learnt from the last days with a daily, weekly or no seasonality, at low, medium or high sensitivity |
CloudWatch reads a namespace and metric from your aws_* metrics, or from the CloudWatch records in your logs.
Pick a common one or write your own. With several instances it watches the worst of them (or the minimum, maximum or
average), and the alert names the instance. It is read every five minutes, about fifteen minutes behind. For example,
to know when a burstable EC2 or RDS instance (T family) is running out of CPU credits: CloudWatch, EC2 CPU credit
balance (or the RDS one), a threshold below 20 for a warning and 5 for an alert.
An anomaly monitor has an Engine. Korai (seasonal) learns the baseline itself. When your Korai team has enabled it, Korai MAD is a dedicated anomaly detector: pick how to aggregate the series (average or sum), and the monitor shows the detector’s state. While MAD is learning the metric (usually a few minutes) nothing is judged; if it cannot train with the history it read, Korai asks it again the next day. If MAD does not answer, the monitor keeps its last state instead of reporting no data. On each anomaly event, thumbs up marks a real anomaly (left out of the next baseline) and thumbs down not an anomaly.
More options sets the evaluation window, what to do with no data, Notify again while firing, a Cooldown (a trigger shortly after an episode ended reopens it instead of paging again), the severity and the channels (none checked: every general channel). From the list you can Mute 1 h or 4 h, Evaluate now, edit or delete a monitor, and filter by state. External detectors lets your own anomaly detector send anomalies to Korai with an ingest token that an admin creates, rotates or revokes here.
A monitor opened from an alert shows its chart at the moment the alert fired instead of the last 24 hours, and Open the logs, Open the traces or Open in Metrics keep that window. Click the time of any event under Events to see the chart at that moment; Day or Week goes back to the recent history.