mirror of https://github.com/coder/coder.git
chore: add oauth2 prometheus metrics for to documentation (#11534)
This commit is contained in:
parent
3f9da674c6
commit
89ab659114
|
@ -79,7 +79,7 @@ spec:
|
|||
<!-- Code generated by 'make docs/admin/prometheus.md'. DO NOT EDIT -->
|
||||
|
||||
| Name | Type | Description | Labels |
|
||||
| ----------------------------------------------------- | --------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||
| ------------------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||
| `agent_scripts_executed_total` | counter | Total number of scripts executed by the Coder agent. Includes cron scheduled scripts. | `agent_name` `success` `template_name` `username` `workspace_name` |
|
||||
| `coderd_agents_apps` | gauge | Agent applications with statuses. | `agent_name` `app_name` `health` `username` `workspace_name` |
|
||||
| `coderd_agents_connection_latencies_seconds` | gauge | Agent connection latencies in seconds. | `agent_name` `derp_region` `preferred` `username` `workspace_name` |
|
||||
|
@ -108,6 +108,12 @@ spec:
|
|||
| `coderd_license_limit_users` | gauge | The user seats limit based on the active Coder license. | |
|
||||
| `coderd_license_user_limit_enabled` | gauge | Returns 1 if the current license enforces the user limit. | |
|
||||
| `coderd_metrics_collector_agents_execution_seconds` | histogram | Histogram for duration of agents metrics collection in seconds. | |
|
||||
| `coderd_oauth2_external_requests_rate_limit_next_reset_unix` | gauge | Unix timestamp of the next interval | `name` `resource` |
|
||||
| `coderd_oauth2_external_requests_rate_limit_remaining` | gauge | The remaining number of allowed requests in this interval. | `name` `resource` |
|
||||
| `coderd_oauth2_external_requests_rate_limit_reset_in_seconds` | gauge | Seconds until the next interval | `name` `resource` |
|
||||
| `coderd_oauth2_external_requests_rate_limit_total` | gauge | The total number of allowed requests per interval. | `name` `resource` |
|
||||
| `coderd_oauth2_external_requests_rate_limit_used` | gauge | The number of requests made in this interval. | `name` `resource` |
|
||||
| `coderd_oauth2_external_requests_total` | counter | The total number of api calls made to external oauth2 providers. 'status_code' will be 0 if the request failed with no response. | `name` `source` `status_code` |
|
||||
| `coderd_provisionerd_job_timings_seconds` | histogram | The provisioner job time duration in seconds. | `provisioner` `status` |
|
||||
| `coderd_provisionerd_jobs_current` | gauge | The number of currently running provisioner jobs. | `provisioner` |
|
||||
| `coderd_workspace_builds_total` | counter | The number of workspaces started, updated, or deleted. | `action` `owner_email` `status` `template_name` `template_version` `workspace_name` |
|
||||
|
|
|
@ -1,3 +1,32 @@
|
|||
# HELP coderd_oauth2_external_requests_rate_limit_next_reset_unix Unix timestamp of the next interval
|
||||
# TYPE coderd_oauth2_external_requests_rate_limit_next_reset_unix gauge
|
||||
coderd_oauth2_external_requests_rate_limit_next_reset_unix{name="primary-github",resource="core"} 1.704835507e+09
|
||||
coderd_oauth2_external_requests_rate_limit_next_reset_unix{name="secondary-github",resource="core"} 1.704835507e+09
|
||||
# HELP coderd_oauth2_external_requests_rate_limit_remaining The remaining number of allowed requests in this interval.
|
||||
# TYPE coderd_oauth2_external_requests_rate_limit_remaining gauge
|
||||
coderd_oauth2_external_requests_rate_limit_remaining{name="primary-github",resource="core"} 4852
|
||||
coderd_oauth2_external_requests_rate_limit_remaining{name="secondary-github",resource="core"} 4867
|
||||
# HELP coderd_oauth2_external_requests_rate_limit_reset_in_seconds Seconds until the next interval
|
||||
# TYPE coderd_oauth2_external_requests_rate_limit_reset_in_seconds gauge
|
||||
coderd_oauth2_external_requests_rate_limit_reset_in_seconds{name="primary-github",resource="core"} 63.617162731
|
||||
coderd_oauth2_external_requests_rate_limit_reset_in_seconds{name="secondary-github",resource="core"} 121.82186601
|
||||
# HELP coderd_oauth2_external_requests_rate_limit_total The total number of allowed requests per interval.
|
||||
# TYPE coderd_oauth2_external_requests_rate_limit_total gauge
|
||||
coderd_oauth2_external_requests_rate_limit_total{name="primary-github",resource="core"} 5000
|
||||
coderd_oauth2_external_requests_rate_limit_total{name="secondary-github",resource="core"} 5000
|
||||
# HELP coderd_oauth2_external_requests_rate_limit_used The number of requests made in this interval.
|
||||
# TYPE coderd_oauth2_external_requests_rate_limit_used gauge
|
||||
coderd_oauth2_external_requests_rate_limit_used{name="primary-github",resource="core"} 148
|
||||
coderd_oauth2_external_requests_rate_limit_used{name="secondary-github",resource="core"} 133
|
||||
# HELP coderd_oauth2_external_requests_total The total number of api calls made to external oauth2 providers. 'status_code' will be 0 if the request failed with no response.
|
||||
# TYPE coderd_oauth2_external_requests_total counter
|
||||
coderd_oauth2_external_requests_total{name="primary-github",source="AppInstallations",status_code="200"} 12
|
||||
coderd_oauth2_external_requests_total{name="primary-github",source="Exchange",status_code="200"} 1
|
||||
coderd_oauth2_external_requests_total{name="primary-github",source="TokenSource",status_code="200"} 1
|
||||
coderd_oauth2_external_requests_total{name="primary-github",source="ValidateToken",status_code="200"} 16
|
||||
coderd_oauth2_external_requests_total{name="secondary-github",source="AppInstallations",status_code="403"} 4
|
||||
coderd_oauth2_external_requests_total{name="secondary-github",source="Exchange",status_code="200"} 2
|
||||
coderd_oauth2_external_requests_total{name="secondary-github",source="ValidateToken",status_code="200"} 5
|
||||
# HELP coderd_agents_apps Agent applications with statuses.
|
||||
# TYPE coderd_agents_apps gauge
|
||||
coderd_agents_apps{agent_name="main",app_name="code-server",health="healthy",username="admin",workspace_name="workspace-1"} 1
|
||||
|
|
Loading…
Reference in New Issue