The service graph enable some features to simplify operators daily tasks, here is a quick guide on how to use those fetaures.
The Service Graph will render by default only the Services, but you can augment the available information by pressing:
Shift + f toggle fullscreen modeShift + s to add ServiceInstances to the graphShift + i to add Instances to the graph (this require ServiceInstances to be shown)Shift + n to add Networks to the graph (this require Instances to be shown)XOS define a model called ServiceGraphConstraint, that let you enforce constraints on the nodes position.
Here is a basic of how it works:
["a", "b", "c"]
will position the nodes as:
a -> b -> c
["a", ["b", "c"]]
will position the nodes as:
b / a \ c
[[null, "a"], ["b", "c"]]
will position the nodes as:
b | a -> c
NOTE: All the notes not defined in the
ServiceGraphConstraintmodel will float around
xos.sg.update will render the graph againxos.sg.stateChange will listen for changes in the state machine