docs: IA reorganization (#5838)

* docs: IA reorganization

* docs: Updates

* docs: Updates

* docs: Fix links

* docs: Updates

* docs: Fix a typo

* docs: Fix client agent topic

* docs: Update Client Agent nav

* docs: Fix conflict

* docs: Fix a typo in Client Agent docs (#5853)

* docs: Fix client agent topic

* docs: Updates

* docs: Updates

* docs: Updates

* docs: Updates

* docs: Fixes get started and operations links

* docs: Update nav

* docs: Partials

* docs: Unix partials

* docs: Worker partials

* docs: Updates

* docs: Update workers and targets

* docs: Updates

* docs: Updates

* docs: Fixes link

* docs: Updates after sync review

* docs: Updates from review feedback

* docs: Move worker filter examples

* docs: Fix links

* docs: Updates for filters based on working session

* docs: Fixes broken links

* docs: Add links to other filter topics

* docs: Update list intro

* docs: Adds link

* docs: Fixes redirects

* docs: Fixes redirects

* docs: Deleted mysql page from TOC

* docs: Add versioned redirect

* docs: Adds versioned redirects

* docs: Adds versioned redirects

* docs: Update redirects

* docs: Update redirects

* docs: Redirect fixes

* docs: Update redirect format

* docs: Fix a typo

* docs: Fixes redirects

* docs: Fixes redirect

* docs: Adds links out to client agent troubleshooting

* uses /etc/boundary.d/ as recommended installation directory (#6003)

* docs: Updates legacy io links

* docs: Fixes redirects

* docs: Fix redirect

* docs: Restoring deleted file

---------

Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
This commit is contained in:
Dan HeathandRobin Beck authored and GitHub committed 2025-09-03 15:45:38 -04:00
1 parent 21fce7c5eb
commit 5ce6515156
253 files changed
+7897 -5673

No files matched your search

@@ -0,0 +1,22 @@
---
layout: docs
page_title: Controller/worker - events - common sink parameters
description: |-
The common sink parameters for all sink types.
---
# Common sink parameters
@include '/configuration-reference/events/common-sink-intro.mdx'
## `audit_config` parameters
@include '/configuration-reference/events/common-audit_config-parameters.mdx'
### `audit_filter_overrides` parameters
@include '/configuration-reference/events/common-audit_filter_overrides-parameters.mdx'
## `audit_config` examples
@include '/configuration-reference/events/common-audit_config-examples.mdx'
@@ -0,0 +1,14 @@
---
layout: docs
page_title: Controller/worker - events
description: |-
The events stanza configures events-specific parameters.
---
# `events` stanza
@include '/configuration-reference/events/events-stanza-intro.mdx'
## Default events stanza
@include '/configuration-reference/events/default-events-stanza.mdx'
@@ -0,0 +1,18 @@
---
layout: docs
page_title: Controller/worker - events - file sink - configuration
description: |-
The file sink configures Boundary to send events to a file.
---
# `file` sink
@include '/configuration-reference/events/file-sink-intro.mdx'
## Common parameters
These parameters are shared across all sink types: [common sink parameters](/boundary/docs/monitor/events/common)
## `file` parameters
@include '/configuration-reference/events/file-parameters.mdx'
@@ -0,0 +1,94 @@
---
layout: docs
page_title: Filtering - events
description: >-
Learn how to filter audit, observation, system, and telemetry events to find information written to any event sinks you configured.
---
# Filter events
This page describes how to filter events written to Boundary event sinks.
Refer to [Filtering and listing resources](/boundary/docs/filtering) for more information about Boundary's filter syntax and best practices.
A variety of event types (error, observation,
system, etc) are emitted from Boundary. Boundary events can be emitted in
several formats including [cloudevents](https://github.com/cloudevents/spec) and
[hclog](https://github.com/hashicorp/go-hclog), and can be encoded as text and
json.
Boundary allows you to configure any number of sinks where these events will be
written. When configuring an event sink, you can specify [common sink
parameters](/boundary/docs/monitor/events/common) which include both
`allow_filters` and `deny_filters` which use the standard [filter
syntax](/boundary/docs/filtering) used elsewhere in Boundary.
Example events encoded as cloudevents-text. The first event is a system event
and the second event is an observation event.
```json
{
"id": "DU7u227Jhc",
"source": "https://hashicorp.com/boundary/dev-controller/boundary-dev",
"specversion": "1.0",
"type": "system",
"data": {
"version": "v0.1",
"op": "worker.(Worker).createClientConn",
"data": {
"address": "127.0.0.1:9201",
"msg": "connected to controller"
}
},
"datacontentype": "text/plain",
"time": "2021-08-05T18:00:05.303435-04:00"
}
{
"id": "s5ESg6CckX",
"source": "https://hashicorp.com/boundary/dev-controller/boundary-dev",
"specversion": "1.0",
"type": "observation",
"data": {
"latency-ms": 202.995176,
"request_info": {
"id": "gtraceid_WiLnGzc2UHmNAYlcQ0sK",
"method": "POST",
"path": "/v1/auth-methods/ampw_1234567890:authenticate"
},
"start": "2021-08-05T18:00:34.032333-04:00",
"status": 200,
"stop": "2021-08-05T18:00:34.235335-04:00",
"version": "v0.1"
},
"datacontentype": "text/plain",
"time": "2021-08-05T18:00:34.235357-04:00"
}
```
To filter an event sink which was configured for every event type to
only include the above events, use the following sink configuration:
```
sink "stderr" = {
name = "all-events"
description = "All events sent to stderr"
event_types = ["*"]
format = "cloudevents-text"
allow_filters = [
"\"/data/request_info/path\" contains \":authenticate\"",
"\"/data/op\" contains \".createClientConn\"",
]
# note: deny_filters are also supported.
}
```
When running `boundary dev` the example allow filter can be given via:
```bash
boundary dev \
-event-allow-filter '"/data/request_info/path" contains ":authenticate"' \
-event-allow-filter '"/data/op" contains ".createClientConn"'
```
Double quotes are part of the filter syntax; when using the CLI, it is likely
easier to surround the filter with single quotes than to deal with escaping
double quotes.
~> **Note:** Both `-event-allow-filter` and `-event-deny-filter` command flags are
supported for the `boundary dev` command.
@@ -0,0 +1,18 @@
---
layout: docs
page_title: Controller - events - stderr sink - configuration
description: |-
The stderr sink configures Boundary to send events to a stderr.
---
# `stderr` sink
@include '/configuration-reference/events/stderr-intro.mdx'
## Common parameters
These parameters are shared across all sink types: [common sink parameters](/boundary/docs/monitor/events/common)
## `stderr` parameters
@include '/configuration-reference/events/stderr-parameters.mdx'
+133
View File
@@ -0,0 +1,133 @@
---
layout: docs
page_title: Boundary health endpoints
description: >-
Learn about using health endpoints to verify controller and worker server status. Check their health using wget. View an example response and configuration.
---
# Boundary health endpoints
Boundary provides health monitoring through the `/health` path using a listener with the `"ops"` purpose. By default, a listener with that purpose runs on port `9203`. See the [example configuration](#example-configuration) section for an example listener stanza in a `config.hcl` file.
## Requirements
To enable the controller health endpoint, any Boundary instance must be started with a controller. That is, a `controller` block and a `purpose = "api"`
listener must be defined in Boundary's configuration file. Additionally, a `purpose = "ops"` listener must also be defined in Boundary's configuration file. Under these conditions, the `ops` server (which hosts the controller health api) will be exposed.
## Shutdown grace period
Optionally, when the controller health endpoint is enabled, you can configure the controller health response to `503 Service Unavailable` upon receiving a shutdown signal, and wait a configurable amount of time before starting the shutdown process.
This feature supports load balancing by reducing the risk of an outgoing Boundary instance causing disruption to incoming requests.
In this state, Boundary is still capable of processing requests as normal, but will report as unhealthy through the controller health endpoint. In load-balanced environments, this would cause this "unhealthy" instance to be removed from the pool of instances eligible to handle requests, reducing the likelihood that it will receive a request to handle during shutdown.
This feature is disabled by default, even if the controller health endpoint is enabled. You can enable it by defining `graceful_shutdown_wait_duration` in the `controller` block of Boundary's configuration file. The value should be set to a string that is parseable by [ParseDuration](https://pkg.go.dev/time#ParseDuration).
## API
The controller health service introduces a single read-only endpoint:
| Status | Description |
|--------------|----------------------------------------------------------------|
| `200` | `GET /health` returns HTTP status 200 OK if the controller's api gRPC Server is up |
| `5xx` | `GET /health` returns HTTP status `5XX` or request timeout if unhealthy |
| `503` | `GET /health` returns HTTP status `503 Service Unavailable` status if the controller is shutting down |
All responses return empty bodies. `GET /health` does not support any input.
## Check the health endpoint using `wget`
The Boundary Docker image includes `wget`. You can use it to check the health endpoint. Enterprise and Community edition users can check the health of controllers and workers. HCP Boundary users can check the health of their self-managed workers.
Use the following command to check a worker's status to determine if it is healthy:
```shell-session
$ wget -q -O - http://localhost:9203/health?worker_info=1 | grep -c 'READY'
```
- `-q` - Prints the response instead of saving it to a file.
- `-0` - Allows Boundary to pass the worker's URL.
If the command prints 1 to `stdout` or exits with exit code 0, it means the worker is healthy. If the exit code is greater than 0, the worker is unhealthy.
You can also use the following command without `grep -c 'READY'` to print a more verbose response that includes the worker's state, active session count, and connection state:
```shell-session
$ wget -q -O - http://localhost:9203/health?worker_info=1
```
## Example response
When you check the health endpoint using `wget`, Boundary returns a response with the following worker information:
```shell-session
$ wget -q -O - http://localhost:9203/health?worker_info=1 | grep -c 'READY'
{"worker_process_info":{"state":"active", "active_session_count":0, "upstream_connection_state":"READY"}}
```
When you check the health endpoint using `curl`, Boundary returns a response with the following worker information:
```shell-session
$ curl "worker:9403/health?worker_info=1"
{
"worker_process_info":{
"state":"active",
"active_session_count":0,
"upstream_connection_state":"READY"
}
}
```
The response contains the following fields:
- `state` - The operational state of the worker. Possible worker states include active, shutdown, and unknown.
- `active_session_count` - The number of active sessions on the worker.
- `upstream_connection_state` - The connection state of the worker. This value indicates whether the worker can connect to an upstream address or connection. It can be any of the following states:
- `CONNECTING` - The channel is trying to make a connection and is waiting for name resolution or the connection establishment.
- `READY` - The channel has successfully established a connection, and any attempts to communicate have succeeded.
- `TRANSIENT_FAILURE` - The channel suffered a transient failure such as a time out or socket error.
A channel in this state will switch to the `CONNECTING` state and try to establish a connection.
- `IDLE` - The channel is not attempting to create a connection because there are no calls.
- `SHUTDOWN` - The channel is shutting down.
Any new calls fail immediately.
Pending calls may continue running until Boundary cancels them.
## Example configuration
Health checks are available for a controller defined with a `purpose = "ops"` listener stanza. For details on what fields are allowed in this stanza, refer to the documentation about [TCP Listener](/boundary/docs/monitor/listeners/tcp).
An example listener stanza:
```hcl
controller {
name = "boundary-controller"
database {
url = "postgresql://<username>:<password>@10.0.0.1:5432/<database_name>"
}
}
listener "tcp" {
purpose = "api"
tls_disable = true
}
listener "tcp" {
purpose = "ops"
tls_disable = true
}
```
To enable a shutdown grace period, update the `controller` block with a defined wait duration:
```hcl
controller {
name = "boundary-controller"
database {
url = "env://BOUNDARY_PG_URL"
}
graceful_shutdown_wait_duration = "10s"
}
```
A complete example can be found under the [Controller configuration](/boundary/docs/configuration/controller#complete-configuration-example) docs.
+56
View File
@@ -0,0 +1,56 @@
---
layout: docs
page_title: Monitor Boundary
description: >-
Discover resources to help you learn more about maintaining and operating Boundary, including information about metrics and health.
---
# Monitor Boundary
Visibility into various components of Boundary plays an important role in
ensuring the health of its controllers and workers.
You can export metrics for controllers
and workers and then configure them to be collected by Prometheus. Metrics
provide insight into the current state of a Boundary deployment by enabling the
diagnosis of deployed controllers and workers. Enabling metrics assists in the
detection and mitigation of anomalies in a deployment.
These docs describe the available metrics and the naming and labeling standards
used.
Additionally, the health of controllers can be monitored using the
`/health` endpoint. The health endpoint is enabled by defining a listener in
Boundary's configuration file, and a health response may be configured to add a
shutdown grace period process.
You can also configure Boundary to monitor events.
You can choose to monitor audit, observation, system, and telemetry events.
Boundary supports both file and stderr sinks for events and you can send events to multiple sinks.
Listeners let you configure the addresses and ports on which Boundary responds to requests.
You can configure TCP and Unix listeners.
Boundary also supports custom response headers for any requests made on controllers.
You can define headers based on the status code that is returned.
## Tutorials
To learn how to configure event filtering and sinks, complete the [Event filtering and sink configuration](/boundary/tutorials/self-managed-deployment/event-logging) tutorial.
To learn how to configure metrics collection, complete the [Visualize metrics with Prometheus](/boundary/tutorials/self-managed-deployment/prometheus-metrics) tutorial.
## More information
Refer to the following topics for the parameters you use to configure the addresses and ports on which Boundary responds to requests:
- [Listeners](/boundary/docs/monitor/listeners)
- [TCP listeners](/boundary/docs/monitor/listeners/tcp)
- [Unix listeners](/boundary/docs/monitor/listeners/unix)
Refer to the following topics for more information on the various ways to monitor Boundary:
- [Monitor metrics](/boundary/docs/monitor/metrics)
- [Monitor health](/boundary/docs/monitor/health)
- [Monitor events](/boundary/docs/monitor/events)
- [Common sink parameters](/boundary/docs/monitor/events/common)
- [File sink](/boundary/docs/monitor/events/file)
- [Stderr sink](/boundary//docs/monitor/events/stderr)
@@ -0,0 +1,17 @@
---
layout: docs
page_title: Listener configuration
description: >-
Learn about TCP and Unix listener configuration settings. Understand where to change the default addresses and ports on which Boundary responds to requests.
---
# `listener` stanza
The `listener` stanza configures the addresses and ports on which Boundary will
respond to requests. At this time, there are two listener types:
[TCP](/boundary/docs/monitor/listeners/tcp) and [Unix](/boundary/docs/monitor/listeners/unix).
## `listener` purpose
@include '/configuration-reference/listeners/listener-purpose.mdx'
@@ -0,0 +1,55 @@
---
layout: docs
page_title: TCP listener configuration
description: >-
Learn about using the TCP listener on a TCP address and port, and view configurable parameters. Understand custom response headers. View example configurations.
---
# `tcp` listener
@include '/configuration-reference/listeners/tcp-intro.mdx'
## Listener's custom response headers
@include '/configuration-reference/listeners/tcp-custom-response-headers.mdx'
## `tcp` listener parameters
Refer to the following sections for `tcp` listener parameters.
### General
@include '/configuration-reference/listeners/tcp-general-parameters.mdx'
### `custom_api_response_headers` parameters
@include '/configuration-reference/listeners/tcp-custom-api-response-headers.mdx'
### `custom_ui_response_headers` parameters
@include '/configuration-reference/listeners/tcp-custom-ui-response-headers.mdx'
### TLS
@include '/configuration-reference/listeners/tcp-tls.mdx'
<!-- Not enabled yet
### `telemetry` parameters
@include '/configuration-reference/listeners/tcp-telemetry.mdx' !-->
## `tcp` listener examples
Refer to the following sections for examples of `tcp` listeners.
### Configure TLS
@include '/configuration-reference/listeners/tcp-configure-tls.mdx'
### Configure custom http response headers
@include '/configuration-reference/listeners/tcp-configure-custom-http-response-headers.mdx'
### Listen on mulitple interfaces
@include '/configuration-reference/listeners/tcp-listen-on-mulitple-interfaces.mdx'
@@ -0,0 +1,45 @@
---
layout: docs
page_title: Unix domain socket listener configuration
description: >-
Learn about using the Unix listener on a specified Unix domain socket, and view configurable parameters. View example Unix listener configurations.
---
# `unix` listener
@include '/configuration-reference/listeners/unix-intro.mdx'
## `unix` listener parameters
Refer to the following sections for the supported `unix` listener parameters.
### General
@include '/configuration-reference/listeners/unix-general-parameters.mdx'
### TLS
@include '/configuration-reference/listeners/unix-tls-parameters.mdx'
<!-- Not enabled yet
### `telemetry` parameters
@include '/configuration-reference/listeners/unix-telemetry.mdx'
!-->
## `unix` listener examples
Refer to the following sections for examples of `unix` listeners.
### Configure TLS
@include '/configuration-reference/listeners/unix-configure-tls.mdx'
### Listen on multiple interfaces
@include '/configuration-reference/listeners/unix-listen-on-multiple-interfaces.mdx'
[golang-tls]: https://golang.org/src/crypto/tls/cipher_suites.go
[api-addr]: /boundary/docs/configuration#api_addr
[cluster-addr]: /boundary/docs/configuration#cluster_addr
+103
View File
@@ -0,0 +1,103 @@
---
layout: docs
page_title: Boundary metrics
description: >-
Learn about using a metrics listener to monitor your Boundary components. View the available controller and worker metrics, and an example configuration.
---
# Boundary metrics
Boundary provides metrics through the `/metrics` path using a listener with the
`"ops"` purpose. By default, a listener with that purpose runs on port `9203`.
See the [example configuration](#example-configuration) section for an example
listener stanza in a `config.hcl` file.
Metrics are important for understanding what is happening in a Boundary
deployment, enabling diagnoses of deployed controllers and workers. The exported
metrics grant greater visibility into the various components of a running
Boundary deployment through Prometheus.
The metrics uses the [OpenMetric
exposition](https://prometheus.io/docs/instrumenting/exposition_formats/#openmetrics-text-format)
format which can be read by
[Prometheus](https://prometheus.io/docs/introduction/overview/).
## Controller
The following table lists the current names and descriptions of metrics provided
by controllers.
| Name | Description |
|---------------------------------------------------------------|-----------------------------------------------|
| `boundary_controller_api_http_request_duration_seconds` | Histogram of latencies for HTTP requests. |
| `boundary_controller_api_http_request_size_bytes` | Histogram of request sizes for HTTP requests. |
| `boundary_controller_api_http_response_size_bytes` | Histogram of response sizes for HTTP requests. |
| `boundary_controller_api_ratelimiter_quota_storage_capacity` | A gauge of storage capacity for API rate limiting quotas. |
| `boundary_controller_api_ratelimiter_quota_storage_usage` | A gauge of storage usage for API rate limiting quotas. |
| `boundary_controller_cluster_grpc_request_duration_seconds` | Histogram of latencies for requests made to the gRPC service running on the cluster listener. |
## Worker
The following table lists the current names and descriptions of metrics provided
by workers.
| Name | Description |
|---------------------------------------------------------------|-----------------------------------------------|
| `boundary_worker_proxy_http_write_header_duration_seconds` | Histogram of time elapsed after the TLS connection is established to when the first http header is written back from the server. |
| `boundary_worker_proxy_websocket_active_connections` | A gauge of the current count of open proxy connections on the worker. |
| `boundary_worker_proxy_websocket_received_bytes_total` | Count of received bytes sent over all proxy connections handled by the worker. |
| `boundary_worker_proxy_websocket_sent_bytes_total` | Count of sent bytes sent over all proxy connections handled by the worker. |
## Other
The following table lists the current miscellaneous metrics provided by Boundary.
| Name | Description |
|---------------------------------------------------------------|-----------------------------------------------|
| `boundary_build_info` | A gauge set to 1 with label values detailing the current Go version, git revision, and Boundary version. |
## Metric labels
Each metric uses labels to help organize and narrow its scope so that users can
filter for different characteristics, allowing more flexible analysis of the
measurements collected.
### Metrics for HTTP requests include the following labels:
| Label | Description |
|--------------|----------------------------------------------------------------|
| `code` | The HTTP status code of the request (e.g., “200”, “400”, etc.). |
| `path` | The path, excluding query parameters, associated with the request. The value for this label replaces resource IDs with "{id}" (for example, `/v1/groups/{id}` is a possible value for this label). Any unexpected paths receive the value "unknown." |
| `method` | The name of the method on the HTTP request. For example "GET", “POST”, “DELETE”. |
### Metrics for gRPC requests include the following labels:
| Label | Description |
|-----------------|-----------------------------------------------------------------|
| `grpc_method` | The name of the method on the grpc service (e.g., `GetGroup`). |
| `grpc_service` | The proto service name including the package (e.g., `controller.api.services.v1.GroupService`). |
| `grpc_code` | The grpc [status code](https://github.com/grpc/grpc-go/blob/master/codes/codes.go) in human-readable format. For example, `OK`, `IllegalArgument`, `Unknown`. |
## Example configuration
Defining a listener stanza in the config file is sufficient for enabling metrics
reporting in Boundary. For details on what fields are allowed in this stanza,
refer to the documentation about [TCP
listener](/boundary/docs/monitor/listeners/tcp).
An example listener stanza:
```hcl
listener "tcp" {
purpose = "ops"
tls_disable = true
}
```
## Tutorial
Refer to the [Prometheus
Metrics](/boundary/tutorials/oss-configuration/prometheus-metrics)
tutorial for a step-by-step introduction to metrics.