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
When I try to view the logs from the dotnet monitor container (with the following), everything looks good except when HTTP end point like /process or /dump is run I see the following exception in the code.
kubectl logs pod/upload-nag-test-bd5744b9c-l6xlf -n csx -c monitor
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.
-
I'm trying to set up dotnet monitor (8 or 9) to get GC and other details as per the example https://github.com/dotnet/dotnet-monitor/blob/main/samples/Kubernetes/deployment.yaml
However, when I try to hit any HTTP end point like /process or /dump?pid=1 I get the following response
I would greatly appreciate it, if someone could please help on what exactly am I missing here ?
{"status":400,"detail":"Unable to discover a target process."}
My deployment yaml is as follows.
apiVersion: apps/v1
kind: Deployment
metadata:
name: upload-nag-test
namespace: csx
labels:
app: upload-nag-test
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: upload-nag-test
template:
metadata:
labels:
app: upload-nag-test
azure.workload.identity/use: "true"
spec:
serviceAccountName: workload-identity-sa-csx
When I try to view the logs from the dotnet monitor container (with the following), everything looks good except when HTTP end point like /process or /dump is run I see the following exception in the code.
kubectl logs pod/upload-nag-test-bd5744b9c-l6xlf -n csx -c monitor
{
"Timestamp": "2025-05-16T15:14:41.6468959Z",
"EventId": 1,
"LogLevel": "Error",
"Category": "Microsoft.Diagnostics.Monitoring.WebApi.Controllers.DiagController",
"Message": "Request failed.",
"Exception": "System.ArgumentException: Unable to discover a target process.\n at Microsoft.Diagnostics.Monitoring.WebApi.DiagnosticServices.GetProcessAsync(DiagProcessFilter processFilterConfig, CancellationToken token)\n at Microsoft.Diagnostics.Monitoring.WebApi.Controllers.DiagnosticsControllerBase.\u003C\u003Ec__DisplayClass5_0\u00601.\u003C\u003CInvokeForProcess\u003Eb__0\u003Ed.MoveNext()\n--- End of stack trace from previous location ---\n at Microsoft.Diagnostics.Monitoring.WebApi.Controllers.ControllerExtensions.InvokeService[T](ControllerBase controller, Func\u00601 serviceCall, ILogger logger)",
"State": {
"Message": "Request failed.",
"{OriginalFormat}": "Request failed."
},
"Scopes": [
{
"Message": "SpanId:47a5fc8975c6f6b5, TraceId:db65faaaf87ba856a59f900c6d3ec988, ParentId:0000000000000000",
"SpanId": "47a5fc8975c6f6b5",
"TraceId": "db65faaaf87ba856a59f900c6d3ec988",
"ParentId": "0000000000000000"
},
{
"Message": "ConnectionId:0HNCKHHGPMOGO",
"ConnectionId": "0HNCKHHGPMOGO"
},
{
"Message": "RequestPath:/process RequestId:0HNCKHHGPMOGO:00000001",
"RequestId": "0HNCKHHGPMOGO:00000001",
"RequestPath": "/process"
},
{
"Message": "Microsoft.Diagnostics.Monitoring.WebApi.Controllers.DiagController.GetProcessInfo (Microsoft.Diagnostics.Monitoring.WebApi)",
"ActionId": "dc99c1de-9b04-44f0-9682-08754d329d4e",
"ActionName": "Microsoft.Diagnostics.Monitoring.WebApi.Controllers.DiagController.GetProcessInfo (Microsoft.Diagnostics.Monitoring.WebApi)"
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions