repos / ops

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

ops / monitoring / grafana / config / provisioning / dashboards
Antonio Mika · 15 Jan 24

soju.json

  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  "links": [],
 22  "liveNow": false,
 23  "panels": [
 24    {
 25      "datasource": {
 26        "type": "prometheus",
 27        "uid": "PBFA97CFB590B2093"
 28      },
 29      "fieldConfig": {
 30        "defaults": {
 31          "color": {
 32            "mode": "palette-classic"
 33          },
 34          "custom": {
 35            "axisBorderShow": false,
 36            "axisCenteredZero": false,
 37            "axisColorMode": "text",
 38            "axisLabel": "",
 39            "axisPlacement": "auto",
 40            "barAlignment": 0,
 41            "drawStyle": "line",
 42            "fillOpacity": 0,
 43            "gradientMode": "none",
 44            "hideFrom": {
 45              "legend": false,
 46              "tooltip": false,
 47              "viz": false
 48            },
 49            "insertNulls": false,
 50            "lineInterpolation": "linear",
 51            "lineWidth": 1,
 52            "pointSize": 5,
 53            "scaleDistribution": {
 54              "type": "linear"
 55            },
 56            "showPoints": "auto",
 57            "spanNulls": false,
 58            "stacking": {
 59              "group": "A",
 60              "mode": "none"
 61            },
 62            "thresholdsStyle": {
 63              "mode": "off"
 64            }
 65          },
 66          "mappings": [],
 67          "thresholds": {
 68            "mode": "absolute",
 69            "steps": [
 70              {
 71                "color": "green",
 72                "value": null
 73              },
 74              {
 75                "color": "red",
 76                "value": 80
 77              }
 78            ]
 79          }
 80        },
 81        "overrides": []
 82      },
 83      "gridPos": {
 84        "h": 7,
 85        "w": 12,
 86        "x": 0,
 87        "y": 0
 88      },
 89      "id": 3,
 90      "options": {
 91        "legend": {
 92          "calcs": [
 93            "min",
 94            "max",
 95            "mean"
 96          ],
 97          "displayMode": "table",
 98          "placement": "bottom",
 99          "showLegend": true,
100          "sortBy": "Mean",
101          "sortDesc": true
102        },
103        "tooltip": {
104          "mode": "multi",
105          "sort": "none"
106        }
107      },
108      "targets": [
109        {
110          "datasource": {
111            "type": "prometheus",
112            "uid": "PBFA97CFB590B2093"
113          },
114          "editorMode": "code",
115          "expr": "soju_upstream_connect_errors_total",
116          "instant": false,
117          "legendFormat": "Upstream Connection Errors (IRC Servers)",
118          "range": true,
119          "refId": "A"
120        },
121        {
122          "datasource": {
123            "type": "prometheus",
124            "uid": "PBFA97CFB590B2093"
125          },
126          "editorMode": "code",
127          "expr": "soju_worker_panics_total",
128          "hide": false,
129          "instant": false,
130          "legendFormat": "Worker Panics",
131          "range": true,
132          "refId": "B"
133        }
134      ],
135      "title": "Errors",
136      "type": "timeseries"
137    },
138    {
139      "datasource": {
140        "type": "prometheus",
141        "uid": "PBFA97CFB590B2093"
142      },
143      "fieldConfig": {
144        "defaults": {
145          "color": {
146            "mode": "palette-classic"
147          },
148          "custom": {
149            "axisBorderShow": false,
150            "axisCenteredZero": false,
151            "axisColorMode": "text",
152            "axisLabel": "",
153            "axisPlacement": "auto",
154            "barAlignment": 0,
155            "drawStyle": "line",
156            "fillOpacity": 0,
157            "gradientMode": "none",
158            "hideFrom": {
159              "legend": false,
160              "tooltip": false,
161              "viz": false
162            },
163            "insertNulls": false,
164            "lineInterpolation": "linear",
165            "lineWidth": 1,
166            "pointSize": 5,
167            "scaleDistribution": {
168              "type": "linear"
169            },
170            "showPoints": "auto",
171            "spanNulls": false,
172            "stacking": {
173              "group": "A",
174              "mode": "none"
175            },
176            "thresholdsStyle": {
177              "mode": "off"
178            }
179          },
180          "mappings": [],
181          "thresholds": {
182            "mode": "absolute",
183            "steps": [
184              {
185                "color": "green",
186                "value": null
187              },
188              {
189                "color": "red",
190                "value": 80
191              }
192            ]
193          }
194        },
195        "overrides": []
196      },
197      "gridPos": {
198        "h": 7,
199        "w": 12,
200        "x": 12,
201        "y": 0
202      },
203      "id": 4,
204      "options": {
205        "legend": {
206          "calcs": [
207            "min",
208            "max",
209            "mean"
210          ],
211          "displayMode": "table",
212          "placement": "bottom",
213          "showLegend": true,
214          "sortBy": "Mean",
215          "sortDesc": true
216        },
217        "tooltip": {
218          "mode": "multi",
219          "sort": "none"
220        }
221      },
222      "targets": [
223        {
224          "datasource": {
225            "type": "prometheus",
226            "uid": "PBFA97CFB590B2093"
227          },
228          "editorMode": "code",
229          "expr": "rate(soju_upstream_connect_errors_total[$__rate_interval])",
230          "instant": false,
231          "legendFormat": "Upstream Connection Errors (IRC Servers)",
232          "range": true,
233          "refId": "A"
234        },
235        {
236          "datasource": {
237            "type": "prometheus",
238            "uid": "PBFA97CFB590B2093"
239          },
240          "editorMode": "code",
241          "expr": "rate(soju_worker_panics_total[$__rate_interval])",
242          "hide": false,
243          "instant": false,
244          "legendFormat": "Worker Panics",
245          "range": true,
246          "refId": "B"
247        }
248      ],
249      "title": "Error Rates",
250      "type": "timeseries"
251    },
252    {
253      "datasource": {
254        "type": "prometheus",
255        "uid": "PBFA97CFB590B2093"
256      },
257      "fieldConfig": {
258        "defaults": {
259          "color": {
260            "mode": "palette-classic"
261          },
262          "custom": {
263            "axisBorderShow": false,
264            "axisCenteredZero": false,
265            "axisColorMode": "text",
266            "axisLabel": "",
267            "axisPlacement": "auto",
268            "barAlignment": 0,
269            "drawStyle": "line",
270            "fillOpacity": 0,
271            "gradientMode": "none",
272            "hideFrom": {
273              "legend": false,
274              "tooltip": false,
275              "viz": false
276            },
277            "insertNulls": false,
278            "lineInterpolation": "linear",
279            "lineWidth": 1,
280            "pointSize": 5,
281            "scaleDistribution": {
282              "type": "linear"
283            },
284            "showPoints": "auto",
285            "spanNulls": false,
286            "stacking": {
287              "group": "A",
288              "mode": "none"
289            },
290            "thresholdsStyle": {
291              "mode": "off"
292            }
293          },
294          "mappings": [],
295          "thresholds": {
296            "mode": "absolute",
297            "steps": [
298              {
299                "color": "green",
300                "value": null
301              },
302              {
303                "color": "red",
304                "value": 80
305              }
306            ]
307          }
308        },
309        "overrides": []
310      },
311      "gridPos": {
312        "h": 7,
313        "w": 12,
314        "x": 0,
315        "y": 7
316      },
317      "id": 2,
318      "options": {
319        "legend": {
320          "calcs": [
321            "min",
322            "max",
323            "mean"
324          ],
325          "displayMode": "table",
326          "placement": "bottom",
327          "showLegend": true,
328          "sortBy": "Mean",
329          "sortDesc": true
330        },
331        "tooltip": {
332          "mode": "multi",
333          "sort": "none"
334        }
335      },
336      "targets": [
337        {
338          "datasource": {
339            "type": "prometheus",
340            "uid": "PBFA97CFB590B2093"
341          },
342          "editorMode": "code",
343          "expr": "soju_downstream_in_messages_total",
344          "instant": false,
345          "legendFormat": "Downstream In Messages",
346          "range": true,
347          "refId": "A"
348        },
349        {
350          "datasource": {
351            "type": "prometheus",
352            "uid": "PBFA97CFB590B2093"
353          },
354          "editorMode": "code",
355          "expr": "soju_downstream_out_messages_total",
356          "hide": false,
357          "instant": false,
358          "legendFormat": "Downstream Out Messages",
359          "range": true,
360          "refId": "B"
361        },
362        {
363          "datasource": {
364            "type": "prometheus",
365            "uid": "PBFA97CFB590B2093"
366          },
367          "editorMode": "code",
368          "expr": "soju_upstream_in_messages_total",
369          "hide": false,
370          "instant": false,
371          "legendFormat": "Upstream In Messages",
372          "range": true,
373          "refId": "C"
374        },
375        {
376          "datasource": {
377            "type": "prometheus",
378            "uid": "PBFA97CFB590B2093"
379          },
380          "editorMode": "code",
381          "expr": "soju_upstream_out_messages_total",
382          "hide": false,
383          "instant": false,
384          "legendFormat": "Upstream Out Messages",
385          "range": true,
386          "refId": "D"
387        }
388      ],
389      "title": "Messages",
390      "type": "timeseries"
391    },
392    {
393      "datasource": {
394        "type": "prometheus",
395        "uid": "PBFA97CFB590B2093"
396      },
397      "fieldConfig": {
398        "defaults": {
399          "color": {
400            "mode": "palette-classic"
401          },
402          "custom": {
403            "axisBorderShow": false,
404            "axisCenteredZero": false,
405            "axisColorMode": "text",
406            "axisLabel": "",
407            "axisPlacement": "auto",
408            "barAlignment": 0,
409            "drawStyle": "line",
410            "fillOpacity": 0,
411            "gradientMode": "none",
412            "hideFrom": {
413              "legend": false,
414              "tooltip": false,
415              "viz": false
416            },
417            "insertNulls": false,
418            "lineInterpolation": "linear",
419            "lineWidth": 1,
420            "pointSize": 5,
421            "scaleDistribution": {
422              "type": "linear"
423            },
424            "showPoints": "auto",
425            "spanNulls": false,
426            "stacking": {
427              "group": "A",
428              "mode": "none"
429            },
430            "thresholdsStyle": {
431              "mode": "off"
432            }
433          },
434          "mappings": [],
435          "thresholds": {
436            "mode": "absolute",
437            "steps": [
438              {
439                "color": "green",
440                "value": null
441              },
442              {
443                "color": "red",
444                "value": 80
445              }
446            ]
447          }
448        },
449        "overrides": []
450      },
451      "gridPos": {
452        "h": 7,
453        "w": 12,
454        "x": 12,
455        "y": 7
456      },
457      "id": 5,
458      "options": {
459        "legend": {
460          "calcs": [
461            "min",
462            "max",
463            "mean"
464          ],
465          "displayMode": "table",
466          "placement": "bottom",
467          "showLegend": true,
468          "sortBy": "Mean",
469          "sortDesc": true
470        },
471        "tooltip": {
472          "mode": "multi",
473          "sort": "none"
474        }
475      },
476      "targets": [
477        {
478          "datasource": {
479            "type": "prometheus",
480            "uid": "PBFA97CFB590B2093"
481          },
482          "editorMode": "code",
483          "expr": "rate(soju_downstream_in_messages_total[$__rate_interval])",
484          "instant": false,
485          "legendFormat": "Downstream In Messages",
486          "range": true,
487          "refId": "A"
488        },
489        {
490          "datasource": {
491            "type": "prometheus",
492            "uid": "PBFA97CFB590B2093"
493          },
494          "editorMode": "code",
495          "expr": "rate(soju_downstream_out_messages_total[$__rate_interval])",
496          "hide": false,
497          "instant": false,
498          "legendFormat": "Downstream Out Messages",
499          "range": true,
500          "refId": "B"
501        },
502        {
503          "datasource": {
504            "type": "prometheus",
505            "uid": "PBFA97CFB590B2093"
506          },
507          "editorMode": "code",
508          "expr": "rate(soju_upstream_in_messages_total[$__rate_interval])",
509          "hide": false,
510          "instant": false,
511          "legendFormat": "Upstream In Messages",
512          "range": true,
513          "refId": "C"
514        },
515        {
516          "datasource": {
517            "type": "prometheus",
518            "uid": "PBFA97CFB590B2093"
519          },
520          "editorMode": "code",
521          "expr": "rate(soju_upstream_out_messages_total[$__rate_interval])",
522          "hide": false,
523          "instant": false,
524          "legendFormat": "Upstream Out Messages",
525          "range": true,
526          "refId": "D"
527        }
528      ],
529      "title": "Message Rates",
530      "type": "timeseries"
531    },
532    {
533      "datasource": {
534        "type": "prometheus",
535        "uid": "PBFA97CFB590B2093"
536      },
537      "fieldConfig": {
538        "defaults": {
539          "color": {
540            "mode": "palette-classic"
541          },
542          "custom": {
543            "axisBorderShow": false,
544            "axisCenteredZero": false,
545            "axisColorMode": "text",
546            "axisLabel": "",
547            "axisPlacement": "auto",
548            "barAlignment": 0,
549            "drawStyle": "line",
550            "fillOpacity": 0,
551            "gradientMode": "none",
552            "hideFrom": {
553              "legend": false,
554              "tooltip": false,
555              "viz": false
556            },
557            "insertNulls": false,
558            "lineInterpolation": "linear",
559            "lineWidth": 1,
560            "pointSize": 5,
561            "scaleDistribution": {
562              "type": "linear"
563            },
564            "showPoints": "auto",
565            "spanNulls": false,
566            "stacking": {
567              "group": "A",
568              "mode": "none"
569            },
570            "thresholdsStyle": {
571              "mode": "off"
572            }
573          },
574          "mappings": [],
575          "thresholds": {
576            "mode": "absolute",
577            "steps": [
578              {
579                "color": "green",
580                "value": null
581              },
582              {
583                "color": "red",
584                "value": 80
585              }
586            ]
587          }
588        },
589        "overrides": []
590      },
591      "gridPos": {
592        "h": 7,
593        "w": 12,
594        "x": 0,
595        "y": 14
596      },
597      "id": 1,
598      "options": {
599        "legend": {
600          "calcs": [
601            "min",
602            "max",
603            "mean"
604          ],
605          "displayMode": "table",
606          "placement": "bottom",
607          "showLegend": true,
608          "sortBy": "Mean",
609          "sortDesc": true
610        },
611        "tooltip": {
612          "mode": "multi",
613          "sort": "none"
614        }
615      },
616      "targets": [
617        {
618          "datasource": {
619            "type": "prometheus",
620            "uid": "PBFA97CFB590B2093"
621          },
622          "editorMode": "code",
623          "expr": "soju_users_active",
624          "instant": false,
625          "legendFormat": "Active Users",
626          "range": true,
627          "refId": "A"
628        },
629        {
630          "datasource": {
631            "type": "prometheus",
632            "uid": "PBFA97CFB590B2093"
633          },
634          "editorMode": "code",
635          "expr": "soju_upstreams_active",
636          "hide": false,
637          "instant": false,
638          "legendFormat": "Active Upstreams (IRC Servers)",
639          "range": true,
640          "refId": "B"
641        },
642        {
643          "datasource": {
644            "type": "prometheus",
645            "uid": "PBFA97CFB590B2093"
646          },
647          "editorMode": "code",
648          "expr": "soju_downstreams_active",
649          "hide": false,
650          "instant": false,
651          "legendFormat": "Active Downstreams (IRC Clients)",
652          "range": true,
653          "refId": "C"
654        }
655      ],
656      "title": "Connections",
657      "type": "timeseries"
658    },
659    {
660      "datasource": {
661        "type": "prometheus",
662        "uid": "PBFA97CFB590B2093"
663      },
664      "fieldConfig": {
665        "defaults": {
666          "color": {
667            "mode": "palette-classic"
668          },
669          "custom": {
670            "axisBorderShow": false,
671            "axisCenteredZero": false,
672            "axisColorMode": "text",
673            "axisLabel": "",
674            "axisPlacement": "auto",
675            "barAlignment": 0,
676            "drawStyle": "line",
677            "fillOpacity": 0,
678            "gradientMode": "none",
679            "hideFrom": {
680              "legend": false,
681              "tooltip": false,
682              "viz": false
683            },
684            "insertNulls": false,
685            "lineInterpolation": "linear",
686            "lineWidth": 1,
687            "pointSize": 5,
688            "scaleDistribution": {
689              "type": "linear"
690            },
691            "showPoints": "auto",
692            "spanNulls": false,
693            "stacking": {
694              "group": "A",
695              "mode": "none"
696            },
697            "thresholdsStyle": {
698              "mode": "off"
699            }
700          },
701          "mappings": [],
702          "thresholds": {
703            "mode": "absolute",
704            "steps": [
705              {
706                "color": "green",
707                "value": null
708              },
709              {
710                "color": "red",
711                "value": 80
712              }
713            ]
714          }
715        },
716        "overrides": []
717      },
718      "gridPos": {
719        "h": 7,
720        "w": 12,
721        "x": 12,
722        "y": 14
723      },
724      "id": 6,
725      "options": {
726        "legend": {
727          "calcs": [
728            "min",
729            "max",
730            "mean"
731          ],
732          "displayMode": "table",
733          "placement": "bottom",
734          "showLegend": true,
735          "sortBy": "Mean",
736          "sortDesc": true
737        },
738        "tooltip": {
739          "mode": "multi",
740          "sort": "none"
741        }
742      },
743      "targets": [
744        {
745          "datasource": {
746            "type": "prometheus",
747            "uid": "PBFA97CFB590B2093"
748          },
749          "editorMode": "code",
750          "expr": "rate(soju_users_active[$__rate_interval])",
751          "instant": false,
752          "legendFormat": "Active Users",
753          "range": true,
754          "refId": "A"
755        },
756        {
757          "datasource": {
758            "type": "prometheus",
759            "uid": "PBFA97CFB590B2093"
760          },
761          "editorMode": "code",
762          "expr": "rate(soju_upstreams_active[$__rate_interval])",
763          "hide": false,
764          "instant": false,
765          "legendFormat": "Active Upstreams (IRC Servers)",
766          "range": true,
767          "refId": "B"
768        },
769        {
770          "datasource": {
771            "type": "prometheus",
772            "uid": "PBFA97CFB590B2093"
773          },
774          "editorMode": "code",
775          "expr": "rate(soju_downstreams_active[$__rate_interval])",
776          "hide": false,
777          "instant": false,
778          "legendFormat": "Active Downstreams (IRC Clients)",
779          "range": true,
780          "refId": "C"
781        }
782      ],
783      "title": "Connection Rates",
784      "type": "timeseries"
785    }
786  ],
787  "refresh": "",
788  "schemaVersion": 38,
789  "tags": [],
790  "templating": {
791    "list": []
792  },
793  "time": {
794    "from": "now-6h",
795    "to": "now"
796  },
797  "timepicker": {},
798  "timezone": "",
799  "title": "Soju",
800  "uid": "f912f4eb-4793-487a-9360-6a155e5802e3",
801  "version": 3,
802  "weekStart": ""
803}