Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix formatting for apps log_destination #1240

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 58 additions & 10 deletions docs/data-sources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@ A `service` can contain:
- `metrics` - The metrics that the component is scaled on.
- `cpu` - Settings for scaling the component based on CPU utilization.
- `percent` - The average target CPU utilization for the component.
* `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.

A `static_site` can contain:

Expand Down Expand Up @@ -160,6 +176,22 @@ A `worker` can contain:
- `value` - The value of the environment variable.
- `scope` - The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
- `type` - The type of the environment variable, `GENERAL` or `SECRET`.
* `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.

A `job` can contain:

Expand Down Expand Up @@ -199,6 +231,22 @@ A `job` can contain:
- `value` - The value of the environment variable.
- `scope` - The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
- `type` - The type of the environment variable, `GENERAL` or `SECRET`.
* `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.

A `function` component can contain:

Expand Down Expand Up @@ -242,19 +290,19 @@ A `function` component can contain:
* `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is \"logs\".
-`cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.


A `database` can contain:
Expand Down
70 changes: 46 additions & 24 deletions docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ resource "digitalocean_app" "mono-repo-example" {
```

### Log Destination Example with Opensearch
```

```hcl
resource "digitalocean_app" "golang-sample" {
spec {
name = "golang-sample"
Expand All @@ -171,7 +172,7 @@ resource "digitalocean_app" "golang-sample" {
open_search {
endpoint = "https://something:1234"
basic_auth {
user = "user"
user = "user"
password = "hi"
}
}
Expand Down Expand Up @@ -295,12 +296,19 @@ A `service` can contain:
- `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to `doadmin` when `cluster_name` is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.
- `autoscaling` - Configuration for automatically scaling this component based on metrics.
- `min_instance_count` - The minimum amount of instances for this component. Must be less than max_instance_count.
- `max_instance_count` - The maximum amount of instances for this component. Must be more than min_instance_count.
Expand Down Expand Up @@ -383,12 +391,19 @@ A `worker` can contain:
- `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to `doadmin` when `cluster_name` is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.

A `job` can contain:

Expand Down Expand Up @@ -438,12 +453,19 @@ A `job` can contain:
- `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to `doadmin` when `cluster_name` is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.

A `function` component can contain:

Expand Down Expand Up @@ -478,19 +500,19 @@ A `function` component can contain:
- `log_destination` - Describes a log forwarding destination.
- `name` - Name of the log destination. Minimum length: 2. Maximum length: 42.
- `papertrail` - Papertrail configuration.
- `endpoint` - Papertrail syslog endpoint.
- `endpoint` - Papertrail syslog endpoint.
- `datadog` - Datadog configuration.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `endpoint` - Datadog HTTP log intake endpoint.
- `api_key` - Datadog API key.
- `logtail` - Logtail configuration.
- `token` - Logtail token.
- `token` - Logtail token.
- `opensearch` - OpenSearch configuration
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to doadmin when cluster_name is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is \"logs\".
-`cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.
- `endpoint` - OpenSearch API Endpoint. Only HTTPS is supported. Format: https://<host>:<port>.
- `basic_auth` - OpenSearch basic auth
- `user` - Username to authenticate with. Only required when endpoint is set. Defaults to `doadmin` when `cluster_name` is set.
- `password` - Password for user defined in User. Is required when endpoint is set. Cannot be set if using a DigitalOcean DBaaS OpenSearch cluster.
- `index_name` - The index name to use for the logs. If not set, the default index name is `logs`.
- `cluster_name` - The name of a DigitalOcean DBaaS OpenSearch cluster to use as a log forwarding destination. Cannot be specified if endpoint is also specified.


A `database` can contain:
Expand Down
Loading