Available metrics
Debusine supports Prometheus monitoring using
the /api/1.0/open-metrics/ endpoint. By default this is available to
anyone who can access the instance, and will reveal information such as
valid scope names and queue sizes; administrators whose instances have
significant commercially-sensitive activity may wish to restrict public
access to that endpoint in their front-end load balancer configuration.
Note that the metric names below may have an additional suffix depending on
the metric type and the library being used to parse the raw metrics output:
counter metrics have a _total suffix, while histogram metrics have a
_bucket suffix.
Database metrics
The following metrics measure various kinds of objects in Debusine’s database:
Name |
Labels |
Type |
Description |
|---|---|---|---|
|
|
gauge |
number of artifacts of each category in each scope |
|
|
gauge |
number of assets of each category in each scope |
|
|
gauge |
number of collections of each category in each scope |
|
|
gauge |
configured maximum sizes of file stores |
|
|
gauge |
total sizes of file stores |
|
|
gauge |
number of groups in each scope; ephemeral groups will be garbage-collected when empty |
|
|
gauge |
number of tokens associated with users and workers |
|
|
gauge |
number of users, excluding the system user |
|
|
histogram |
number of users who have created a workflow in each scope over the last N days |
|
|
gauge |
number of user single-sign-on identities by issuer |
|
|
histogram |
number of single-sign-on identities by issuer for users who have created a workflow in each scope over the last N days |
|
|
gauge |
number of work requests broken down in various ways |
|
|
gauge |
number of workers broken down in various ways |
|
|
gauge |
time in seconds spent running tasks per worker pool |
|
|
gauge |
number of workflow templates for each task name in each scope |
|
|
gauge |
number of workspaces in each scope |
Operational metrics
Debusine exports many metrics provided by django-prometheus, which are
generally self-documented by HELP lines in the raw metrics output. Some
particularly useful ones are:
Name |
Labels |
Type |
Description |
|---|---|---|---|
|
histogram |
Request processing time (including middleware) |
|
|
|
counter |
Count of responses by method, status, and view |
Other operational metrics are provided by Debusine itself:
Name |
Labels |
Type |
Description |
|---|---|---|---|
|
|
gauge |
Active connections to the Debusine server websocket |
|
|
counter |
OpenID Connect authentication callbacks by issuer and whether the identity activation succeeded |
|
|
counter |
Total connections to the Debusine server websocket |
|
|
histogram |
Time in seconds that work requests spent waiting to start |
|
|
histogram |
Time in seconds that workflow orchestrators took to run |