DaCrow13 commited on
Commit
f002c89
·
1 Parent(s): 55a805d

Fix config: point dashboard provisioning to /var/lib/grafana/dashboards and remove redundant json

Browse files
monitoring/grafana/provisioning/dashboards/dashboard.yml CHANGED
@@ -9,5 +9,5 @@ providers:
9
  updateIntervalSeconds: 10
10
  allowUiUpdates: true
11
  options:
12
- path: /app/monitoring/grafana/dashboards
13
  foldersFromFilesStructure: false
 
9
  updateIntervalSeconds: 10
10
  allowUiUpdates: true
11
  options:
12
+ path: /var/lib/grafana/dashboards
13
  foldersFromFilesStructure: false
monitoring/grafana/provisioning/dashboards/hopcroft_dashboard.json DELETED
@@ -1,358 +0,0 @@
1
- {
2
- "annotations": {
3
- "list": [
4
- {
5
- "builtIn": 1,
6
- "datasource": "-- Grafana --",
7
- "enable": true,
8
- "hide": true,
9
- "iconColor": "rgba(0, 211, 255, 1)",
10
- "name": "Annotations & Alerts",
11
- "type": "dashboard"
12
- }
13
- ]
14
- },
15
- "editable": true,
16
- "gnetId": null,
17
- "graphTooltip": 1,
18
- "id": null,
19
- "links": [],
20
- "panels": [
21
- {
22
- "datasource": "Prometheus",
23
- "fieldConfig": {
24
- "defaults": {
25
- "color": {
26
- "mode": "thresholds"
27
- },
28
- "mappings": [],
29
- "thresholds": {
30
- "mode": "absolute",
31
- "steps": [
32
- {
33
- "color": "green",
34
- "value": null
35
- },
36
- {
37
- "color": "red",
38
- "value": 80
39
- }
40
- ]
41
- },
42
- "unit": "reqps"
43
- }
44
- },
45
- "gridPos": {
46
- "h": 8,
47
- "w": 6,
48
- "x": 0,
49
- "y": 0
50
- },
51
- "id": 1,
52
- "options": {
53
- "orientation": "auto",
54
- "reduceOptions": {
55
- "calcs": ["lastNotNull"],
56
- "fields": "",
57
- "values": false
58
- },
59
- "showThresholdLabels": false,
60
- "showThresholdMarkers": true
61
- },
62
- "pluginVersion": "9.0.0",
63
- "targets": [
64
- {
65
- "expr": "rate(fastapi_requests_total[1m])",
66
- "refId": "A"
67
- }
68
- ],
69
- "title": "Request Rate",
70
- "type": "gauge",
71
- "description": "Number of requests per second handled by the API"
72
- },
73
- {
74
- "datasource": "Prometheus",
75
- "fieldConfig": {
76
- "defaults": {
77
- "color": {
78
- "mode": "palette-classic"
79
- },
80
- "custom": {
81
- "axisLabel": "",
82
- "axisPlacement": "auto",
83
- "barAlignment": 0,
84
- "drawStyle": "line",
85
- "fillOpacity": 10,
86
- "gradientMode": "none",
87
- "hideFrom": {
88
- "tooltip": false,
89
- "viz": false,
90
- "legend": false
91
- },
92
- "lineInterpolation": "linear",
93
- "lineWidth": 1,
94
- "pointSize": 5,
95
- "scaleDistribution": {
96
- "type": "linear"
97
- },
98
- "showPoints": "never",
99
- "spanNulls": true
100
- },
101
- "mappings": [],
102
- "thresholds": {
103
- "mode": "absolute",
104
- "steps": [
105
- {
106
- "color": "green",
107
- "value": null
108
- }
109
- ]
110
- },
111
- "unit": "ms"
112
- }
113
- },
114
- "gridPos": {
115
- "h": 8,
116
- "w": 18,
117
- "x": 6,
118
- "y": 0
119
- },
120
- "id": 2,
121
- "options": {
122
- "legend": {
123
- "calcs": ["mean", "max"],
124
- "displayMode": "table",
125
- "placement": "right"
126
- },
127
- "tooltip": {
128
- "mode": "multi"
129
- }
130
- },
131
- "pluginVersion": "9.0.0",
132
- "targets": [
133
- {
134
- "expr": "histogram_quantile(0.95, rate(fastapi_request_duration_seconds_bucket[5m])) * 1000",
135
- "legendFormat": "p95",
136
- "refId": "A"
137
- },
138
- {
139
- "expr": "histogram_quantile(0.50, rate(fastapi_request_duration_seconds_bucket[5m])) * 1000",
140
- "legendFormat": "p50 (median)",
141
- "refId": "B"
142
- }
143
- ],
144
- "title": "Request Latency (p50, p95)",
145
- "type": "timeseries",
146
- "description": "API response time percentiles over time"
147
- },
148
- {
149
- "datasource": "Prometheus",
150
- "fieldConfig": {
151
- "defaults": {
152
- "color": {
153
- "mode": "thresholds"
154
- },
155
- "mappings": [
156
- {
157
- "options": {
158
- "0": {
159
- "color": "red",
160
- "index": 1,
161
- "text": "No Drift"
162
- },
163
- "1": {
164
- "color": "green",
165
- "index": 0,
166
- "text": "Drift Detected"
167
- }
168
- },
169
- "type": "value"
170
- }
171
- ],
172
- "thresholds": {
173
- "mode": "absolute",
174
- "steps": [
175
- {
176
- "color": "green",
177
- "value": null
178
- }
179
- ]
180
- }
181
- }
182
- },
183
- "gridPos": {
184
- "h": 6,
185
- "w": 6,
186
- "x": 0,
187
- "y": 8
188
- },
189
- "id": 3,
190
- "options": {
191
- "orientation": "auto",
192
- "reduceOptions": {
193
- "calcs": ["lastNotNull"],
194
- "fields": "",
195
- "values": false
196
- },
197
- "showThresholdLabels": false,
198
- "showThresholdMarkers": true,
199
- "text": {}
200
- },
201
- "pluginVersion": "9.0.0",
202
- "targets": [
203
- {
204
- "expr": "drift_detected",
205
- "refId": "A"
206
- }
207
- ],
208
- "title": "Data Drift Status",
209
- "type": "stat",
210
- "description": "Current data drift detection status (1 = drift detected, 0 = no drift)"
211
- },
212
- {
213
- "datasource": "Prometheus",
214
- "fieldConfig": {
215
- "defaults": {
216
- "color": {
217
- "mode": "thresholds"
218
- },
219
- "decimals": 4,
220
- "mappings": [],
221
- "thresholds": {
222
- "mode": "absolute",
223
- "steps": [
224
- {
225
- "color": "green",
226
- "value": null
227
- },
228
- {
229
- "color": "yellow",
230
- "value": 0.01
231
- },
232
- {
233
- "color": "red",
234
- "value": 0.05
235
- }
236
- ]
237
- },
238
- "unit": "short"
239
- }
240
- },
241
- "gridPos": {
242
- "h": 6,
243
- "w": 6,
244
- "x": 6,
245
- "y": 8
246
- },
247
- "id": 4,
248
- "options": {
249
- "orientation": "auto",
250
- "reduceOptions": {
251
- "calcs": ["lastNotNull"],
252
- "fields": "",
253
- "values": false
254
- },
255
- "showThresholdLabels": false,
256
- "showThresholdMarkers": true,
257
- "text": {}
258
- },
259
- "pluginVersion": "9.0.0",
260
- "targets": [
261
- {
262
- "expr": "drift_p_value",
263
- "refId": "A"
264
- }
265
- ],
266
- "title": "Drift P-Value",
267
- "type": "stat",
268
- "description": "Statistical significance of detected drift (lower = more significant)"
269
- },
270
- {
271
- "datasource": "Prometheus",
272
- "fieldConfig": {
273
- "defaults": {
274
- "color": {
275
- "mode": "palette-classic"
276
- },
277
- "custom": {
278
- "axisLabel": "",
279
- "axisPlacement": "auto",
280
- "barAlignment": 0,
281
- "drawStyle": "line",
282
- "fillOpacity": 10,
283
- "gradientMode": "none",
284
- "hideFrom": {
285
- "tooltip": false,
286
- "viz": false,
287
- "legend": false
288
- },
289
- "lineInterpolation": "linear",
290
- "lineWidth": 1,
291
- "pointSize": 5,
292
- "scaleDistribution": {
293
- "type": "linear"
294
- },
295
- "showPoints": "auto",
296
- "spanNulls": false
297
- },
298
- "mappings": [],
299
- "thresholds": {
300
- "mode": "absolute",
301
- "steps": [
302
- {
303
- "color": "green",
304
- "value": null
305
- }
306
- ]
307
- },
308
- "unit": "short"
309
- }
310
- },
311
- "gridPos": {
312
- "h": 6,
313
- "w": 12,
314
- "x": 12,
315
- "y": 8
316
- },
317
- "id": 5,
318
- "options": {
319
- "legend": {
320
- "calcs": ["mean", "lastNotNull"],
321
- "displayMode": "table",
322
- "placement": "right"
323
- },
324
- "tooltip": {
325
- "mode": "multi"
326
- }
327
- },
328
- "pluginVersion": "9.0.0",
329
- "targets": [
330
- {
331
- "expr": "drift_distance",
332
- "legendFormat": "Distance",
333
- "refId": "A"
334
- }
335
- ],
336
- "title": "Drift Distance Over Time",
337
- "type": "timeseries",
338
- "description": "Statistical distance between baseline and current data distribution"
339
- }
340
- ],
341
- "refresh": "10s",
342
- "schemaVersion": 36,
343
- "style": "dark",
344
- "tags": ["hopcroft", "ml", "monitoring"],
345
- "templating": {
346
- "list": []
347
- },
348
- "time": {
349
- "from": "now-1h",
350
- "to": "now"
351
- },
352
- "timepicker": {},
353
- "timezone": "",
354
- "title": "Hopcroft ML Model Monitoring",
355
- "uid": "hopcroft-ml-dashboard",
356
- "version": 1,
357
- "weekStart": ""
358
- }