-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
80 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
content/en/ninja-workshops/10-advanced-otel/20-filexporter/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: Configuring a File exporter | ||
linkTitle: 2. File Exporter | ||
weight: 2 | ||
--- | ||
### Different between Debug and FileExporter | ||
|
||
To capture more than just debug output on the screen, we also want to generate output during the export phase of the pipeline. For this, we'll add a **File Exporter** to write OTLP data to files for comparison. | ||
|
||
The difference between the OpenTelemetry **debug exporter** and the **file exporter** lies in their purpose and output destination: | ||
|
||
| Feature | Debug Exporter | File Exporter | | ||
|-----------------------|----------------------------------|--------------------------------| | ||
| **Output Location** | Console/Log | File on disk | | ||
| **Purpose** | Real-time debugging | Persistent offline analysis | | ||
| **Best for** | Quick inspection during testing | Temporary storage and sharing | | ||
| **Production Use** | No | Rare, but possible | | ||
| **Persistence** | No | Yes | | ||
|
||
In summary, the **debug exporter** is great for real-time, in-development troubleshooting, while the **file exporter** is better suited for storing telemetry data locally for later use. | ||
|
||
Let's configure and add the `FileExporter`: | ||
|
||
{{% notice title="Exercise" style="green" icon="running" %}} | ||
|
||
- **Configuring a `file` exporter**: Add the following under the `exporters` section of your `agent.yaml`: | ||
|
||
```yaml | ||
file: # Exporter Type | ||
path: "./agent.out" # Path where data will be saved in OTLP json format | ||
append: false # Overwrite the file each time | ||
``` | ||
- **Update the Pipelines Section**: Add the `file` exporter to the `metrics`, `traces` and `logs` pipelines (leave debug as the first in the array) | ||
|
||
```yaml | ||
#traces: | ||
metrics: # Metrics Pipeline | ||
receivers: [otlp] # Array of Metric Receivers | ||
processors: # Array of Metric Processors | ||
- memory_limiter # Handles memory limits for this Pipeline | ||
exporters: [debug, file] # Array of Metric Exporters | ||
#logs: | ||
``` | ||
|
||
{{% /notice %}} |
47 changes: 3 additions & 44 deletions
47
...ced-otel/10-agent-setup/2-fileexporter.md → ...-advanced-otel/20-filexporter/validate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dvanced-otel/10-agent-setup/3-metadata.md → ...0-advanced-otel/30-metadata/3-metadata.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ops/10-advanced-otel/30-filelog/_index.md → ...ops/10-advanced-otel/40-filelog/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...-advanced-otel/20-gateway-setup/_index.md → ...ops/10-advanced-otel/50-gateway/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../10-advanced-otel/40-resilience/_index.md → .../10-advanced-otel/60-resilience/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...advanced-otel/50-dropping-spans/_index.md → ...advanced-otel/70-dropping-spans/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...advanced-otel/60-sensitive-data/_index.md → ...advanced-otel/80-sensitive-data/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...advanced-otel/70-transform-data/_index.md → ...advanced-otel/90-transform-data/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ops/10-advanced-otel/80-routing/_index.md → ...ops/10-advanced-otel/95-routing/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...hops/10-advanced-otel/90-end.md/_index.md → ...hops/10-advanced-otel/99-end.md/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
--- | ||
title: Wrap-up | ||
linkTitle: 90. wrap-up | ||
time: 1 minutes | ||
weight: 9 | ||
linkTitle: 11. Wrap-up | ||
weight: 11 | ||
--- | ||
|
||
 |