Skip to content

Instantly share code, notes, and snippets.

@mpvvliet
Created May 28, 2020 10:24
Show Gist options
  • Select an option

  • Save mpvvliet/c97ffd6348ef6e22cd13a7b6a9244948 to your computer and use it in GitHub Desktop.

Select an option

Save mpvvliet/c97ffd6348ef6e22cd13a7b6a9244948 to your computer and use it in GitHub Desktop.
Sample topology JSON file
{
"apiKey":"API_KEY",
"collection_timestamp":1467037580.595086,
"internalHostname":"lnx-343242.srv.stackstate.com",
"events":{},
"metrics":[],
"service_checks":[],
"topologies":[
{
"start_snapshot": false,
"stop_snapshot": false,
"instance":{
"type":"mesos",
"url":"http://localhost:5050"
},
"components":[
{
"externalId":"nginx3",
"type":{
"name":"docker"
},
"data":{
"ip_addresses":[
"172.17.0.8"
],
"labels":[ "label1", "category:label2" ],
"framework_id":"fc998b77-e2d1-4be5-b15c-1af7cddabfed-0000",
"docker":{
"image":"nginx",
"network":"BRIDGE",
"port_mappings":[
{
"container_port":31945,
"host_port":31945,
"protocol":"tcp"
}
],
"privileged":false
},
"task_name":"nginx3",
"slave_id":"fc998b77-e2d1-4be5-b15c-1af7cddabfed-S0"
}
},
{
"externalId":"nginx5",
"type":{
"name":"docker"
},
"data":{
"ip_addresses":[
"172.17.0.9"
],
"labels":[ "label1", "category:label2" ],
"framework_id":"fc998b77-e2d1-4be5-b15c-1af7cddabfed-0011",
"docker":{
"image":"nginx",
"network":"BRIDGE",
"port_mappings":[
{
"container_port":31945,
"host_port":31945,
"protocol":"tcp"
}
],
"privileged":false
},
"task_name":"nginx5",
"slave_id":"fc998b77-e2d1-4be5-b15c-1af7cddabfed-S1"
}
}
],
"relations":[
{
"externalId":"nginx3->nginx5",
"type":{
"name":"uses_service"
},
"sourceId":"nginx3",
"targetId":"nginx5",
"data":{
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment