mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add Prometheus metrics for license warnings and errors (#21749)
Fixes: coder/internal#767 Adds two new Prometheus metrics for license health monitoring: - `coderd_license_warnings` - count of active license warnings - `coderd_license_errors` - count of active license errors Metrics endpoint after startup of a deployment with license enabled: ``` ... # HELP coderd_license_errors The number of active license errors. # TYPE coderd_license_errors gauge coderd_license_errors 0 ... # HELP coderd_license_warnings The number of active license warnings. # TYPE coderd_license_warnings gauge coderd_license_warnings 0 ... ```
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
{
|
||||
"coderd_license_active_users": 4,
|
||||
"coderd_license_limit_users": 7,
|
||||
"coderd_license_user_limit_enabled": 1
|
||||
"coderd_license_user_limit_enabled": 1,
|
||||
"coderd_license_warnings": 0,
|
||||
"coderd_license_errors": 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user