From 7dd34c9ffa35797d55e12d348792f38468f29d99 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 25 Oct 2022 14:10:26 +0100 Subject: [PATCH] update prometheus metrics for 1.36 (cherry picked from commit 31d58e3a07f3da215ad759754baffe893f70ffaf) --- admin/prometheus.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/prometheus.md b/admin/prometheus.md index ea04ebab1..48a4d89b4 100644 --- a/admin/prometheus.md +++ b/admin/prometheus.md @@ -44,6 +44,12 @@ Below is a list of the various metrics emitted by Coder's Prometheus endpoint: | `coderd_api_requests_processed_total` | `counter` | The total number of processed API requests | | `coderd_api_websocket_durations_ms` | `histogram` | Websocket duration distribution of requests in milliseconds | | `coderd_background_workspace_build_duration_s` | `histogram` | Duration distribution of workspace builds in seconds | +| `coderd_backgroundjob_completed_total` | `counter` | Total number of jobs completed since startup. | +| `coderd_backgroundjob_current_enqueued_jobs` | `gauge` | Current number of enqueued and not started background jobs. | +| `coderd_backgroundjob_enqueue_time_seconds` | `histogram` | Histogram of total time taken by job type to transition from Enqueue to Running. | +| `coderd_backgroundjob_enqueued_total` | `counter` | Total number of jobs enqueued. | +| `coderd_backgroundjob_execution_time_seconds` | `histogram` | Histogram of total time taken by job type to transition from Running to Completed. | +| `coderd_backgroundjob_started_total` | `counter` | Total number of jobs started. | | `coderd_db_sql_queries_executed_total` | `counter` | The total number of executed SQL queries | | `coderd_db_sql_query_latencies_ms` | `histogram` | Latency distribution of SQL queries in milliseconds | | `coderd_license_expires_at_unix` | `gauge` | Unix timestamp of the license expiry date. |