From c9197b9bfd5cd3ab49ee7dfdc81d207715ccd5d8 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 23 Feb 2026 14:19:55 +0100 Subject: prometheus: modernize console + alerts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/prometheus/files/consoles/index.html | 163 +++++++++++++++------------ 1 file changed, 92 insertions(+), 71 deletions(-) (limited to 'bundles/prometheus/files/consoles/index.html') diff --git a/bundles/prometheus/files/consoles/index.html b/bundles/prometheus/files/consoles/index.html index 29c2884..f0b102d 100644 --- a/bundles/prometheus/files/consoles/index.html +++ b/bundles/prometheus/files/consoles/index.html @@ -1,81 +1,102 @@ -{{/* vim: set ft=html: */}} +{{/* vim: set ft=gotmpl: */}} -{{ define "menu" }} -foobar +{{ define "s6_rc_services_count" }} +{{ $instance := .arg0 }}{{ $bundle := .arg1 }} +{{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{instance='%s',bundle='%s',service=~'.*-srv'}" $instance $bundle)) }} {{ end }} {{ template "head" . }} -{{ template "prom_right_table_head" . }} - - S6 - inazuma - - - default - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='inazuma',bundle='default'}")) }} - - - containers - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='inazuma',bundle='containers'}")) }} - - - www - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='inazuma',bundle='www'}")) }} - - - services - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='inazuma',bundle='services'}")) }} - - - S6 - shimakaze - - - default - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='shimakaze',bundle='default'}")) }} - - - containers - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='shimakaze',bundle='containers'}")) }} - - - www - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='shimakaze',bundle='www'}")) }} - - - services - {{ template "prom_query_drilldown" (args (printf "s6_rc_services_count{job='node-exporter',instance='shimakaze',bundle='services'}")) }} - -{{ template "prom_right_table_tail" . }} - {{ template "prom_content_head" . }}
-

Overview

-

Traefik Requests OK - inazuma

-
- -

Jellyfin HTTP Requests - shimakaze

-
- +
+

Overview

+ IZ: {{ template "s6_rc_services_count" (args "inazuma" "default") }} + SK: {{ template "s6_rc_services_count" (args "shimakaze" "default") }} +
+
+

Traefik Latency

+
+ +
+
+

Node CPU Utilisation

+
+ +
+
+

Node CPU Saturation

+
+ +
+
+

Node Memory Utilisation

+
+ +
+
+

Node Memory Saturation

+
+ +
{{ template "prom_content_tail" . }} -- cgit 1.4.1