|
| 1 | +# Monitoring ADOT collector health |
| 2 | + |
| 3 | +The OpenTelemetry collector produces metrics to monitor the entire pipeline. In the [EKS monitoring module](https://aws-observability.github.io/terraform-aws-observability-accelerator/eks/), we have enabled those metrics by default with the AWS Distro for OpenTelemetry (ADOT) collector. You get a Grafana dashboard named `OpenTelemetry Health Collector`. This dashboard shows useful telemetry information about the ADOT collector itself which can be helpful when you want to troubleshoot any issues with the collector or understand how much resources the collector is consuming. |
| 4 | + |
| 5 | +!!!note |
| 6 | + The dashboard and metrics used are not specific to Amazon EKS, but applicable to any environment running an OpenTelemetry collector. |
| 7 | + |
| 8 | +Below diagram shows an example data flow and the components in an ADOT collector: |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +In this dashboard, there are five sections. Each section has [metrics](https://aws-observability.github.io/observability-best-practices/guides/operational/adot-at-scale/operating-adot-collector/#collecting-health-metrics-from-the-collector) relevant to the various [components](https://opentelemetry.io/docs/demo/collector-data-flow-dashboard/#data-flow-overview) of the AWS Distro for OpenTelemetry (ADOT) collector : |
| 13 | + |
| 14 | +### Receivers |
| 15 | +Shows the receiver’s accepted and refused rate/count of spans and metric points that are pushed into the telemetry pipeline. |
| 16 | + |
| 17 | +### Processors |
| 18 | +Shows the accepted and refused rate/count of spans and metric points pushed into next component in the pipeline. The batch metrics can help to understand how often metrics are sent to exporter and the batch size. |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +### Exporters |
| 23 | +Shows the exporter’s accepted and refused rate/count of spans and metric points that are pushed to any of the destinations. It also shows the size and capacity of the retry queue. These metrics can be used to understand if the collector is having issues in sending trace or metric data to the destination configured. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +### Collectors |
| 28 | +Shows the collector’s operational metrics (Memory, CPU, uptime). This can be used to understand how much resources the collector is consuming. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +### Data Flow |
| 33 | +Shows the metrics and spans data flow through the collector’s components. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +!!!note |
| 38 | + To read more about the metrics used, and the dashboard use, visit the upstream documentation [here](https://opentelemetry.io/docs/demo/collector-data-flow-dashboard/). |
| 39 | + |
| 40 | +## Deploy instructions |
| 41 | + |
| 42 | +As this is enabled by default in the EKS monitoring module, visit [this example’s instructions](https://aws-observability.github.io/terraform-aws-observability-accelerator/eks/#prerequisites) which will provide the ADOT collector health dashboard after deployment |
| 43 | + |
| 44 | +## Disable ADOT health monitoring |
| 45 | + |
| 46 | +You can disable ADOT collector health metrics by setting the [variable](https://github.com/aws-observability/terraform-aws-observability-accelerator/blob/main/modules/eks-monitoring/variables.tf) enable_adotcollector_metrics to false. |
| 47 | + |
| 48 | +``` |
| 49 | +variable "enable_adotcollector_metrics" { |
| 50 | + description = "Enables collection of ADOT collector metrics" |
| 51 | + type = bool |
| 52 | + default = true |
| 53 | +} |
| 54 | +``` |
0 commit comments