35 Commits

Author SHA1 Message Date
JenTing Hsiao
40c1d2eacc ws-manager: avoid duplicate logs
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2023-01-09 10:50:48 +01:00
JenTing Hsiao
316dbdb52a ws-manager: add new reason out-of-space for workspace_stops_total metric
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2023-01-05 11:27:44 +01:00
JenTing Hsiao
bb96008cb6 Fix the metric workspace_starts_failure_total and workspace_stops_total
Increase the metric workspace_starts_failure_total when the workspace stops and
the pod's annotation "gitpod/never-ready" exist. It means the workspace pod never
went into the running state, probably because
- the workspace pod can't allocate to the workspace node
- content initialization failure
- the workspace pod is never ready

Increase the metric workspace_stop_total when the workspace stops and
the pod's annotation "gitpod/never-ready" does not exist. So, the metric
workspace_stop_total does not increase on the start failure.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2023-01-04 23:47:44 +01:00
Pavel Tumik
edbaaae0c5 [ws-manager] remove unneeded metric 2023-01-03 19:37:43 +01:00
utam0k
c40fcc8ae6 ws-manager: Prevent to record duplicated metric 2022-12-20 13:29:29 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Pavel Tumik
75a7e4fa41 [ws-manager] improve stop workspace metric 2022-12-05 03:37:15 -03:00
Pavel Tumik
807bc84009 [ws-manager] improve start workspace metric 2022-12-05 03:37:15 -03:00
JenTing Hsiao
d686ea9685 Add counter metrics to record error count
Add two metrics to record the `mount device failed` and `cannt mount volume`
error. So, we could know the frequency the error happened.

Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-11-03 10:57:07 +01:00
Pavel Tumik
07d80c8fa8 add support for aborting workspaces 2022-08-23 20:20:40 +02:00
JenTing Hsiao
347af9bff0 Add label to differentiate backup/restore total/failure is PVC or GCS
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-07-28 20:12:23 -03:00
Pavel Tumik
3f92a73ea8 [ws-manager] add metrics for unintentional workspace stop 2022-07-27 16:14:22 -03:00
ArthurSens
87a1e34f8e ws-manager: Replace backup/restore success with total metric
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-07-06 13:27:53 +05:30
JenTing Hsiao
3951854137 [ws-manager] Add workspace class label to PVC backup duration metric
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
JenTing Hsiao
a171e147ab [ws-manager] Add a metric of PVC restore duration time
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
JenTing Hsiao
ba4b27a386 [ws-manager] Skip error if the PVC resource already exists
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-13 18:50:22 +05:30
JenTing Hsiao
609d9b323e Add metrics to record backup success/failure count
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-06-06 23:30:16 +05:30
Christian Weichel
0f406c4468 [ws-manager] Add workspace class to metrics 2022-05-31 21:26:50 +05:30
JenTing Hsiao
5d22d4ae7d Add a metric to record volume snapshot time
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-05-30 22:14:48 +05:30
Pavel Tumik
f9c93c4468 [ws-manager] add metrics to track initialize and finalize of workspaces 2022-04-19 04:45:31 +05:30
Christian Weichel
c9d4e37444 [ws-manager] Provide ordering of status updates 2021-09-29 07:37:46 -03:00
ArthurSens
3e108e3821 Add 'type' label to workspace stop metric
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-08-30 02:57:28 -03:00
ArthurSens
4ac8ec46e5 Fix naming of activity metric
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-04-29 15:15:21 -03:00
Christian Weichel
65b97398f2 [ws-manager] Revert metric name to workspace_phase_total 2021-04-29 09:06:05 -03:00
Christian Weichel
7f5fe36356 [ws-manager] Add metric counting totakl open ports 2021-04-23 09:39:58 -03:00
Manuel Alejandro de Brito Fontes
53189d3fa6 [ws-manager] Lint code and cleanup protobuf 2021-03-16 07:35:57 -03:00
Manuel Alejandro de Brito Fontes
2b6a56bc40 Update go imports 2021-03-02 06:37:49 -03:00
Manuel Alejandro de Brito Fontes
08774bd177 [ws-manager] Switch to controller-runtime abstraction 2021-03-01 14:00:58 -03:00
ArthurSens
986bd94858 Reconfigure Prometheus buckets for workspace startup time histograms
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-02-08 10:10:41 -03:00
Christian Weichel
c913675274 [ws-manager] Provide subscription queue metric
A gauge vector reporting the fill levels of all subscriber queues.
2021-02-08 09:50:10 +01:00
Christian Weichel
0fd958c8da [ws-manager] Make compatible with Kubernetes v1.20.1 2021-01-11 15:25:05 +01:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Christian Weichel
2cd97bb049 [ws-manager] Follow Prometheus naming best practices 2020-12-01 15:48:45 +01:00
Sven Efftinge
7dd708aaa6 [ws-man] avoid 'fatal error: concurrent map read and map write' 2020-11-25 13:09:51 +01:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00