Files
wekan/docs/Features/Admin-Panel/Problems/Instrumentation.md
T
Lauri Ojansivu c66af0e134 Docs: Admin Panel / Problems (Files to Performance): what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
File status, Filesystem integrity, Impersonation Report, Instrumentation,
Large boards, Login problems, Migrations, Offices, Password length and
Performance now each say what the feature is, where to read more, how to use
it, how its numbers are calculated, how it is implemented, and link the
commits that built it.

Corrected from the code: the file status scan limits are 100,000 records per
collection and 250,000 versions, not 20,000; the snap's FerretDB default is
OpLog with polling as the fallback, not polling only; the Password length
table has 25 rows a page.

Thanks to xet7 !
2026-11-22 17:59:12 +02:00

5.5 KiB
Raw Blame History

Problems / Instrumentation

What it is

Live counters of what this WeKan server is doing, from Meteor 3.6's instrumentation events: how many DDP connections are open, and how often each method and publication is called, how often it fails, and how long it takes. It answers "which part of WeKan is busy or failing right now" without a separate monitoring tool. Only a site admin can see it.

Read more

How to use it

  1. Sign in as a site administrator and open Admin Panel → Problems → Instrumentation.
  2. Read the DDP connection line: active, opened and closed connections, and when the counters started.
  3. Above the table, one bar per area of WeKan - Cards, Boards, Lists, Login, People, Notifications, Attachments, Settings, Problems and the rest - gives the whole picture at a glance: beside each bar are the calls, the average duration and the errors.
  4. Click an area to show only its methods and publications in the table; click it again to show all.
  5. Type in the search box to filter the table by type and name. The table has 10 rows a page with the columns Type, Method or publication, Calls, Completed, Errors, Avg ms and Max ms.

The page refreshes every five seconds.

How the numbers are calculated

Per operation, in server/lib/instrumentationSummary.cjs:

  • Calls - +1 on each method.start or publication.start.
  • Completed - +1 on each method.end or publication.ready.
  • Errors - +1 on each method.error or publication.error.
  • Avg ms - the sum of the durations Meteor supplied on end, ready and error events, divided by how many had a duration, rounded to whole milliseconds. Empty when Meteor supplied none.
  • Max ms - the longest of those durations, rounded.
  • DDP connections - opened +1 and active +1 on ddp.connection.open; closed +1 and active -1 (never below 0) on ddp.connection.close.
  • At most 200 operation names are kept; a new name after that is not counted. Names are cut at 120 characters. The page's own getInstrumentationReport poll is not counted.
  • Rows are sorted by calls, most first.

Per area, in models/lib/instrumentationAreas.js (summarizeByArea):

  • Calls, completed and errors are the sums over the area's operations.
  • The average duration is weighted by completed calls: the sum of each operation's average × its completed count, divided by the completed count of the timed operations, rounded.
  • The bar's length is the area's calls divided by the busiest area's calls (share), shown as a percentage with at least 1 % so a small area still shows. Its red end is errors divided by calls (at most 100 %), shown with at least 4 % when there are any errors.
  • An area with no calls and no errors is not shown; areas are sorted by calls.

How it works in WeKan

Commits