Skip to content

Commit

Permalink
docs: add redirect to terraform debug example in investigating-rate-l…
Browse files Browse the repository at this point in the history
…imits.md (#161)

* Update investigating-rate-limits.md

* docs: add redirect to terraform debug example

Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>

---------

Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
Co-authored-by: Kim Oliver Drechsel <kim@drechsel.xyz>
  • Loading branch information
ThomasLandauer and kimdre authored Dec 9, 2024
1 parent d3908c4 commit b82a451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/guides/investigating-rate-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Hetzner DNS API has a default rate limit of 300 requests per minute. If you're g
read record: error getting record 3c21...75fb: API returned HTTP 429 Too Many Requests error: rate limit exceeded
```

2. You can view the ratelimit usage in the terraform logs by running terraform plan or apply with the `TF_LOG` environment variable set to `DEBUG`:
2. You can view the ratelimit usage in the terraform logs by running `terraform plan` or `apply` with the `TF_LOG` environment variable set to `DEBUG`. Since the output is probably too long for the terminal, you might want to redirect it to some file like this:
```bash
TF_LOG=DEBUG terraform apply
TF_LOG=DEBUG TF_LOG_PATH=tf_log_debug.log terraform plan
```
The http client will then log the entire http response including all headers. In the headers you will find rate limit details:

Expand Down
4 changes: 2 additions & 2 deletions templates/guides/investigating-rate-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Hetzner DNS API has a default rate limit of 300 requests per minute. If you're g
read record: error getting record 3c21...75fb: API returned HTTP 429 Too Many Requests error: rate limit exceeded
```

2. You can view the ratelimit usage in the terraform logs by running terraform plan or apply with the `TF_LOG` environment variable set to `DEBUG`:
2. You can view the ratelimit usage in the terraform logs by running `terraform plan` or `apply` with the `TF_LOG` environment variable set to `DEBUG`. Since the output is probably too long for the terminal, you might want to redirect it to some file like this:
```bash
TF_LOG=DEBUG terraform apply
TF_LOG=DEBUG TF_LOG_PATH=tf_log_debug.log terraform plan
```
The http client will then log the entire http response including all headers. In the headers you will find rate limit details:

Expand Down

0 comments on commit b82a451

Please sign in to comment.