Skip to content

Instantly share code, notes, and snippets.

@mtho11
Created March 16, 2018 22:42
Show Gist options
  • Save mtho11/44140acfc7b235b7842daea5760fc146 to your computer and use it in GitHub Desktop.
Save mtho11/44140acfc7b235b7842daea5760fc146 to your computer and use it in GitHub Desktop.
JSON file for testing with 2 groups
{
"nodes": [
{
"data": {
"id": "n3",
"text": "details (v1)",
"service": "details.istio-system.svc.cluster.local",
"version": "v1",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22details.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v1%22%7D"
}
},
{
"data": {
"id": "n1",
"text": "istio-ingress",
"service": "istio-ingress.istio-system.svc.cluster.local",
"version": "unknown",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bsource_service%3D%22istio-ingress.istio-system.svc.cluster.local%22%2Csource_version%3D%22unknown%22%7D"
}
},
{
"data": {
"id": "n2",
"text": "productpage (v1)",
"service": "productpage.istio-system.svc.cluster.local",
"version": "v1",
"parent": "rr3",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22productpage.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v1%22%7D"
}
},
{
"data": {
"id": "n22",
"text": "productpage (v2)",
"service": "productpage.istio-system.svc.cluster.local",
"version": "v1",
"parent": "rr3",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22productpage.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v1%22%7D"
}
},
{
"data": {
"id": "n6",
"text": "ratings (v1)",
"service": "ratings.istio-system.svc.cluster.local",
"version": "v1",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22ratings.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v1%22%7D"
}
},
{
"data": {
"id": "n4",
"text": "reviews (v1)",
"service": "reviews.istio-system.svc.cluster.local",
"version": "v1",
"parent": "r1",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22reviews.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v1%22%7D"
}
},
{
"data": {
"id": "n5",
"text": "reviews (v2)",
"service": "reviews.istio-system.svc.cluster.local",
"version": "v2",
"parent": "r1",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22reviews.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v2%22%7D"
}
},
{
"data": {
"id": "n7",
"text": "reviews (v3)",
"service": "reviews.istio-system.svc.cluster.local",
"version": "v3",
"parent": "r1",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bdestination_service%3D%22reviews.istio-system.svc.cluster.local%22%2Cdestination_version%3D%22v3%22%7D"
}
},
{
"data": {
"id": "r1",
"service": "reviews.istio-system.svc.cluster.local",
"text": "reviews"
}
},
{
"data": {
"id": "rr3",
"service": "reviews.istio-system.svc.cluster.local",
"text": "productpages"
}
},
{
"data": {
"id": "n0",
"text": "unknown",
"service": "unknown",
"version": "unknown",
"link_prom_graph":
"http://prometheus:9090/graph?g0.range_input=1h\u0026g0.tab=0\u0026g0.expr=istio_request_count%7Bsource_service%3D%22unknown%22%2Csource_version%3D%22unknown%22%7D"
}
}
],
"edges": [
{
"data": {
"id": "e0",
"source": "n0",
"target": "n1",
"text": "0ps",
"color": "black"
}
},
{
"data": {
"id": "e8",
"source": "n0",
"target": "n2",
"text": "0.44ps",
"color": "green"
}
},
{
"data": {
"id": "e1",
"source": "n1",
"target": "n2",
"text": "0ps",
"color": "black"
}
},
{
"data": {
"id": "e2",
"source": "n2",
"target": "n3",
"text": "0.44ps",
"color": "green"
}
},
{
"data": {
"id": "e3",
"source": "n2",
"target": "n4",
"text": "0.16ps",
"color": "green"
}
},
{
"data": {
"id": "e4",
"source": "n2",
"target": "n5",
"text": "0.12ps",
"color": "green"
}
},
{
"data": {
"id": "e6",
"source": "n2",
"target": "n7",
"text": "0.16ps",
"color": "green"
}
},
{
"data": {
"id": "e5",
"source": "n5",
"target": "n6",
"text": "0.12ps",
"color": "green"
}
},
{
"data": {
"id": "e7",
"source": "n7",
"target": "n6",
"text": "0.16ps",
"color": "green"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment