You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2023/04/25 02:41:48 UTC
[skywalking-grafana-plugins] 02/02: fix: frame data
This is an automated email from the ASF dual-hosted git repository.
qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-grafana-plugins.git
commit c45ce4dc24176c9e95262085c7bb51bd1e71b977
Author: Fine0830 <fa...@gmail.com>
AuthorDate: Tue Apr 25 10:41:31 2023 +0800
fix: frame data
---
src/datasource.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/datasource.ts b/src/datasource.ts
index 4d6a79b..319f88b 100644
--- a/src/datasource.ts
+++ b/src/datasource.ts
@@ -90,12 +90,11 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
preferredVisualisationType: 'nodeGraph',
}
});
- console.log(res.data.topology);
for (const node of nodes) {
nodeFrame.add({id: node.id, title: node.name});
}
for (const call of calls) {
- nodeFrame.add({id: call.id, target: call.target, source: call.source});
+ edgeFrame.add({id: call.id, target: call.target, source: call.source});
}
return [nodeFrame, edgeFrame];
});