Monitoring fixes
Run Tests on Branches / Backend Tests (push) Successful in 3m28s
Run Tests on Branches / Frontend Tests (push) Successful in 3m27s

This commit is contained in:
Antoni Nuñez Romeu
2026-07-03 13:07:08 +02:00
parent 3b725df118
commit aa52b34aeb
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -34,9 +34,10 @@ services:
DATABASE_PATH: /app/data/database.sqlite DATABASE_PATH: /app/data/database.sqlite
FARMACIAS_WEBHOOK_URL: ${FARMACIAS_WEBHOOK_URL:-} FARMACIAS_WEBHOOK_URL: ${FARMACIAS_WEBHOOK_URL:-}
PG_URL: postgresql://farmafinder:${PG_PASSWORD:-change-me-in-production}@postgres:5432/farmafinder PG_URL: postgresql://farmafinder:${PG_PASSWORD:-change-me-in-production}@postgres:5432/farmafinder
# OpenTelemetry — exported via OTLP gRPC to the shared Alloy collector # OpenTelemetry — exported via OTLP gRPC to the shared Alloy collector.
# When the stack runs on 192.168.1.84, send traces to that host.
OTEL_SERVICE_NAME: farmafinder-backend OTEL_SERVICE_NAME: farmafinder-backend
OTEL_EXPORTER_OTLP_ENDPOINT: http://host.docker.internal:4317 OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://192.168.1.84:4317}
OTEL_TRACES_EXPORTER: otlp OTEL_TRACES_EXPORTER: otlp
OTEL_LOGS_EXPORTER: otlp OTEL_LOGS_EXPORTER: otlp
OTEL_RESOURCE_ATTRIBUTES: service.namespace=farmafinder OTEL_RESOURCE_ATTRIBUTES: service.namespace=farmafinder
@@ -51,7 +52,7 @@ services:
build: build:
context: ./frontend context: ./frontend
args: args:
VITE_FARO_ENDPOINT: ${VITE_FARO_ENDPOINT:-http://localhost:4318} VITE_FARO_ENDPOINT: ${VITE_FARO_ENDPOINT:-http://192.168.1.84:4318}
VITE_FARO_APP_NAME: ${VITE_FARO_APP_NAME:-farmafinder-frontend} VITE_FARO_APP_NAME: ${VITE_FARO_APP_NAME:-farmafinder-frontend}
VITE_FARO_ENV: ${VITE_FARO_ENV:-production} VITE_FARO_ENV: ${VITE_FARO_ENV:-production}
VITE_FARO_APP_VERSION: ${VITE_FARO_APP_VERSION:-1.0.0} VITE_FARO_APP_VERSION: ${VITE_FARO_APP_VERSION:-1.0.0}
+4 -4
View File
@@ -3,10 +3,10 @@
# Copy to .env and adjust as needed for local dev. # Copy to .env and adjust as needed for local dev.
# OTLP HTTP endpoint of the Grafana Alloy collector. # OTLP HTTP endpoint of the Grafana Alloy collector.
# In Docker on the same host as Alloy, use http://localhost:4318 (the # In Docker on the same host as Alloy, use the collector hostname or IP,
# container's perspective of the host). For external deploys, use the # for example http://192.168.1.84:4318.
# Alloy's public URL, e.g. https://alloy.example.com. # For external deploys, use the Alloy's public URL, e.g. https://alloy.example.com.
VITE_FARO_ENDPOINT=http://localhost:4318 VITE_FARO_ENDPOINT=http://192.168.1.84:4318
# App name shown in Grafana Explore / Faro data source. # App name shown in Grafana Explore / Faro data source.
VITE_FARO_APP_NAME=farmaclic-frontend VITE_FARO_APP_NAME=farmaclic-frontend