最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Azure Monitor - Graph - In which format should I pass table to visualize nodes relations as Graph - Stack Overflow

programmeradmin1浏览0评论

I'm trying to do simple visualization in Azure Monitor of my entities relations.

what i need

I created relations manually:

datatable(nodeId: string, SourceId: string, targetId: string)
[
"node1", "", "node1",
"node2", "node1", "node2",
"node3", "node2", "node3", 
"node3", "node4", "node3",
"node4", "", "node4",
"node5", "node1", "node5",
"node3", "node5", "node3"
]

I've got undesired result, containing proper nodes with relations and useless nodes.

what i got

Seems like nodeID should be unique, but in this case I'm not sure how to construct proper table and display all node relations in the graph.

I'm trying to do simple visualization in Azure Monitor of my entities relations.

what i need

I created relations manually:

datatable(nodeId: string, SourceId: string, targetId: string)
[
"node1", "", "node1",
"node2", "node1", "node2",
"node3", "node2", "node3", 
"node3", "node4", "node3",
"node4", "", "node4",
"node5", "node1", "node5",
"node3", "node5", "node3"
]

I've got undesired result, containing proper nodes with relations and useless nodes.

what i got

Seems like nodeID should be unique, but in this case I'm not sure how to construct proper table and display all node relations in the graph.

Share Improve this question edited Mar 3 at 13:22 nikifir asked Mar 3 at 9:38 nikifirnikifir 11 bronze badge 1
  • Could you post direct images instead of image links. – Balaji Commented Mar 19 at 5:56
Add a comment  | 

1 Answer 1

Reset to default 0

You can try the below code in this case.

let a = datatable(nodeid: string, SourceId: string, TargetId: string)
[
    "node1", "node1","node2",
    "node2", "node1","node5",
    "node3", "node2","node3",
    "node4", "node4","node3",
    "node5", "node5","node3"
];
a

Here, the nodeid column should be Unique and for each unique node, I have given the source and target nodes.

I took the same configurations as yours in the Graph settings.

Result graph:

发布评论

评论列表(0)

  1. 暂无评论