How to operate on the Service Graph
The service graph enable some features to simplify operators daily tasks, here is a quick guide on how to use those fetaures.
Adding informations to the graph
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 addServiceInstances
to the graphShift + i
to addInstances
to the graph (this requireServiceInstances
to be shown)Shift + n
to addNetworks
to the graph (this requireInstances
to be shown)
Define the position of the Services in the graph
XOS define a model called ServiceGraphConstraint
, that let you enforce
constraints on the nodes position.
Here is a basic of how it works:
Setting the services on a line
["a", "b", "c"]
will position the nodes as:
a -> b -> c
Services as a tree
["a", ["b", "c"]]
will position the nodes as:
b
/
a
\
c
Empty spots in the graph
[[null, "a"], ["b", "c"]]
will position the nodes as:
b
|
a -> c
NOTE: All the notes not defined in the
ServiceGraphConstraint
model will float around
Events listened by the Service Graph
xos.sg.update
will render the graph again