repos / ops

infra for pico services
git clone https://github.com/picosh/ops.git

commit
5e608fa
parent
e9a473a
author
Antonio Mika
date
2024-01-15 14:53:44 +0000 UTC
Update soju dashboard
1 files changed,  +386, -6
M monitoring/grafana/config/provisioning/dashboards/soju.json
+386, -6
  1@@ -18,7 +18,6 @@
  2   "editable": true,
  3   "fiscalYearStartMonth": 0,
  4   "graphTooltip": 0,
  5-  "id": 14,
  6   "links": [],
  7   "liveNow": false,
  8   "panels": [
  9@@ -83,7 +82,7 @@
 10       },
 11       "gridPos": {
 12         "h": 7,
 13-        "w": 24,
 14+        "w": 12,
 15         "x": 0,
 16         "y": 0
 17       },
 18@@ -197,7 +196,121 @@
 19       },
 20       "gridPos": {
 21         "h": 7,
 22-        "w": 24,
 23+        "w": 12,
 24+        "x": 12,
 25+        "y": 0
 26+      },
 27+      "id": 4,
 28+      "options": {
 29+        "legend": {
 30+          "calcs": [
 31+            "min",
 32+            "max",
 33+            "mean"
 34+          ],
 35+          "displayMode": "table",
 36+          "placement": "bottom",
 37+          "showLegend": true,
 38+          "sortBy": "Mean",
 39+          "sortDesc": true
 40+        },
 41+        "tooltip": {
 42+          "mode": "multi",
 43+          "sort": "none"
 44+        }
 45+      },
 46+      "targets": [
 47+        {
 48+          "datasource": {
 49+            "type": "prometheus",
 50+            "uid": "PBFA97CFB590B2093"
 51+          },
 52+          "editorMode": "code",
 53+          "expr": "rate(soju_upstream_connect_errors_total[$__rate_interval])",
 54+          "instant": false,
 55+          "legendFormat": "Upstream Connection Errors (IRC Servers)",
 56+          "range": true,
 57+          "refId": "A"
 58+        },
 59+        {
 60+          "datasource": {
 61+            "type": "prometheus",
 62+            "uid": "PBFA97CFB590B2093"
 63+          },
 64+          "editorMode": "code",
 65+          "expr": "rate(soju_worker_panics_total[$__rate_interval])",
 66+          "hide": false,
 67+          "instant": false,
 68+          "legendFormat": "Worker Panics",
 69+          "range": true,
 70+          "refId": "B"
 71+        }
 72+      ],
 73+      "title": "Error Rates",
 74+      "type": "timeseries"
 75+    },
 76+    {
 77+      "datasource": {
 78+        "type": "prometheus",
 79+        "uid": "PBFA97CFB590B2093"
 80+      },
 81+      "fieldConfig": {
 82+        "defaults": {
 83+          "color": {
 84+            "mode": "palette-classic"
 85+          },
 86+          "custom": {
 87+            "axisBorderShow": false,
 88+            "axisCenteredZero": false,
 89+            "axisColorMode": "text",
 90+            "axisLabel": "",
 91+            "axisPlacement": "auto",
 92+            "barAlignment": 0,
 93+            "drawStyle": "line",
 94+            "fillOpacity": 0,
 95+            "gradientMode": "none",
 96+            "hideFrom": {
 97+              "legend": false,
 98+              "tooltip": false,
 99+              "viz": false
100+            },
101+            "insertNulls": false,
102+            "lineInterpolation": "linear",
103+            "lineWidth": 1,
104+            "pointSize": 5,
105+            "scaleDistribution": {
106+              "type": "linear"
107+            },
108+            "showPoints": "auto",
109+            "spanNulls": false,
110+            "stacking": {
111+              "group": "A",
112+              "mode": "none"
113+            },
114+            "thresholdsStyle": {
115+              "mode": "off"
116+            }
117+          },
118+          "mappings": [],
119+          "thresholds": {
120+            "mode": "absolute",
121+            "steps": [
122+              {
123+                "color": "green",
124+                "value": null
125+              },
126+              {
127+                "color": "red",
128+                "value": 80
129+              }
130+            ]
131+          }
132+        },
133+        "overrides": []
134+      },
135+      "gridPos": {
136+        "h": 7,
137+        "w": 12,
138         "x": 0,
139         "y": 7
140       },
141@@ -337,7 +450,147 @@
142       },
143       "gridPos": {
144         "h": 7,
145-        "w": 24,
146+        "w": 12,
147+        "x": 12,
148+        "y": 7
149+      },
150+      "id": 5,
151+      "options": {
152+        "legend": {
153+          "calcs": [
154+            "min",
155+            "max",
156+            "mean"
157+          ],
158+          "displayMode": "table",
159+          "placement": "bottom",
160+          "showLegend": true,
161+          "sortBy": "Mean",
162+          "sortDesc": true
163+        },
164+        "tooltip": {
165+          "mode": "multi",
166+          "sort": "none"
167+        }
168+      },
169+      "targets": [
170+        {
171+          "datasource": {
172+            "type": "prometheus",
173+            "uid": "PBFA97CFB590B2093"
174+          },
175+          "editorMode": "code",
176+          "expr": "rate(soju_downstream_in_messages_total[$__rate_interval])",
177+          "instant": false,
178+          "legendFormat": "Downstream In Messages",
179+          "range": true,
180+          "refId": "A"
181+        },
182+        {
183+          "datasource": {
184+            "type": "prometheus",
185+            "uid": "PBFA97CFB590B2093"
186+          },
187+          "editorMode": "code",
188+          "expr": "rate(soju_downstream_out_messages_total[$__rate_interval])",
189+          "hide": false,
190+          "instant": false,
191+          "legendFormat": "Downstream Out Messages",
192+          "range": true,
193+          "refId": "B"
194+        },
195+        {
196+          "datasource": {
197+            "type": "prometheus",
198+            "uid": "PBFA97CFB590B2093"
199+          },
200+          "editorMode": "code",
201+          "expr": "rate(soju_upstream_in_messages_total[$__rate_interval])",
202+          "hide": false,
203+          "instant": false,
204+          "legendFormat": "Upstream In Messages",
205+          "range": true,
206+          "refId": "C"
207+        },
208+        {
209+          "datasource": {
210+            "type": "prometheus",
211+            "uid": "PBFA97CFB590B2093"
212+          },
213+          "editorMode": "code",
214+          "expr": "rate(soju_upstream_out_messages_total[$__rate_interval])",
215+          "hide": false,
216+          "instant": false,
217+          "legendFormat": "Upstream Out Messages",
218+          "range": true,
219+          "refId": "D"
220+        }
221+      ],
222+      "title": "Message Rates",
223+      "type": "timeseries"
224+    },
225+    {
226+      "datasource": {
227+        "type": "prometheus",
228+        "uid": "PBFA97CFB590B2093"
229+      },
230+      "fieldConfig": {
231+        "defaults": {
232+          "color": {
233+            "mode": "palette-classic"
234+          },
235+          "custom": {
236+            "axisBorderShow": false,
237+            "axisCenteredZero": false,
238+            "axisColorMode": "text",
239+            "axisLabel": "",
240+            "axisPlacement": "auto",
241+            "barAlignment": 0,
242+            "drawStyle": "line",
243+            "fillOpacity": 0,
244+            "gradientMode": "none",
245+            "hideFrom": {
246+              "legend": false,
247+              "tooltip": false,
248+              "viz": false
249+            },
250+            "insertNulls": false,
251+            "lineInterpolation": "linear",
252+            "lineWidth": 1,
253+            "pointSize": 5,
254+            "scaleDistribution": {
255+              "type": "linear"
256+            },
257+            "showPoints": "auto",
258+            "spanNulls": false,
259+            "stacking": {
260+              "group": "A",
261+              "mode": "none"
262+            },
263+            "thresholdsStyle": {
264+              "mode": "off"
265+            }
266+          },
267+          "mappings": [],
268+          "thresholds": {
269+            "mode": "absolute",
270+            "steps": [
271+              {
272+                "color": "green",
273+                "value": null
274+              },
275+              {
276+                "color": "red",
277+                "value": 80
278+              }
279+            ]
280+          }
281+        },
282+        "overrides": []
283+      },
284+      "gridPos": {
285+        "h": 7,
286+        "w": 12,
287         "x": 0,
288         "y": 14
289       },
290@@ -402,6 +655,133 @@
291       ],
292       "title": "Connections",
293       "type": "timeseries"
294+    },
295+    {
296+      "datasource": {
297+        "type": "prometheus",
298+        "uid": "PBFA97CFB590B2093"
299+      },
300+      "fieldConfig": {
301+        "defaults": {
302+          "color": {
303+            "mode": "palette-classic"
304+          },
305+          "custom": {
306+            "axisBorderShow": false,
307+            "axisCenteredZero": false,
308+            "axisColorMode": "text",
309+            "axisLabel": "",
310+            "axisPlacement": "auto",
311+            "barAlignment": 0,
312+            "drawStyle": "line",
313+            "fillOpacity": 0,
314+            "gradientMode": "none",
315+            "hideFrom": {
316+              "legend": false,
317+              "tooltip": false,
318+              "viz": false
319+            },
320+            "insertNulls": false,
321+            "lineInterpolation": "linear",
322+            "lineWidth": 1,
323+            "pointSize": 5,
324+            "scaleDistribution": {
325+              "type": "linear"
326+            },
327+            "showPoints": "auto",
328+            "spanNulls": false,
329+            "stacking": {
330+              "group": "A",
331+              "mode": "none"
332+            },
333+            "thresholdsStyle": {
334+              "mode": "off"
335+            }
336+          },
337+          "mappings": [],
338+          "thresholds": {
339+            "mode": "absolute",
340+            "steps": [
341+              {
342+                "color": "green",
343+                "value": null
344+              },
345+              {
346+                "color": "red",
347+                "value": 80
348+              }
349+            ]
350+          }
351+        },
352+        "overrides": []
353+      },
354+      "gridPos": {
355+        "h": 7,
356+        "w": 12,
357+        "x": 12,
358+        "y": 14
359+      },
360+      "id": 6,
361+      "options": {
362+        "legend": {
363+          "calcs": [
364+            "min",
365+            "max",
366+            "mean"
367+          ],
368+          "displayMode": "table",
369+          "placement": "bottom",
370+          "showLegend": true,
371+          "sortBy": "Mean",
372+          "sortDesc": true
373+        },
374+        "tooltip": {
375+          "mode": "multi",
376+          "sort": "none"
377+        }
378+      },
379+      "targets": [
380+        {
381+          "datasource": {
382+            "type": "prometheus",
383+            "uid": "PBFA97CFB590B2093"
384+          },
385+          "editorMode": "code",
386+          "expr": "rate(soju_users_active[$__rate_interval])",
387+          "instant": false,
388+          "legendFormat": "Active Users",
389+          "range": true,
390+          "refId": "A"
391+        },
392+        {
393+          "datasource": {
394+            "type": "prometheus",
395+            "uid": "PBFA97CFB590B2093"
396+          },
397+          "editorMode": "code",
398+          "expr": "rate(soju_upstreams_active[$__rate_interval])",
399+          "hide": false,
400+          "instant": false,
401+          "legendFormat": "Active Upstreams (IRC Servers)",
402+          "range": true,
403+          "refId": "B"
404+        },
405+        {
406+          "datasource": {
407+            "type": "prometheus",
408+            "uid": "PBFA97CFB590B2093"
409+          },
410+          "editorMode": "code",
411+          "expr": "rate(soju_downstreams_active[$__rate_interval])",
412+          "hide": false,
413+          "instant": false,
414+          "legendFormat": "Active Downstreams (IRC Clients)",
415+          "range": true,
416+          "refId": "C"
417+        }
418+      ],
419+      "title": "Connection Rates",
420+      "type": "timeseries"
421     }
422   ],
423   "refresh": "",
424@@ -411,13 +791,13 @@
425     "list": []
426   },
427   "time": {
428-    "from": "now-15m",
429+    "from": "now-6h",
430     "to": "now"
431   },
432   "timepicker": {},
433   "timezone": "",
434   "title": "Soju",
435   "uid": "f912f4eb-4793-487a-9360-6a155e5802e3",
436-  "version": 2,
437+  "version": 3,
438   "weekStart": ""
439 }