Replies: 2 comments 8 replies
-
@MichelZ dotnet-monitor does not understand procfs based connections. You can get around this by:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Funnily enough, there are new features for Example of debug profile with volume: |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We would like to debug one of our chiseled images with dotnet-monitor.
The to-be-monitored container uses
mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-extra
it uses
USER $APP_UID
We are trying to start a dotnet-monitor container with
kubectl debug
like this:kubectl debug -it --namespace $Namespace -c $DebugName $PodName --image=mcr.microsoft.com/dotnet/monitor:8 --target=$TargetContainerName --env=DotnetMonitor_Egress__AzureBlobStorage__monitorBlob__accountUri=$storageAccount --env=DotnetMonitor_Egress__AzureBlobStorage__monitorBlob__containerName=dotnet-monitor --env=DotnetMonitor_Egress__AzureBlobStorage__monitorBlob__blobPrefix=artifacts --env=DotnetMonitor_Egress__AzureBlobStorage__monitorBlob__managedIdentityClientId=$managedIdentity --env=DotnetMonitor_Storage__DefaultSharedPath=$ContainerSharedPath --arguments-only -- collect --no-auth --urls http://localhost:52323 --metrics false
We have $ContainerSharedPath as a path inside the container that is writable in the to-be-monitored container:
COPY --from=publish --chown=$APP_UID:$APP_UID --chmod=u+rw /app/App_Data/Logs /app/App_Data/Logs
The dotnet-monitor container starts fine, we can port forward to 52323.
Response from
/info
:{"version":"8.0.3-servicing.24352.8+6de4b5d5a5d4b2c4d8bc471455c998bfac42ab8f","runtimeVersion":"8.0.7","diagnosticPortMode":"Connect","diagnosticPortName":null}
However, when we try to start a dump using:
Invoke-WebRequest -UseBasicParsing -Uri http://localhost:52323/dump?egressProvider=monitorBlob
We get:
Invoke-WebRequest: {"status":400,"detail":"Unable to discover a target process."}
Listing processes using
Invoke-WebRequest -UseBasicParsing -Uri http://localhost:52323/processes
leads to an empty 200 response:
Any suggestions how we can get this to work?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions