Skip to content

Commit 07da9df

Browse files
authored
Add network-modification metrics and dashboard (#424)
Signed-off-by: LE SAULNIER Kevin <[email protected]>
1 parent b022265 commit 07da9df

File tree

2 files changed

+274
-1
lines changed

2 files changed

+274
-1
lines changed
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 11,
22+
"links": [],
23+
"liveNow": false,
24+
"panels": [
25+
{
26+
"collapsed": false,
27+
"gridPos": {
28+
"h": 1,
29+
"w": 24,
30+
"x": 0,
31+
"y": 0
32+
},
33+
"id": 3,
34+
"panels": [],
35+
"title": "Network modification reports",
36+
"type": "row"
37+
},
38+
{
39+
"datasource": {
40+
"type": "prometheus",
41+
"uid": "${DS_PROMETHEUS}"
42+
},
43+
"fieldConfig": {
44+
"defaults": {
45+
"color": {
46+
"mode": "palette-classic"
47+
},
48+
"custom": {
49+
"axisBorderShow": false,
50+
"axisCenteredZero": false,
51+
"axisColorMode": "text",
52+
"axisLabel": "",
53+
"axisPlacement": "auto",
54+
"barAlignment": 0,
55+
"drawStyle": "line",
56+
"fillOpacity": 0,
57+
"gradientMode": "none",
58+
"hideFrom": {
59+
"legend": false,
60+
"tooltip": false,
61+
"viz": false
62+
},
63+
"insertNulls": false,
64+
"lineInterpolation": "linear",
65+
"lineWidth": 1,
66+
"pointSize": 5,
67+
"scaleDistribution": {
68+
"type": "linear"
69+
},
70+
"showPoints": "auto",
71+
"spanNulls": false,
72+
"stacking": {
73+
"group": "A",
74+
"mode": "none"
75+
},
76+
"thresholdsStyle": {
77+
"mode": "off"
78+
}
79+
},
80+
"mappings": [],
81+
"thresholds": {
82+
"mode": "absolute",
83+
"steps": [
84+
{
85+
"color": "green",
86+
"value": null
87+
},
88+
{
89+
"color": "red",
90+
"value": 80
91+
}
92+
]
93+
}
94+
},
95+
"overrides": []
96+
},
97+
"gridPos": {
98+
"h": 8,
99+
"w": 12,
100+
"x": 0,
101+
"y": 1
102+
},
103+
"id": 2,
104+
"options": {
105+
"legend": {
106+
"calcs": [],
107+
"displayMode": "list",
108+
"placement": "bottom",
109+
"showLegend": true
110+
},
111+
"tooltip": {
112+
"mode": "single",
113+
"sort": "none"
114+
}
115+
},
116+
"targets": [
117+
{
118+
"datasource": {
119+
"type": "prometheus",
120+
"uid": "${DS_PROMETHEUS}"
121+
},
122+
"disableTextWrap": false,
123+
"editorMode": "builder",
124+
"expr": "app_network_modification_apply_seconds_max{error=\"none\"}",
125+
"fullMetaSearch": false,
126+
"includeNullMetadata": true,
127+
"instant": false,
128+
"legendFormat": "{{modification_type}}",
129+
"range": true,
130+
"refId": "A",
131+
"useBackend": false
132+
}
133+
],
134+
"title": "Modification time (max)",
135+
"type": "timeseries"
136+
},
137+
{
138+
"datasource": {
139+
"type": "prometheus",
140+
"uid": "${DS_PROMETHEUS}"
141+
},
142+
"fieldConfig": {
143+
"defaults": {
144+
"color": {
145+
"mode": "palette-classic"
146+
},
147+
"custom": {
148+
"axisBorderShow": false,
149+
"axisCenteredZero": false,
150+
"axisColorMode": "text",
151+
"axisLabel": "",
152+
"axisPlacement": "auto",
153+
"barAlignment": 0,
154+
"drawStyle": "line",
155+
"fillOpacity": 0,
156+
"gradientMode": "none",
157+
"hideFrom": {
158+
"legend": false,
159+
"tooltip": false,
160+
"viz": false
161+
},
162+
"insertNulls": false,
163+
"lineInterpolation": "linear",
164+
"lineWidth": 1,
165+
"pointSize": 5,
166+
"scaleDistribution": {
167+
"type": "linear"
168+
},
169+
"showPoints": "auto",
170+
"spanNulls": false,
171+
"stacking": {
172+
"group": "A",
173+
"mode": "none"
174+
},
175+
"thresholdsStyle": {
176+
"mode": "off"
177+
}
178+
},
179+
"mappings": [],
180+
"thresholds": {
181+
"mode": "absolute",
182+
"steps": [
183+
{
184+
"color": "green",
185+
"value": null
186+
},
187+
{
188+
"color": "red",
189+
"value": 80
190+
}
191+
]
192+
}
193+
},
194+
"overrides": []
195+
},
196+
"gridPos": {
197+
"h": 8,
198+
"w": 12,
199+
"x": 12,
200+
"y": 1
201+
},
202+
"id": 1,
203+
"options": {
204+
"legend": {
205+
"calcs": [],
206+
"displayMode": "list",
207+
"placement": "bottom",
208+
"showLegend": true
209+
},
210+
"tooltip": {
211+
"mode": "single",
212+
"sort": "none"
213+
}
214+
},
215+
"targets": [
216+
{
217+
"datasource": {
218+
"type": "prometheus",
219+
"uid": "${DS_PROMETHEUS}"
220+
},
221+
"disableTextWrap": false,
222+
"editorMode": "builder",
223+
"expr": "app_network_modification_apply_seconds_count{error=\"none\"}",
224+
"fullMetaSearch": false,
225+
"includeNullMetadata": true,
226+
"instant": false,
227+
"legendFormat": "{{modification_type}}",
228+
"range": true,
229+
"refId": "A",
230+
"useBackend": false
231+
}
232+
],
233+
"title": "Modification with success count",
234+
"type": "timeseries"
235+
}
236+
],
237+
"refresh": "",
238+
"schemaVersion": 38,
239+
"tags": [],
240+
"templating": {
241+
"list": [
242+
{
243+
"current": {
244+
"selected": false,
245+
"text": "Prometheus",
246+
"value": "PBFA97CFB590B2093"
247+
},
248+
"hide": 0,
249+
"includeAll": false,
250+
"label": "DataSrc Prometheus",
251+
"multi": false,
252+
"name": "DS_PROMETHEUS",
253+
"options": [],
254+
"query": "prometheus",
255+
"queryValue": "",
256+
"refresh": 1,
257+
"regex": "",
258+
"skipUrlSync": false,
259+
"type": "datasource"
260+
}
261+
]
262+
},
263+
"time": {
264+
"from": "now-6h",
265+
"to": "now"
266+
},
267+
"timepicker": {},
268+
"timezone": "",
269+
"title": "Network modifications",
270+
"uid": "e6035e2e-2575-44a7-9afb-c6e35b961199",
271+
"version": 3,
272+
"weekStart": ""
273+
}

docker-compose/technical/prometheus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ scrape_configs:
99
- job_name: 'apps'
1010
metrics_path: '/actuator/prometheus'
1111
static_configs:
12-
- targets: ['172.17.0.1:5008', '172.17.0.1:5023', '172.17.0.1:5009', '172.17.0.1:5030', '172.17.0.1:5031', '172.17.0.1:5032', '172.17.0.1:5038', '172.17.0.1:5003']
12+
- targets: ['172.17.0.1:5008', '172.17.0.1:5023', '172.17.0.1:5009', '172.17.0.1:5030', '172.17.0.1:5031', '172.17.0.1:5032', '172.17.0.1:5038', '172.17.0.1:5003', '172.17.0.1:5007']
1313
- job_name: 'rabbitmq'
1414
metrics_path: '/metrics'
1515
static_configs:

0 commit comments

Comments
 (0)