microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 399 forks source link

Allow Dynamic Host exe Names to Support PerfMon Metrics with ServiceName/AppName #201

Open wesleytsai opened 6 years ago

wesleytsai commented 6 years ago

Hi,

We use perfmon telemetry to get memory/cpu usage numbers. Currently we are getting this health metric by ServiceName only. Since we have same service running in different Apps, we want to get health metrics by AppName\ServiceName. We want to include AppName as part of the process name (currently process name is service name) so that perfmon counters can be used to tell from which app telemetry is coming.

We want to request a method of being able to change the process name to include the Appname after deployment, be it by renaming the exe while in SetupHost, or for ServiceManifest to allow dynamic exe names, for example, with a [ApplicationName] replacement variable.

Hope you can help.

Thanks, Wes

vipul-modi commented 6 years ago

The deployed code packages are supposed to be immutable - it is not possible to change the entry point after the deployment. The application name is available in the process environment variable and if you are not using the shared code packages, the full path of the executable contains the appId.