docs.particular.net icon indicating copy to clipboard operation
docs.particular.net copied to clipboard

ServiceFabric documentation does not show how to specify names for monitoring instances

Open WilliamBZA opened this issue 5 years ago • 0 comments

With a few tricks like

https://github.com/danielmarbach/service-fabric-webinar/blob/7cc6921f11754a9eb5518ff0b1e1a55ccc7f007d/stateful-queues/StatefulRouting/EndpointPartitioning/HackEndpointNameBehavior.cs

https://github.com/danielmarbach/service-fabric-webinar/blob/7cc6921f11754a9eb5518ff0b1e1a55ccc7f007d/stateful-queues/StatefulRouting/EndpointPartitioning/HackHostInfoHeadersBehavior.cs

and overriding the display name

            var hostInfo = endpointConfiguration.UniquelyIdentifyRunningInstance();
            hostInfo.UsingCustomDisplayName(partitionInfo.LocalPartitionKey.HasValue ? $"back-stateful-{partitionInfo.LocalPartitionKey}" : "back-stateful");

it is possible to visualize the data even in SP

image

This is not easily captured within our documentation though.

We should have documentation or a sample showing how to set this up for ServiceFabric.

WilliamBZA avatar Jan 29 '21 07:01 WilliamBZA