1
0
mirror of synced 2025-12-25 02:09:19 -05:00

📝 OpenTelemetry integration instructions (#31211)

This commit is contained in:
Hippo
2023-10-17 19:35:22 +02:00
committed by GitHub
parent 16622adaf9
commit cd04ce04cd

View File

@@ -6,7 +6,7 @@ Airbyte offers you various ways to monitor your ELT pipelines. These options ran
Here's a quick overview:
* Connection Logging: All Airbyte instances provide extensive logs for each connector, giving detailed reports on the data synchronization process. This is available across all Airbyte offerings.
* [Airbyte Datadog Integration](#airbyte-datadog-integration): Airbyte customers can leverage our integration with Datadog. This lets you monitor and analyze your data pipelines right within your Datadog dashboards at no additional cost.
* Airbyte OpenTelemetry (OTEL) Integration: Coming soon, this will allow you to push metrics to your self-hosted monitoring solution using OpenTelemetry.
* [Airbyte OpenTelemetry (OTEL) Integration](#airbyte-opentelemetry-integration): This allows you to push metrics to your self-hosted monitoring solution using OpenTelemetry.
Please browse the sections below for more details on each option and how to set it up.
@@ -21,7 +21,7 @@ only for Airbyte Enterprise customers in the future.
![Datadog's Airbyte Integration Dashboard](assets/DatadogAirbyteIntegration_OutOfTheBox_Dashboard.png)
Airbyte's new integration with Datadog brings the convenience of monitoring and analyzing your Airbyte data pipelines directly within your Datadog dashboards.
Airbyte's new integration with Datadog brings the convenience of monitoring and analyzing your Airbyte data pipelines directly within your Datadog dashboards.
This integration brings forth new `airbyte.*` metrics along with new dashboards. The list of metrics is found [here](https://docs.datadoghq.com/integrations/airbyte/#data-collected).
### Setup Instructions
@@ -29,7 +29,7 @@ This integration brings forth new `airbyte.*` metrics along with new dashboards.
Setting up this integration for Airbyte instances deployed with Docker involves five straightforward steps:
1. **Set Datadog Airbyte Config:** Create or configure the `datadog.yaml` file with the contents below:
1. **Set Datadog Airbyte Config**: Create or configure the `datadog.yaml` file with the contents below:
```yaml
dogstatsd_mapper_profiles:
@@ -142,4 +142,77 @@ DD_DOGSTATSD_PORT=8125
5. **Re-deploy Airbyte and the Datadog Agent**: With the updated configurations, you're ready to deploy your Airbyte application by running `docker compose up`.
## Airbyte OpenTelemetry Integration
### Docker Compose Setup Instructions
Setting up this integration for Airbyte instances deployed with Docker Compose involves four straightforward steps:
1. **Deploy an OpenTelemetry Collector**: Follow the official [Docker Compose Getting Started documentation](https://opentelemetry.io/docs/collector/getting-started/#docker-compose).
```yaml
otel-collector:
image: otel/opentelemetry-collector-contrib
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension
```
2. **Update Docker Compose Configuration**: Modify your `docker-compose.yaml` file in the Airbyte repository to include the `metrics-reporter` container. This submits Airbyte metrics to the OpenTelemetry collector:
```yaml
metric-reporter:
image: airbyte/metrics-reporter:${VERSION}
container_name: metric-reporter
networks:
- airbyte_internal
environment:
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_URL=${DATABASE_URL}
- DATABASE_USER=${DATABASE_USER}
- METRIC_CLIENT=${METRIC_CLIENT}
- OTEL_COLLECTOR_ENDPOINT=${OTEL_COLLECTOR_ENDPOINT}
```
3. **Set Environment Variables**: Amend your `.env` file with the correct values needed by `docker-compose.yaml`:
```yaml
PUBLISH_METRICS=true
METRIC_CLIENT=otel
OTEL_COLLECTOR_ENDPOINT=http://otel-collector:4317
```
4. **Re-deploy Airbyte**: With the updated configurations, you're ready to deploy your Airbyte application by running `docker compose up`.
### Helm Chart Setup Instructions
Setting up this integration for Airbyte instances deployed with the helm chart involves three straightforward steps:
1. **Deploy an OpenTelemetry Collector**: Follow the official [Kubernetes Getting Started documentation](https://opentelemetry.io/docs/collector/getting-started/#kubernetes) to deploy a collector in your kubernetes cluster.
2. **Update the chart values**: Modify your `values.yaml` file in the Airbyte repository to include the `metrics-reporter` container. This submits Airbyte metrics to the OpenTelemetry collector:
```yaml
global:
metrics:
metricClient: "otel"
otelCollectorEndpoint: "http://otel-collector.opentelemetry.svc:4317"
metrics:
enabled: true
```
:::note
Update the value of `otelCollectorEndpoint` with your collector URL.
:::
3. **Re-deploy Airbyte**: With the updated chart values, you're ready to deploy your Airbyte application by upgrading the chart.