repos / ops

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

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