Open zhenlei520 opened 2 months ago
Thanks for creating your first issue; let us know what you think of dotnet-monitor by filling out our survey.
version: 8.0.4 system: Ubuntu 22.04
Would you be able to try collection using dotnet-counters? This will help isolate the issue.
Not necessarily related, but we have seen scenarios where there is interference between collectors (for example OpenTelemetry) or strange behavior for trimmed/self-contained apps. See https://github.com/dotnet/dotnet-monitor/issues/1241
Would you be able to try collection using dotnet-counters? This will help isolate the issue.
Not necessarily related, but we have seen scenarios where there is interference between collectors (for example OpenTelemetry) or strange behavior for trimmed/self-contained apps. See #1241
Thank you very much, I'll try it out when I have time.
I have similar issue - the http.server.request.duration is not collected from .net 8.0 process. I tried with dotnet-monitor version 8.0.4+98fb44aafcfe2c2c2d11c7b4cb0c4315cdaa4510
, configuration file:
{
"$schema": "https://aka.ms/dotnet-monitor-schema",
"DefaultProcess": {
"Filters": [
{
"Key": "ProcessId",
"Value": "<pid>",
"MatchType": "Exact"
}
]
},
"Metrics": {
"Providers": [
{
"ProviderName": "Microsoft.AspNetCore.Hosting"
}
]
}
}
Command line:
dotnet-monitor collect --no-auth --configuration-file-path test-config.json
Other metrics from same provider are collected properly (failed_requests
, current_requests
, etc.).
At the same time I'm able to show this metric using dotnet-counter tool, version 8.0.532401+d98406ff95be0a8398d4c403056c5705389665f3
with command:
dotnet-counters monitor -p [pid] Microsoft.AspNetCore.Hosting
After installing dotnet-monitor globally, some indicators are missing (microsoftaspnetcorehosting_current_requests, microsoftaspnetcorehosting_failed_requests)
Two machines, one of which is normal, and the other is wrong, but I tried to reinstall dotnet-monitor and it didn't work
/metrics