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

Documentation for PR #797 - Opentelemetry Collector Data Flow Dashboard #2535

Closed
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
2 changes: 1 addition & 1 deletion content-modules/community
Copy link
Member

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

Copy link
Contributor Author

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.

2 changes: 1 addition & 1 deletion content-modules/opentelemetry-go
Submodule opentelemetry-go updated 147 files
2 changes: 1 addition & 1 deletion content-modules/opentelemetry-specification
105 changes: 105 additions & 0 deletions content/en/docs/demo/collector-data-flow-dashboard.md
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"OpenTelemetry Collector Data Flow" dashboard under brose icon on the left-hand
"OpenTelemetry Collector Data Flow" dashboard under browse icon on the left-hand

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.