docs.particular.net
docs.particular.net copied to clipboard
ServiceFabric documentation does not show how to specify names for monitoring instances
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

This is not easily captured within our documentation though.
We should have documentation or a sample showing how to set this up for ServiceFabric.