From 914cae4f810341fbd3ad1a14748f7e83b530e8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Fri, 10 Oct 2025 21:48:52 +0200 Subject: [PATCH] fix: signoz --- Projects/kompose/trace/compose.yaml | 2 +- .../kompose/trace/otel-collector-config.yaml | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Projects/kompose/trace/compose.yaml b/Projects/kompose/trace/compose.yaml index c1ac8c59..161218c6 100644 --- a/Projects/kompose/trace/compose.yaml +++ b/Projects/kompose/trace/compose.yaml @@ -174,7 +174,7 @@ services: - /sys:/hostfs/sys:ro - /:/hostfs:ro environment: - OTEL_RESOURCE_ATTRIBUTES: host.name=signoz-host,os.type=linux + OTEL_RESOURCE_ATTRIBUTES: host.name=vps,os.type=linux LOW_CARDINAL_EXCEPTION_GROUPING: false HOST_PROC: /hostfs/proc HOST_SYS: /hostfs/sys diff --git a/Projects/kompose/trace/otel-collector-config.yaml b/Projects/kompose/trace/otel-collector-config.yaml index 6eba26ea..359eabf2 100644 --- a/Projects/kompose/trace/otel-collector-config.yaml +++ b/Projects/kompose/trace/otel-collector-config.yaml @@ -2,9 +2,9 @@ receivers: otlp: protocols: grpc: - endpoint: 0.0.0.0:4317 + endpoint: signoz:4317 http: - endpoint: 0.0.0.0:4318 + endpoint: signoz:4318 # hostmetrics: # root_path: /hostfs # scrapers: @@ -17,20 +17,20 @@ receivers: # process: # processes: # paging: - prometheus: - config: - global: - scrape_interval: 60s - scrape_configs: - - job_name: otel-collector - static_configs: - - targets: - - localhost:8888 - labels: - job_name: otel-collector + # prometheus: + # config: + # global: + # scrape_interval: 60s + # scrape_configs: + # - job_name: otel-collector + # static_configs: + # - targets: + # - localhost:8888 + # labels: + # job_name: otel-collector postgresql: # The endpoint of the postgresql server. Whether using TCP or Unix sockets, this value should be host:port. If transport is set to unix, the endpoint will internally be translated from host:port to /host.s.PGSQL.port - endpoint: postgres:5432 + endpoint: host.docker.internal:5432 # The frequency at which to collect metrics from the Postgres instance. collection_interval: 60s # The username used to access the postgres instance @@ -102,7 +102,7 @@ receivers: # value: postgres redis: # The hostname and port of the Redis instance, separated by a colon. - endpoint: "redis:6379" + endpoint: "host.docker.internal:6379" # The frequency at which to collect metrics from the Redis instance. collection_interval: 60s # # The password used to access the Redis instance; must match the password specified in the requirepass server configuration option.