From 0c7e63d7357f76c7e555282e9cc04bec2cded0f8 Mon Sep 17 00:00:00 2001 From: CheetoDa Date: Wed, 3 Apr 2024 04:08:46 +0530 Subject: [PATCH] chore: saved unsaved files --- ...docker-quickStart-instrumentApplication.md | 2 +- ...docker-recommended-installOtelCollector.md | 94 +------------------ ...ocker-recommended-instrumentApplication.md | 4 +- 3 files changed, 9 insertions(+), 91 deletions(-) diff --git a/frontend/src/container/OnboardingContainer/Modules/APM/Dotnet/md-docs/Docker/QuickStart/dotnet-docker-quickStart-instrumentApplication.md b/frontend/src/container/OnboardingContainer/Modules/APM/Dotnet/md-docs/Docker/QuickStart/dotnet-docker-quickStart-instrumentApplication.md index 1619f2f229..b1df18e512 100644 --- a/frontend/src/container/OnboardingContainer/Modules/APM/Dotnet/md-docs/Docker/QuickStart/dotnet-docker-quickStart-instrumentApplication.md +++ b/frontend/src/container/OnboardingContainer/Modules/APM/Dotnet/md-docs/Docker/QuickStart/dotnet-docker-quickStart-instrumentApplication.md @@ -73,7 +73,7 @@ This is done by configuring an OpenTelemetry [TracerProvider](https://github.com ### Step 3: Dockerize your application -Since the crucial environment variables like SIGNOZ_INGESTION_KEY, Ingestion Endpoint and Service name are set in the `program.cs` file, you don't need to add any additional steps in your Dockerfile. +Since the environment variables like SIGNOZ_INGESTION_KEY, Ingestion Endpoint and Service name are set in the `program.cs` file, you don't need to add any additional steps in your Dockerfile. An **example** of a Dockerfile could look like this: diff --git a/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-installOtelCollector.md b/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-installOtelCollector.md index a659f36474..fbeda9c337 100644 --- a/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-installOtelCollector.md +++ b/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-installOtelCollector.md @@ -1,96 +1,12 @@ ## Setup OpenTelemetry Binary as an agent +   -### Step 1: Download otel-collector tar.gz -```bash -wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.79.0/otelcol-contrib_0.79.0_linux_amd64.tar.gz -``` +As a first step, you should install the OTel collector Binary according to the instructions provided on [this link](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/). +   -### Step 2: Extract otel-collector tar.gz to the `otelcol-contrib` folder -```bash -mkdir otelcol-contrib && tar xvzf otelcol-contrib_0.79.0_linux_amd64.tar.gz -C otelcol-contrib -``` +Once you are done setting up the OTel collector binary, you can follow the next steps. +   -### Step 3: Create config.yaml in folder otelcol-contrib with the below content in it -```bash -receivers: - otlp: - protocols: - grpc: - endpoint: 0.0.0.0:4317 - http: - endpoint: 0.0.0.0:4318 - hostmetrics: - collection_interval: 60s - scrapers: - cpu: {} - disk: {} - load: {} - filesystem: {} - memory: {} - network: {} - paging: {} - process: - mute_process_name_error: true - mute_process_exe_error: true - mute_process_io_error: true - processes: {} - prometheus: - config: - global: - scrape_interval: 60s - scrape_configs: - - job_name: otel-collector-binary - static_configs: - - targets: - # - localhost:8888 -processors: - batch: - send_batch_size: 1000 - timeout: 10s - # Ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md - resourcedetection: - detectors: [env, system] # Before system detector, include ec2 for AWS, gcp for GCP and azure for Azure. - # Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels. - timeout: 2s - system: - hostname_sources: [os] # alternatively, use [dns,os] for setting FQDN as host.name and os as fallback -extensions: - health_check: {} - zpages: {} -exporters: - otlp: - endpoint: "ingest.{{REGION}}.signoz.cloud:443" - tls: - insecure: false - headers: - "signoz-access-token": "{{SIGNOZ_INGESTION_KEY}}" - logging: - verbosity: normal -service: - telemetry: - metrics: - address: 0.0.0.0:8888 - extensions: [health_check, zpages] - pipelines: - metrics: - receivers: [otlp] - processors: [batch] - exporters: [otlp] - metrics/internal: - receivers: [prometheus, hostmetrics] - processors: [resourcedetection, batch] - exporters: [otlp] - traces: - receivers: [otlp] - processors: [batch] - exporters: [otlp] - logs: - receivers: [otlp] - processors: [batch] - exporters: [otlp] -``` - - diff --git a/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-instrumentApplication.md b/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-instrumentApplication.md index e05b167123..cb7b7c81f7 100644 --- a/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-instrumentApplication.md +++ b/frontend/src/container/OnboardingContainer/Modules/APM/Php/md-docs/Docker/Recommended/php-docker-recommended-instrumentApplication.md @@ -79,4 +79,6 @@ ENV OTEL_PHP_AUTOLOAD_ENABLED=true \ OTEL_EXPORTER_OTLP_ENDPOINT= \ OTEL_PROPAGATORS=baggage,tracecontext ... -``` \ No newline at end of file +``` + +- - Endpoint at which the collector is running. Ex. -> `http://localhost:4317` \ No newline at end of file