-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Documentation for PR #797 - Opentelemetry Collector Data Flow Dashboard #2535
Closed
devrimdemiroz
wants to merge
2
commits into
open-telemetry:main
from
devrimdemiroz:feature/otecol-data-flow-dashboard-docs
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule community
updated
3 files
+8 −5 | areas-of-interest.md | |
+1 −2 | community-members.md | |
+2 −2 | docs/how-meeting-recordings-upload-works.md |
Submodule opentelemetry-go
updated
147 files
Submodule opentelemetry-specification
updated
26 files
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,105 @@ | ||||||
# Collector Data Flow Dashboard | ||||||
|
||||||
Monitoring data flow through the OpenTelemetry Collector is crucial for several | ||||||
reasons. Gaining a macro-level perspective on incoming data, such as sample | ||||||
counts and cardinality, is essential for comprehending the collector's internal | ||||||
dynamics. However, when delving into the details, the interconnections can | ||||||
become complex. The Collector Data Flow Dashboard aims to demonstrate the | ||||||
capabilities of the OpenTelemetry demo application, offering a solid foundation | ||||||
for users to build upon. | ||||||
|
||||||
## Overview | ||||||
|
||||||
![](screenshots/otelcol-data-flow-overview.png) | ||||||
|
||||||
The diagram above provides an overview of the system components, showcasing the | ||||||
configuration derived from the OpenTelemetry Collector (otelcol) configuration | ||||||
file utilized by the OpenTelemetry demo application. Additionally, it highlights | ||||||
the observability data (traces and metrics) flow within the system. | ||||||
|
||||||
## Ingress/Egress Metrics | ||||||
|
||||||
![](screenshots/otelcol-data-flow-metrics.png) | ||||||
The metrics depicted in the diagram above are employed to monitor both egress | ||||||
and ingress data flows. These metrics are generated by the otelcol process, | ||||||
exported on port 8888, and subsequently scraped by Prometheus. The namespace | ||||||
associated with these metrics is "otelcol," and the job name is labeled as | ||||||
"otel." | ||||||
|
||||||
Labels serve as a valuable tool for identifying specific metric sets (such as | ||||||
exporter, receiver, or job), enabling differentiation among metric sets within | ||||||
the overall namespace. It is important to note that you will only encounter | ||||||
refused metrics if the memory limits, as defined in the memory delimiter | ||||||
processor, are exceeded. | ||||||
|
||||||
### Ingress Traces Pipeline | ||||||
|
||||||
- otelcol_receiver_accepted_spans | ||||||
- otelcol_receiver_refused_spans | ||||||
- by (receiver,transport) | ||||||
|
||||||
### Ingress Metrics Pipeline | ||||||
|
||||||
- otelcol_receiver_accepted_metric_points | ||||||
- otelcol_receiver_refused_metric_points | ||||||
- by (receiver,transport) | ||||||
|
||||||
### Processor | ||||||
|
||||||
Only batch processor is currently present in the demo application. And the | ||||||
processor is used by both traces and metrics pipelines. | ||||||
|
||||||
- otelcol_processor_batch_batch_send_size_sum | ||||||
|
||||||
### Egress Traces Pipeline | ||||||
|
||||||
- otelcol_exporter_sent_spans | ||||||
- otelcol_exporter_send_failed_spans | ||||||
- by (exporter) | ||||||
|
||||||
### Egress Metrics Pipeline | ||||||
|
||||||
- otelcol_exporter_sent_metric_points | ||||||
- otelcol_exporter_send_failed_metric_points | ||||||
- by (exporter) | ||||||
|
||||||
### Prometheus Scraping | ||||||
|
||||||
- scrape_samples_scraped | ||||||
- by (job) | ||||||
|
||||||
## Dashboard | ||||||
|
||||||
![](screenshots/otelcol-data-flow-dashboard.png) | ||||||
|
||||||
You can access the dashboard by navigating to the Grafana UI, selecting the | ||||||
"OpenTelemetry Collector Data Flow" dashboard under brose icon on the left-hand | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. corrected in #2538 |
||||||
side of the screen. | ||||||
|
||||||
Dashboard mainly consists of four sections: | ||||||
|
||||||
1. Process Metrics | ||||||
2. Traces Pipeline | ||||||
3. Metrics Pipeline | ||||||
4. Prometheus Scraping | ||||||
|
||||||
Sections 2,3 and 4 represents over all the data flow using the metrics mentioned | ||||||
above. Additionally, export ratio is calculated for each pipeline to understand | ||||||
the data flow. | ||||||
|
||||||
### Export Ratio | ||||||
|
||||||
Export ratio is basically the ratio between receiver and exporter metrics. You | ||||||
can notice over the dashboard screenshot above that the export ratio on metrics | ||||||
is way too hight than the received metrics. This is because the demo application | ||||||
is configured to generate spanmetrics which is a processor that generates | ||||||
metrics from spans inside collector as illustrated in overview diagram. | ||||||
|
||||||
### Process Metrics | ||||||
|
||||||
![](screenshots/otelcol-dashbord-process-metrics.png) | ||||||
|
||||||
Very limited but informative process metrics are added to dashboard. For | ||||||
example, you might observe more than one instance of otelcol running on the | ||||||
system during restarts or similar. This can be useful for understanding spikes | ||||||
on dataflow. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that changes to the content-modules are not checked in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create from scratch, got it. Thanks.