Skip to content

Commit 2df707c

Browse files
author
Muhammad Shahzeb
authored
Add utils locally in snmp edge router mixin (#1124)
* Add utils locally in snmp edge router mixin * Fix fmt
1 parent a546eec commit 2df707c

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

ubnt-edgerouter-mixin/dashboards/overview.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local prometheus = grafana.prometheus;
55

66
local gBuilder = import 'grafana-builder/grafana.libsonnet';
77

8-
local utils = import 'snmp-mixin/lib/utils.libsonnet';
8+
local utils = import '../lib/utils.libsonnet';
99

1010
local sharedMatcher = 'job=~"$job", instance=~"$instance", snmp_target=~"$snmp_target"';
1111

ubnt-edgerouter-mixin/jsonnetfile.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
}
1919
},
2020
"version": "master"
21-
},
22-
{
23-
"source": {
24-
"git": {
25-
"remote": "https://github.com/grafana/jsonnet-libs.git",
26-
"subdir": "snmp-mixin"
27-
}
28-
},
29-
"version": "master"
3021
}
3122
],
3223
"legacyImports": true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
timeSeriesOverride(
3+
unit='none',
4+
fillOpacity=0,
5+
lineInterpolation='linear',
6+
showPoints='auto',
7+
):: {
8+
type: 'timeseries',
9+
10+
fieldConfig: {
11+
defaults: {
12+
unit: unit,
13+
custom: {
14+
fillOpacity: fillOpacity,
15+
lineInterpolation: lineInterpolation,
16+
showPoints: showPoints,
17+
},
18+
},
19+
},
20+
},
21+
}

0 commit comments

Comments
 (0)