Topology synchronization
Last updated
Last updated
This page describes StackState v4.4.x.
The StackState 4.4 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.4 version range to upgrade to a more recent release.
StackState can synchronize topology information from different sources, including your own sources. StackState enables you to create a model of your complete landscape.
The easiest way to connect StackState to one of your data sources is to use a StackPacks. StackPacks are standard integrations that configure StackState to consume data from a particular data source or platform.
StackState accepts topology data in JSON format. JSON files received pass through a number of processing steps. At the end of the synchronization pipeline, StackState stores the incoming data as part of it's topology, consisting of components and relations.
The entire process can be represented visually as follows:
StackState accepts topology information in the following JSON format:
The JSON contains the following fields:
apiKey
: The key that StackState provided for your installation.
collection_timestamp
: Collection timestamp in Epoch seconds. Depending on your StackState configuration, topology that is to old may be ignored.
internalHostname
: The hostname of the collector (which sends your custom topology data).
topologies
: A list of one or more instance types. Instance types are described by the following fields:
start_snapshot
: Boolean (true/false). When set to "true" this message is handled as the beginning of a snapshot. This enables StackState to diff snapshots with the previous one to delete components / relations which are not in the snapshot anymore.
stop_snapshot
: Boolean (true/false). When set to "true" this message is handled as the end of a snapshot.
delete_ids
: List of external ids. List of components or relations that should be deleted. All components and relations that are not repeated in a snapshot will be deleted automatically, thus this field is only necessary when not sending a snapshot.
instance
: Describes the type and unique ID (URL format) of the topology data.
type
: A type name for the topology data.
URL
: Unique identifier for the source of this topology. This is used to generate a unique Kafka topic name for the topology data.
components
: A list of components. Per component you have the following fields:
externalId
: A unique ID for this component. This has to be unique for this instance.
type
: A named parameter for this type.
data
: A JSON blob of arbitrary data.
relations
: A list of relations. Per relation you have the following fields:
externalId
: A unique ID for this relation. This has to be unique for this instance.
type
: A named parameter for this type.
data
: A JSON blob of arbitrary data.
sourceId
: This refers to the source component externalId.
targetId
: This refers to the target component externalId.
The following fields are mandatory, but can be left empty as seen in the example above. Refer to the links below for details on how to use them:
service_checks
The push-integration tutorial is a good way to get started sending your own topology into StackState.