Skip to content

Commit 4599914

Browse files
authored
Added drill-down to statistics panel to jump into a specified tracing backend (#11)
1 parent ca0dc6c commit 4599914

File tree

6 files changed

+161
-72
lines changed

6 files changed

+161
-72
lines changed

src/css/novatec-service-dependency-graph-panel.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@
5757
padding-top: 1.5rem;
5858
padding-bottom: 0.5rem;
5959
}
60+
6061
.no-data--selection{
6162
font-size: 1.2em;
6263
display: block;
6364
text-align: center;
6465
}
66+
6567
.table--selection {
6668
width: 99%;
6769
table-layout: fixed;
@@ -89,4 +91,6 @@
8991
background-color: #28282a;
9092
border-top: 2px solid #161719;
9193
color: #33b5e5;
92-
}
94+
}
95+
96+

src/options_ctrl.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export class OptionsCtrl {
4242
return [];
4343
}
4444

45+
getTraceBackend() {
46+
47+
return ["http://localhost:9411/zipkin/?serviceName={}", "http://localhost:9411/zipkin/?serviceName={}&lookback=custom&startTs=[[__from]]&endTs=[[__to]]", "http://localhost:16686/search?service={}&end=[[__to]]&limit=20&lookback=custom&start=[[__from]]"
48+
]
49+
}
50+
4551
getPrefixCandidates() {
4652
var aggregationType = (_.find(this.controller.dashboard.templating.list, {
4753
name: 'aggregationType'

src/partials/module.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@
1313
</div>
1414
</div>
1515

16+
1617
<div ng-class="{statistics: true, 'show': ctrl.showStatistics}">
17-
<div class="header--selection">{{ctrl.selectionId}}</div>
18+
<div class="header--selection">{{ctrl.selectionId}}
19+
<a target="_blank" ng-href="{{ctrl.resolvedDrillDownLink}}"
20+
ng-show="ctrl.resolvedDrillDownLink && ctrl.resolvedDrillDownLink.length > 0 && ctrl.currentType === 'INTERNAL'">
21+
<i class="fa fa-paper-plane-o"></i>
22+
</a>
23+
</div>
1824
<div class="secondHeader--selection">Receiving</div>
1925
<div class="no-data--selection" ng-show="ctrl.receiving.length == 0">No receiving Data</div>
2026
<table class="table--selection" ng-show="ctrl.receiving.length > 0">
@@ -51,7 +57,6 @@
5157
</table>
5258
</div>
5359
</div>
54-
5560
<div ng-show="ctrl.getError()">{{ctrl.getError()}}</div>
5661

5762
</div>

0 commit comments

Comments
 (0)