diff --git a/docs/admin/index.md b/docs/admin/index.md index bb6a79a3ab1..f1e8a62d981 100644 --- a/docs/admin/index.md +++ b/docs/admin/index.md @@ -6,7 +6,7 @@ title: Administration These guides contain information on managing the Coder control plane and [authoring templates](../templates/index.md). -First time viewers looking to set up control plane access can start with the [configuration guide](./setup/index.md). +First-time administrators can start with [Configure control plane access](./setup/index.md). If you're a team lead looking to design environments for your developers, refer to our [templates guides](../templates/index.md). If you are a developer using Coder, we recommend the [user guides](../workspaces/index.md). diff --git a/docs/admin/integrations/index.md b/docs/admin/integrations/index.md index 9d739943eda..db0f9d556de 100644 --- a/docs/admin/integrations/index.md +++ b/docs/admin/integrations/index.md @@ -3,8 +3,8 @@ title: Integrations --- Coder is highly extensible and is not limited to the platforms outlined in these docs. -The control plane can be provisioned on any VM or container compute, and workspaces can include any Terraform resource. -See our [architecture diagram](../../install/plan/architecture.md) for more details. +You can run the control plane on any VM, container, or compute resource, and workspaces can include any Terraform resource. +For how the components fit together, refer to the [architecture diagram](../../install/plan/architecture.md). You can host your deployment on almost any infrastructure. To learn how, read our [installation guides](../../install/index.md). diff --git a/docs/admin/integrations/oauth2-provider/troubleshooting.md b/docs/admin/integrations/oauth2-provider/troubleshooting.md index 399fbf1e7ad..54138cf6bf7 100644 --- a/docs/admin/integrations/oauth2-provider/troubleshooting.md +++ b/docs/admin/integrations/oauth2-provider/troubleshooting.md @@ -10,7 +10,7 @@ This page collects the error conditions the OAuth2 provider returns, matched by ## OAuth2 endpoints return 404 The provider is off. -Set `CODER_OAUTH2_PROVIDER_ENABLE=true` and restart the server. +Set `CODER_OAUTH2_PROVIDER_ENABLE=true` and restart the control plane. Refer to [Enable OAuth2 Provider](./index.md#enable-oauth2-provider). ## "Invalid redirect_uri" diff --git a/docs/admin/monitoring/health-check.md b/docs/admin/monitoring/health-check.md index e29575da5eb..f839c7d5a22 100644 --- a/docs/admin/monitoring/health-check.md +++ b/docs/admin/monitoring/health-check.md @@ -224,7 +224,7 @@ Coder was unable to establish a WebSocket connection over its own Access URL. **Solution:** There are multiple possible causes of this problem: -1. Make sure Coder's configured Access URL can be reached from the server running Coder, using standard troubleshooting tools like `curl`: +1. From the control plane host, confirm that Coder's Access URL is reachable, for example with `curl`: ```sh curl -v "https://coder.company.com" @@ -345,7 +345,7 @@ While the replica is disconnected, it misses events, so features that depend on **Solution:** Coder tries to reconnect automatically, so this might be a transient issue. If it persists with the `postgres` backend, investigate the health of the database and the network path between Coder and the database. -If it persists with the `nats` backend, inspect the Coder server logs for NATS errors and restart the affected replica. +If it persists with the `nats` backend, inspect the `coderd` logs for NATS errors and restart the affected replica. ### EPS02 @@ -356,7 +356,7 @@ The embedded NATS server in the Coder replica isn't running. The replica can't send or receive pubsub events until the server runs again. **Solution:** -Inspect the Coder server logs for NATS errors, then restart the affected replica. +Inspect the `coderd` logs for NATS errors, then restart the affected replica. ### EUNKNOWN diff --git a/docs/admin/monitoring/index.md b/docs/admin/monitoring/index.md index 9b68a03fc40..f7c244daaa1 100644 --- a/docs/admin/monitoring/index.md +++ b/docs/admin/monitoring/index.md @@ -2,19 +2,20 @@ title: Monitor Coder --- -Learn about our the tools, techniques, and best practices to monitor your Coder deployment. +Coder exposes logs, metrics, health checks, connection logs, and notifications so you can monitor the control plane, provisioners, and workspaces with the tools you already use. +Start with the page that matches what you need to watch: -## Quick Start: Observability Helm Chart +- [Logs](./logs.md): how Coder services write logs to standard error and how to collect them. +- [Deployment metrics](./metrics.md): the Prometheus metrics Coder exposes and how to use them to monitor health. +- [Deployment health](./health-check.md): the health page for your control plane and its dependencies. +- [Connection logs](./connection-logs.md): SSH, app, and agent connections to your workspaces (Premium). +- [Trace workspace connections](./trace-connections.md): correlate client, `coderd`, and agent logs by session ID. +- [Notifications](./notifications/index.md): how Coder sends notifications for deployment events over email and webhooks, including Slack and Microsoft Teams. -Deploy Prometheus, Grafana, Alert Manager, and pre-built dashboards on your Kubernetes cluster to monitor the Coder control plane, provisioners, and workspaces. +## Observability Helm chart + +If you run Coder on Kubernetes, the Observability Helm chart deploys Prometheus, Grafana, Alertmanager, and pre-built dashboards that monitor the control plane, provisioners, and workspaces. ![Grafana Dashboard](../../images/admin/monitoring/grafana-dashboard.png) -Learn how to install & read the docs on the [Observability Helm Chart GitHub](https://github.com/coder/observability) - -## Table of Contents - -- [Logs](./logs.md): Learn how to access `coderd` logs, agent logs, and even how to expose Kubernetes pod scheduling logs. -- [Metrics](./metrics.md): Learn about the valuable metrics to measure on a Coder deployment, regardless of your monitoring stack. -- [Health Check](./health-check.md): Learn about the periodic health check and error codes that run on Coder deployments. -- [Connection Logs](./connection-logs.md): Monitor connections to workspaces. +To install the chart and run its dashboards, visit the [Observability Helm chart repository](https://github.com/coder/observability) on GitHub. diff --git a/docs/admin/monitoring/logs.md b/docs/admin/monitoring/logs.md index e366be9752b..94b660e6dd0 100644 --- a/docs/admin/monitoring/logs.md +++ b/docs/admin/monitoring/logs.md @@ -18,7 +18,7 @@ You can access these logs via `kubectl logs deployment/coder -n To disable human-readable logging, set `--log-human` (or `CODER_LOGGING_HUMAN`) to `/dev/null`. > If you set no JSON or Stackdriver log location, Coder then writes no logs. > Do not use an empty value to disable logging. -> If every log location is empty and [`--trace`](../../reference/cli/server/index.md#--trace) (`CODER_TRACE_ENABLE`) is off, the server exits with `no loggers provided, use /dev/null to disable logging`. +> If every log location is empty and [`--trace`](../../reference/cli/server/index.md#--trace) (`CODER_TRACE_ENABLE`) is off, `coderd` exits with `no loggers provided, use /dev/null to disable logging`. Events such as server errors, audit logs, user activities, and single sign-on (SSO) & OpenID Connect logs are all captured in the `coderd` logs. diff --git a/docs/admin/networking/index.md b/docs/admin/networking/index.md index 2bed729cdb1..64c8b52cf8a 100644 --- a/docs/admin/networking/index.md +++ b/docs/admin/networking/index.md @@ -11,7 +11,7 @@ Direct connections are as fast as connecting to the workspace outside of Coder. When Network Address Translation (NAT) traversal fails, connections are relayed through the control plane. All user-workspace connections are end-to-end encrypted. -[Tailscale's open source](https://tailscale.com) backs our websocket/HTTPS networking logic. +Connections between users and workspaces run on [Coder's fork](https://github.com/coder/tailscale) of the open-source [Tailscale](https://github.com/tailscale/tailscale) networking stack, which encrypts them with WireGuard and relays them over HTTPS and WebSockets when a direct connection isn't possible. ## Requirements diff --git a/docs/admin/networking/reverse-proxy-caddy.md b/docs/admin/networking/reverse-proxy-caddy.md index 2570a50e96a..18f07b44fc3 100644 --- a/docs/admin/networking/reverse-proxy-caddy.md +++ b/docs/admin/networking/reverse-proxy-caddy.md @@ -179,7 +179,7 @@ To use Caddy to generate TLS certificates, you'll need a domain name that resolv sudo ufw allow 80 sudo ufw allow 443 - # Deny direct access to Coder server + # Deny direct access to the control plane sudo ufw deny 3000 # Enable UncomplicatedFirewall diff --git a/docs/admin/networking/stun.md b/docs/admin/networking/stun.md index b640dc59636..1134d877d16 100644 --- a/docs/admin/networking/stun.md +++ b/docs/admin/networking/stun.md @@ -22,8 +22,8 @@ In order for the Coder client and agent to establish a direct connection with ea Once communication succeeds in one direction, we can inspect the source address of the received packet to determine the return address. > [!TIP] -> The below glosses over a lot of the complexity of traversing NATs. -> For a more in-depth technical explanation, see [How NAT traversal works (tailscale.com)](https://tailscale.com/blog/how-nat-traversal-works). +> The following description simplifies NAT traversal. +> For a more in-depth technical explanation, refer to [How NAT traversal works (tailscale.com)](https://tailscale.com/blog/how-nat-traversal-works). At a high level, STUN works like this: diff --git a/docs/admin/networking/workspace-proxies.md b/docs/admin/networking/workspace-proxies.md index dd28d8be0d8..7b0fbda542a 100644 --- a/docs/admin/networking/workspace-proxies.md +++ b/docs/admin/networking/workspace-proxies.md @@ -30,7 +30,7 @@ Workspace proxies can be used in the browser by navigating to the user `Account ## Step 1: Create the proxy Create the workspace proxy and make sure to save the returned authentication token for said proxy. -This is the token the workspace proxy will use to authenticate back to primary coderd. +This is the token the workspace proxy will use to authenticate back to the control plane. ```sh $ coder wsproxy create --name=newyork --display-name="USA East" --icon="/emojis/2194.png" diff --git a/docs/admin/setup/index.md b/docs/admin/setup/index.md index 158aaa7b45a..d74a3c3dcc8 100644 --- a/docs/admin/setup/index.md +++ b/docs/admin/setup/index.md @@ -2,12 +2,10 @@ title: Configure control plane access --- -The control plane's primary configuration is done via environment variables. -For a full list of the options, run `coder server --help` or see our [CLI documentation](../../reference/cli/server/index.md). - -> [!TIP] -> Need to look up an exact environment variable, CLI flag, or YAML key for a setting? -> See the [configuration reference](./configuration-reference.md) for a searchable list of every option. +You configure the control plane primarily with environment variables. +This page covers access URLs, listen addresses, TLS, the database, and outbound proxies. +To look up any other setting by its environment variable, CLI flag, or YAML key, refer to the [configuration reference](./configuration-reference.md). +You can also run `coder server --help` or read the [`coder server` CLI reference](../../reference/cli/server/index.md). ## Access URL @@ -153,7 +151,7 @@ External authentication can also be used to integrate with external services lik Refer to the [external authentication](../external-auth.md) section for more information. -## Up Next +## Next steps -- [Setup and manage templates](../../templates/index.md) -- [Setup external provisioners](../../install/operate/provisioners/index.md) +- [Set up and manage templates](../../templates/index.md) +- [Set up external provisioners](../../install/operate/provisioners/index.md) diff --git a/docs/admin/setup/telemetry.md b/docs/admin/setup/telemetry.md index 4d8399f8496..6a8004ab2a0 100644 --- a/docs/admin/setup/telemetry.md +++ b/docs/admin/setup/telemetry.md @@ -2,13 +2,18 @@ title: Telemetry --- -> [!NOTE] -> TL;DR: disable telemetry by setting CODER_TELEMETRY_ENABLE=false. - Coder collects telemetry from all installations by default. We believe our users should have the right to know what we collect, why we collect it, and how we use the data. -## What we collect + + +## Turn telemetry on or off + +You can turn telemetry on or off using either the `CODER_TELEMETRY_ENABLE=[true|false]` environment variable or the `--telemetry=[true|false]` command-line flag. + + + +## What telemetry we collect You can find a full list of the data we collect in our source code [here](../../../coderd/telemetry/telemetry.go). In particular, look at the struct types such as `Template` or `Workspace`. @@ -37,7 +42,9 @@ Workspace agent statistics include session counts keyed by normalized applicatio For start builds of workspaces that Agent Relay creates, we read the `agent_relay_*` parameters that Agent Relay sets. We report the agent provider, the attempt number, and the client platform, lowercased and cut to 15 characters. We also report SHA-256 hashes of the session ID and pool name. The hashes let us count sessions and pools, but they do not hide common pool names such as `default`. We do not collect other parameter values. -## Why we collect + + +## Why we collect telemetry Telemetry helps us understand which features are most valuable, what use cases to focus on, and which bugs to fix first. @@ -49,9 +56,3 @@ We want to wield some of that product development power to build self-hosted, op ## Security In the event we discover a critical security issue with Coder, we will use telemetry to identify affected installations and notify their administrators. - - - -## Turn telemetry on or off - -You can turn telemetry on or off using either the `CODER_TELEMETRY_ENABLE=[true|false]` environment variable or the `--telemetry=[true|false]` command-line flag. diff --git a/docs/admin/users/organizations-best-practices.md b/docs/admin/users/organizations-best-practices.md index 6ed353d2d78..067c78c8e5d 100644 --- a/docs/admin/users/organizations-best-practices.md +++ b/docs/admin/users/organizations-best-practices.md @@ -101,6 +101,6 @@ We’re interested in identifying new use cases for custom roles. Using ClickOps to onboard new organizations, set quotas, and single sign-on (SSO) sync can be cumbersome, especially if you want to "seed" organizations with provisioners and starter templates. -We suggest using the coderd Terraform provider to manage organizations at scale. +We suggest using the `coderd` Terraform provider to manage organizations at scale. Documentation and examples for the Organization and Group Sync resources is available at https://registry.terraform.io/providers/coder/coderd/latest/docs. Feature requests for additional functionality can be created at https://github.com/coder/terraform-provider-coderd/issues. diff --git a/docs/admin/users/password-auth.md b/docs/admin/users/password-auth.md index 03f77580a42..4d8578ba54a 100644 --- a/docs/admin/users/password-auth.md +++ b/docs/admin/users/password-auth.md @@ -14,8 +14,8 @@ Before you enable it, make sure at least one owner can sign in through your iden ## Restore the `Owner` user -If you remove the admin user account (or forget the password), you can run the [`coder server create-admin-user`](../../reference/cli/server/create-admin-user.md)command on your server. -If password authentication is disabled, unset `CODER_DISABLE_PASSWORD_AUTH` and restart the server first, or the new admin will not be able to sign in. +If you remove the admin user account (or forget the password), you can run the [`coder server create-admin-user`](../../reference/cli/server/create-admin-user.md) command. +If password authentication is disabled, unset `CODER_DISABLE_PASSWORD_AUTH` and restart the control plane first, or the new admin will not be able to sign in. > [!IMPORTANT] > You must run this command on the same machine running the control plane.