1 vote
It would be nice to see better support for open telemetry and traces.
@davidwruckCan you give me some examples what you're looking for? Our current open telemetry support is mostly just ASP.NET info. We did add some custom events recently but I'd be curious if you have some specific use cases.
Adam Driscoll
PowerShell Expert and Software Architect at Devolutions
Disclosure: I am newer to OpenTelemetry so it can be just me. We are non-profit and try to use free tools to save on cost. We are trying to increase our syslogging and monitoring. With Zabbix 8.0 we tried to get APM to work for PSU. With AI assistance and manual trial and error. From AI on this part:
Why the Collector is needed: Zabbix's APM collector accepts only OTLP/gRPC, and strictly requires the te: trailers header. The .NET OpenTelemetry exporter (used by PowerShell Universal) doesn't send it, so its gRPC exports are rejected (grpc-status 2, Missing :te header). Apps send OTLP/HTTP to the Collector instead, which forwards proper gRPC.
I had to setup a separate OTLP collector that than forwards to Zabbix proxy due to the issue above.
I also couldn't get anything to work with separate metric and trace endpoints:
{
"OpenTelemetry": {
"ServiceName": "PowerShellUniversal-Production",
"Otlp": {
"MetricsEndpoint": "http://metrics-collector:4318/v1/metrics",
"TracesEndpoint": "http://traces-collector:4318/v1/traces"
}
}
}Only with:
"Plugins": [
"SQL",
"PowerShellUniversal.Plugins.OpenTelemetry"
],
"OpenTelemetry": {
"ServiceName": "powershell-universal",
"Otlp": {
"Endpoint": "http://<super secret server>:4318/v1/metrics"
}
},
"OTEL_EXPORTER_OTLP_PROTOCOL": "HttpProtobuf",Therefore, I couldn't get traces to work at all. Also, is there any metrics for jobs or apps? The data that I got only seems to be the API Endpoints. The goal is to find issues. We like Powershell especially before the AI era but it can sometimes be resource hungry and by changing one thing performance can change drastically.
@davidwruck Thanks for laying that out for me. You're right that I think we only send specific events for endpoints. A lot of what is sent is actually just build .NET and ASP.NET metrics but we can certainly add custom ones. Let me look into the issue you are having with the config and open another for adding a more complete set of metrics for specific resources like jobs and apps.
Adam Driscoll
PowerShell Expert and Software Architect at Devolutions