You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Signoz from docker-compose following base on their document and it up and running. And my plan is to use that service from my dotnet application which also running in docker.
Problem is no service, log, metrics were found in Signoz UI even though all services are running well. Let me drop my Dockerfile and docker-compose file in here.
# Use the same SDK version for all stagesFROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
# Install instrumentation in build stage (where SDK is available)FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
# Continue with buildWORKDIR /src
COPY ["BlazingPizzaDemo.csproj", "."]
RUN dotnet restore "./BlazingPizzaDemo.csproj"COPY . .
RUN dotnet build "./BlazingPizzaDemo.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "./BlazingPizzaDemo.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Final stageFROM mcr.microsoft.com/dotnet/aspnet:7.0 AS final
WORKDIR /app
COPY --from=publish /app/publish .
# Download and install instrumentationRUN apt-get update && apt-get install -y zip curl
RUN mkdir /otel
RUN curl -L -o /otel/otel-dotnet-install.sh https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/download/v1.11.0/otel-dotnet-auto-install.sh
RUN chmod +x /otel/otel-dotnet-install.sh
ENV OTEL_DOTNET_AUTO_HOME=/otel
RUN /bin/bash /otel/otel-dotnet-install.sh
RUN chmod +x /otel/instrument.sh
ENTRYPOINT ["/bin/bash", "-c", "source /otel/instrument.sh && dotnet BlazingPizzaDemo.dll"]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone 👋
I'm using Signoz from docker-compose following base on their document and it up and running. And my plan is to use that service from my dotnet application which also running in docker.
Problem is no service, log, metrics were found in Signoz UI even though all services are running well. Let me drop my Dockerfile and docker-compose file in here.
Beta Was this translation helpful? Give feedback.
All reactions