dash-obskitpy
Updated for 1.0
The dash described here is now the console (an Angular app); incidents were renamed from tickets, and the portal API gained tokens, runs and CI/CD. See Migrating to 1.0. The concepts on this page still apply.
dash-obskitpy is obskitpy's own dashboard: light, to the point and Kibana-free. It runs as an
nginx container that serves a static page (plain HTML, CSS and JavaScript) and talks to Elasticsearch
through a read-only proxy.
The dash screens are currently in Brazilian Portuguese (as are the CLI messages), so the screenshots and the control names below appear in Portuguese.
Choosing where to view
You decide in obskitpy init, through the menu or the --local flag:
--local |
What starts | When to use it |
|---|---|---|
kibana (default without a terminal) |
Elasticsearch, Collector, Kibana | Explore in depth, build your own panels and free-form queries. |
dash-obskitpy |
Elasticsearch, Collector, dash | Day to day: see errors, timings and runs right away, using less memory and starting faster. |
both |
Everything | The dash for a quick look and Kibana for deep investigation. The dash gets a "Kibana ↗" shortcut. |
obskitpy init --local dash-obskitpy
obskitpy up
obskitpy open # opens http://localhost:8600
Changed your mind? obskitpy init --force --local both recreates the configuration (the data in Elasticsearch stays).
Several projects, one stack
Each automation is a project (the service name in obskitpy.setup("name")). Several projects can use the same
stack: in a new project's obskitpy init, the wizard looks for obskitpy stacks that are already running and asks
"Do you want to add this automation to it?". If you say yes, nothing new starts: the project just gets an .env pointing at the existing
stack, and the dash starts listing it.
At the top of the dash, the project selector (next to the logo) switches what you are looking at. The list has every project
that has sent data or was added, and your choice is remembered. The address also keeps the project
(#overview?service=test-b), so you can share the link.
cd another-automation
obskitpy init # "Found a stack... add it? [1] Add [2] Create a separate one"
obskitpy init --join # the same, without questions (uses the stack it found)
obskitpy downin a project that uses another project's stack does not bring anything down (other projects depend on it). To bring it down, rundownin the folder of the project that created the stack.- In Kibana each project gets its own dashboard (
<project>-observability) in the same instance. - Two projects cannot have the same name in the same stack; the wizard asks for another name.
Period, refresh and Realtime
All of this is at the top of the page, and the dash remembers your choice.
| Control | What it does |
|---|---|
| Period | How far back to show. Shortcuts (5 min, 15 min, 1 h, 6 h, 24 h, 7 d) or custom: type the number and choose seconds, minutes, hours or days (e.g. last 90 seconds, or 36 hours). |
| Refresh | How often the screen refreshes: shortcuts (1 s, 5 s, 10 s, 30 s, 1 min, 5 min) or custom in seconds, minutes or hours. You can turn auto-refresh off (manual mode); the ⟳ button refreshes right away. |
| Realtime | The shortcut for when you need to see things right now. |
Realtime
One click on Realtime (or the R key) turns on live mode: a window of the last 5 minutes, refreshing every second, the red LIVE badge at the top and, in the Logs tab, new lines flash green as they arrive. When you turn it off, the dash goes back to the period and refresh you had before (or you adjust the period yourself while live).
- Open already live:
obskitpy open --realtime(or the addresshttp://localhost:8600/#logs?realtime). - Detail open: if you open a log's detail, refreshing pauses so the row does not disappear ("⏸ paused"). Close the detail to go back live.
- Latency: obskitpy sends the data every 1 s and the Collector delivers it to Elasticsearch every 1 s, so
a log appears on screen within a few seconds. Tune it with
obskitpy.setup(..., flush_interval_ms=...). - Hidden tab: the browser pauses refreshing when the tab is not visible.
When to use it
Realtime is for following a robot that is running right now, debugging a run or checking whether a deploy broke something. To look at the day or the week, use longer periods and calmer refreshing.
What the dash shows
Overview
Counters (logs, errors, warnings, runs, runs with errors, average duration), logs by severity over
time, errors by type and origin (file:function:line) and operations by average duration.
Click an error to open the logs already filtered.
Logs
The 100 most recent records with a level filter (ERROR, WARN, INFO, DEBUG) and a text search on the message.
Paste a trace_id into the search to see only the logs of that run. Click a row to open the attributes,
the stack trace and the See full trace button.
Traces
The recent runs (root spans) and, when you click one, the waterfall: each span in hierarchy order, with the duration bar on the timeline and failures in red.
The address keeps the trace (#traces/<trace_id>), so you can share the link with anyone using the same machine.
Metrics
Choose any metric created with obskitpy.meter(...); the chart sums the values over time, split by the
status attribute when there is one (success and failure, for example).
How it works
browser ──▶ nginx :8600 ──▶ / static page (dash/)
└──▶ /es/... proxy ──▶ Elasticsearch (only _search, _count and _field_caps)
- No backend of its own: the page runs the aggregation queries straight against Elasticsearch.
nginx.confallows only_search,_countand_field_caps; any other/es/route answers 403.- The port is published only on
127.0.0.1, like the rest of the stack.
Customizing
The files live in observability/dash/ and are yours (version them in git): index.html, style.css, app.js
and config.js (which holds the service name). Edit freely; nginx serves the folder as is, so you just
reload the page. To get the newest dash that ships with the package (keeping yours as .bak):
obskitpy dash update.
Which one to choose?
Just starting out, or only want to know whether the robot is OK? Use dash-obskitpy. Need to cross data, build new visualizations or keep versioned dashboards? Use Kibana (see Dashboards).