Each metric has an OpenTelemetry name and a derived Prometheus name. For example, docx_editor.collab.room.load.duration becomes docx_editor_collab_room_load_duration_seconds. The tables list Prometheus names and OpenTelemetry label keys; Prometheus replaces dots in label keys with underscores.
Label
Applies to
Notes
docx_editor.version
Every editor metric
The editor package version, docx_editor_version in Prometheus. Server metrics omit it.
Documents opened or refused, by outcome, refusal code, engine reason, and part role.
docx_editor_document_open_duration_seconds
histogram
docx_editor.version
Time from the start of an open to the laid-out document.
docx_editor_document_saves_total
counter
outcome, code, docx_editor.version
Calls to save() that returned the document or failed, by outcome and failure code.
docx_editor_document_save_duration_seconds
histogram
docx_editor.version
Time from a save() call to the saved bytes, pending edits included. Successful saves only.
docx_editor_edits_total
counter
origin, docx_editor.version
Edits that changed the document, by origin: input, command, or automation. Refused edits are in docx_editor.edit.rejections, and edits by collaborators are not counted. Counted when a session summary is sent, up to a minute after the edit.
docx_editor_edit_rejections_total
counter
code, cause, origin, tracked, docx_editor.version
Edits, commands, and tracked changes refused, by public code and engine reason.
Editor sessions started and ended, by phase. An editor ends when it is destroyed or its page closes.
docx_editor_editor_session_duration_seconds
histogram
docx_editor.version
Time from the creation of an editor to its end, idle time included. Recorded when the session ends.
docx_editor_editor_active_time_seconds_total
counter
docx_editor.version
Seconds of use: time between key presses, pointer presses, and edits that are at most 30 seconds apart. Counted when a session summary is sent.
docx_editor_editor_interaction_duration_seconds
histogram
pages, docx_editor.version
Key presses and pointer presses on the pages, to the next frame on screen, by page count bucket. Bucket counts are exact; the sum is estimated from the bands.
docx_editor_editor_layout_duration_seconds
histogram
pages, docx_editor.version
Engine layout passes after edits and view changes, background work included, by page count bucket. Bucket counts are exact; the sum is estimated from the bands.
docx_editor_editor_paint_duration_seconds
histogram
pages, docx_editor.version
Engine paints of the pages, by page count bucket. Bucket counts are exact; the sum is estimated from the bands.