Skip to content

Commit df82d86

Browse files
committed
resillienc excercises -spelling
1 parent cfb3638 commit df82d86

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

content/en/ninja-workshops/10-advanced-otel/20-gateway-setup/1-gateway-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Again, check if you in your [WORKSHOP]/2-gateway folder. Open the agent.yaml we
4040
- Add `batch` to the array list of the `processor:` section of all pipelines
4141

4242
{{% /notice %}}
43-
Again, validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)** As example here is the result for the `metrics` pipeline:
43+
Again, validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)** As example here is the result for the `metrics` pipeline:
4444

4545
![otelbin-g-2-2-metrics](../../images/gateway-2-2-metrics.png)
4646

content/en/ninja-workshops/10-advanced-otel/40-resillience/_index.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Let's add the extension part first:
5252
3. **Add** `directory:` **key**: under the `file_storage` extension and set it to a value of `"./checkpoint-folder"`
5353
4. **Add** `create_directory:` **key**: Set the Value to `true`.
5454
5. **Add** `timeout:` **key**: Set the value to `1s`.
55-
6. **Add** `compaction:` **key**:
56-
7. **Add `on_start:` key**: Under the `compaction:` section, Set the value to `true`
57-
8. **Add** `directory:` **key**: Set the value to `./checkpoint-folder`.
58-
9. **Add** `max_transaction_size:` **key**: Set it to a value of `65_536`
55+
6. **Add** `compaction:` **key** section.
56+
7. **Add** `on_start:` **key**: Under the `compaction:` section, set the value to ``true`.
57+
7. **Add** `directory:` **key**: Set the value to `./checkpoint-folder/tmp`.
58+
8. **Add** `max_transaction_size:` **key**: Set it to a value of `65_536`
5959

6060
{{% /notice%}}
6161

@@ -65,7 +65,9 @@ Let's add the extension part first:
6565
- `create_directory: true`: Ensures that the directory is created if it doesn’t already exist.
6666
- `timeout: 1s`: Specifies a timeout for file operations related to the checkpointing.
6767
- `compaction`: Ensures that old checkpoint data is compacted periodically.
68-
- `max_transaction_size` defines the size limit for checkpoint transactions before compaction occurs.
68+
- `on_start: true` : Determines whether the compaction process begins immediately when the OpenTelemetry Collector starts.
69+
- `directory:` `./checkpoint-folder/tmp`: Specifies the directory used for compaction (as a midstep).
70+
- `max_transaction_size` defines the size limit for checkpoint transactions before compaction occurs.
6971

7072
The next exercise is modifying the `otlphttp:` exporter where retries and queueing are configured.
7173

@@ -84,7 +86,7 @@ exporters:
8486
8587
1. **Add** `tls:` **key**: Place at the same indent level as `headers:`.
8688
2. **Add** `insecure:` **key**: Under the `tls:` key and set its value to `true`.
87-
3. **Add** `retry_on_failure:` **key**:
89+
3. **Add** `retry_on_failure:` **key**: Place at the same indent level as `headers:`.
8890
4. **Add** `enabled:` **key**: Under the `retry_on_failure:` key and set its value to `true`.
8991
5. **Add** `sending_queue:` **key**:
9092
6. **Add** `enabled:` **key**: Under the `sending_queue:` key and set its value to `true`.
@@ -102,3 +104,8 @@ exporters:
102104
- `queue_size: 10000`: The maximum size of the queue.
103105
- `storage: file_storage/checkpoint`: Specifies that the queue state will be backed up in the file system.
104106

107+
Again, validate the agent configuration using **[otelbin.io](https://www.otelbin.io/)** for spelling mistakes etc. Your `Logs:` pipeline should like this:
108+
109+
![logs from otelbin](../images/filelog-3-1-logs.png)
110+
111+
This setup ensures your OpenTelemetry Collector can handle network interruptions gracefully by storing telemetry data on disk and retrying failed transmissions. It combines checkpointing for recovery and queueing for efficient retries, making your pipeline more resilient and reliable. Now, let’s test this configuration!
Binary file not shown.

workshop/ninja/advanced-otel/2-gateway/agent-file-gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extensions:
55
timeout: 1s
66
compaction:
77
on_start: true
8-
directory: ./checkpoint-folder
8+
directory: ./checkpoint-folder/tmp
99
max_transaction_size: 65_536
1010
receivers:
1111
otlp:

0 commit comments

Comments
 (0)