The Universe: every app from above¶
The Universe page shows your whole world of apps on one map: every app, the services it runs, the databases and caches it uses, what calls what, and what the internet reaches. Where the Services page lists each service, the Universe shows how they fit together.
No setup is needed: the map is made from what rendimiento already knows.
What is on the map¶
The map is a model village, seen from a hill at an angle:
- Barrios are the raised plates: groups of apps (see Barrios below). From afar you see only the barrios and the big roads between them, so a cluster with many apps stays readable.
- Pueblos are the apps inside a barrio. Each one is a cluster of whitewashed houses with a band (guardapolvo) in its barrio's color: more houses for more services, a well when it runs a database, a clay jar when it runs a cache. With Deployed another way on, apps from ArgoCD, Helm or
kubectl, add-ons and calls outside the cluster show up too, in the Outskirts. Cluster internals (ingress, cert-manager, monitoring…) are hidden unless an app calls them or you turn them on. - The ring on the ground around a pueblo or a house is its health: green when its latest uptime checks passed and its calls are fine, red when a check failed or 5% or more of its calls fail, amber when it is slow, gray when nothing was checked or measured.
- Roads are connections: from the Internet's arch to every service with a public address, and between apps. A chevron on each road points from the caller to the callee.
Inside a pueblo, each house is a service, with its language on a badge (JS, Py, Jv, Go); a tall house is a job or worker that only calls others. Calls from other apps and from the internet come in through the arch, and calls to other apps leave by signposts named after them.
The rest is there for life and means nothing: laurels with their trunks whitewashed, iron benches facing the kiosco, a fountain, flower beds of cempasúchil, the presidencia municipal with its portales and a clock tower that tells the real time, and people strolling round the plaza, half one way and half the other, as in the old paseo. Between the pueblos of a barrio grow more laurels, and a barrio with room to spare gets a little plaza of its own. With movement off, the people and the fountain hold still.
Where the roads come from¶
| Road | Source | Example |
|---|---|---|
| declared | a needs: entry in the caller's rendimiento.yaml |
needs: [postgres], needs: [{service: api}] |
| found in the environment | an environment variable of the caller that points at the service (the same detection as the services catalog) | API_URL=http://api.wellness.svc.cluster.local |
| public address | an Ingress routed to the service, from the Internet's arch | https://wellness.example.com |
| seen in traces | a call measured by the collector that nobody declared | a call to api.openweathermap.org |
A road nobody has measured is a dashed footpath; a measured one is paved, with traffic on it (see below). The panel says how each road is known. Values read from secrets are not seen, so a connection whose address lives only in a secret shows up only when it is declared with needs: or measured. Declaring needs makes the map complete.
Barrios¶
Every app lands in one barrio:
- Its own, when its
rendimiento.yamlsays so:barrio: Pagos(letters, digits, spaces and dashes, up to 40; accents are fine). Use it for a team or a domain. - Otherwise, the barrio of the apps it talks to most: apps that call each other end up together, named after the biggest of them (stockpulse's barrio). Measured traffic counts more than a declared connection, so the busiest neighbours win.
- Apps that call no other app go to the centre.
- What rendimiento does not deploy (add-ons, what was deployed another way, calls outside the cluster) is in the outskirts.
Using it¶
- Three levels. The region shows the barrios; tap one to come closer. In a barrio, tap a pueblo to see what comes in and what goes out in the panel; tap it twice, or Go into the pueblo, to go inside. Inside the pueblo, tap a house, the well or a road. Esc goes up a level, and the path above the map (Region › Town centre › wellness) jumps back to any of them. The place is kept in the address (
?barrio=centre&pueblo=wellness), so a view can be bookmarked or shared. - Tap a road to see what goes along it: calls per minute, failures, p50 and p95 with a chart over the period, how it is known, and buttons to go to either end. A road between barrios lists the calls it is made of. Roads take a tap a finger's width away.
- Zoom with the mouse wheel or a pinch, and drag to move around; the +, − and ⤢ buttons zoom in, out, and back to the whole level.
- 2.5D or 3D. The switch at the map's top left draws the same village flat at an angle (2.5D, the default) or in 3D. In 3D, drag with the right mouse button or two fingers to turn and tilt it, or turn it a corner at a time with ⟲ and ⟳; everything else works the same (levels, taps, the panel, the address). Roads between barrios rise as arches over the land, so they do not cross the barrios in between. The choice is kept on this device. 3D needs WebGL; on a browser without it, the map stays in 2.5D and says so.
- Go to an app jumps straight to an app by name.
- The panel reads like a market board: every barrio, pueblo and service with its calls per minute, a small trend over the period and the change (▲▼) from its start to its end; Needs attention lists what is failing or slow. Open app goes to the app's page; Open in Services goes to the service's entry in the catalog.
- A service's moments. Tap an observed service and the panel also lists what it does, from its traces: its own moments (what the observa libraries mark with
tramo, and the agent's own work), the routes it serves (GET /api/moments) and the calls and queries it makes (SELECT wellness), each with calls per minute, failures, p95 and a trend. Tap one to see its latency over the period. - A service's recent requests. Below its moments, the panel lists the requests through that service the traces service kept, newest first: whether it failed, was slow or is in the sample, its duration and when. Only the failed ones narrows the list. Tap one to follow it step by step.
- Refresh rebuilds the catalog from the cluster right away. Otherwise the page reloads every minute and gets the catalog there is at once: when it is older than 30 seconds, a new one is read behind it for the next look (one at a time). A cluster slow to answer, during an update for example, does not hold the map up: what runs there and parts of the wall show as grey placeholders until it answers, and the page asks again every few seconds.
The wall¶
On a cluster, the map also shows the boundary between organizations as a wall around your organization's barrios:
- An adobe wall with a line of teja on top when the boundary is on; mojoneras, boundary stones, when it is off: the land is yours, but anyone walks in.
- Zaguanes along its side are what it lets in: the ingress controller (public traffic), rendimiento (its release and uptime checks), and each namespace or address range listed in the settings.
- A red tranca along its top is a namespace that calls one of your apps from outside (its workloads point at the app's service in their environment): stopped with the boundary on, would be stopped with it off. rendimiento sees no traffic, so something that calls an app without saying so in its environment is not drawn.
- A low stone fence around each pueblo the boundary covers; a broken red one around an app it leaves out: a
sharedNamespaceapp, or one with a pod on a node whose network does not enforce policies. Mark such a node once,kubectl label node <node> rendimiento.ai/network-policy=no, and its apps show outside. - Yellow postigos in a fence are services with
lan:, open to the local network. - A xoloitzcuintle lies by the first gate: asleep when nothing is stopped, up and barking when there is a tranca. With movement off, it holds still.
Tap the wall, a zaguán or a tranca for the same in words. An administrator of the platform's organization can Let it in from a tranca, which adds the namespace to the boundary's list (Configuration). Each app's Overview says the same for that app, and Environment → Platform settings counts the apps inside and lists those outside.
Latency on every road¶
With tracing on, each road also carries what was measured over the Period chosen at the top (15 minutes, an hour, 24 hours): calls per minute, the share that failed, and how long they took (p50, half were faster; p95, the slowest 5%), each with its trend across the period. Roads get wider with more calls, turn red when 5% or more fail and amber when the slowest 5% take half a second or more. Fireflies (by night) or confetti (by day) run along measured roads from the caller to the callee: more of them for more calls, faster for quicker calls. Turn movement off in the top bar and they hold still.
Calls seen only in traces (nobody declared them) get roads of their own: a call to a service no needs: mentions, a database, or an API outside the cluster, grouped under Outside the cluster in the outskirts.
Turning it on¶
- Install the OpenTelemetry Collector add-on (Add-ons). It receives traces and writes the numbers, the service graph, to the metrics store; with an
otlphttpexporter torendimiento-traces, it also sends every span to the traces service. Set its remote-write URL to your VictoriaMetrics or Prometheus. Health checks (Kubernetes' probes,kube-probe/…, and rendimiento's uptime checks,rendimiento-uptime/…) are dropped first, so they do not draw a line from Internet to every service. - On the platform, set
TELEMETRY_ENDPOINTto the collector andMETRICS_URLto the metrics store (Settings). - In an app's
rendimiento.yaml, addobserve: true(orobserve: trueon one service). The next deploy adds tracing.
What each service gets:
language |
What rendimiento adds |
|---|---|
java |
the OpenTelemetry Java agent, loaded with JAVA_TOOL_OPTIONS |
node |
the OpenTelemetry Node agent, loaded with NODE_OPTIONS (kept after the app's own options) |
python |
the OpenTelemetry Python agent, on PYTHONPATH |
go, others, ready-made images |
only the OTEL_* variables, for an OpenTelemetry SDK in the code |
Every observed service is named app/service (OTEL_SERVICE_NAME), which is how a measured road finds its houses. The agent is copied into the pod by a small init container; it adds memory (the Java agent the most, around 100 MB) and some start-up time, so turn it on where you want to see. A quarter of the traces are kept (TELEMETRY_SAMPLE_RATIO), which is plenty for averages.
Python on Alpine
The Python agent is built for glibc. A service on an Alpine (musl) image may fail to load it: use a Debian-based image, or set observe: false on that service.
A Go service is still measured from the other side: calls to it from an observed service are timed by the caller.
Following one request¶
A road says how a service does on average; a request's waterfall says where one request spent its time. Open it from a service's Recent requests: every step (span) of the request in call order, each under the one that made it, with a bar for when it ran within the request and its duration. Colors follow the service, so the hops between services show; a step that failed is red. Tap a step to see what it did (served a request, made a call, its own moment), when it started, its status message, its attributes (the route, the query, the status code) and its events (an exception with its stack, a flag the observa libraries recorded).
Requests are kept by the traces service (rendimiento-traces, ROLE=traces). The collector sends it every span; it waits 20 seconds for a request's spans to arrive and then keeps:
- every request where a step failed;
- every request that took
TRACE_SLOWor more (1 second); TRACE_SAMPLEof the rest (one in ten), chosen by the request's ID, so a request is kept or dropped whole. Health checks (/health,/healthz,/api/health,/livez,/readyz,/ping) are left out of the sample; they are kept only when they fail or are slow.
They go to Postgres, one partition per day, and a day is dropped whole after TRACE_RETENTION_DAYS (7). Only what the services sample reaches the collector (TELEMETRY_SAMPLE_RATIO, a quarter), so the traces service sees a quarter of the requests and keeps the interesting ones among them. Set the ratio to 1 to see every failure.
To add the moments only the code knows (a payment, a report) and feature flags to the traces, use the libraries for Node, Python and Java.