Compare commits

...

3 commits

Author SHA1 Message Date
f275df95e5
bump china-domains 2025-03-26 11:25:10 +08:00
f1ec49cc58
modules/monitor: show truncated alerts count 2025-03-26 11:24:59 +08:00
e5ddc316b6
calcite: add spot 2025-03-26 11:22:36 +08:00
4 changed files with 1203 additions and 383 deletions

View file

@ -321,6 +321,7 @@ in
vlc
obs-studio
spotify
spot
# IM
element-desktop
tdesktop

View file

@ -91,10 +91,6 @@ in
${pkgs.comma}/bin/comma $argv
end
set -gx LS_COLORS (${lib.getExe pkgs.vivid} generate catppuccin-mocha)
alias ctlsp="systemctl stop"
alias ctlst="systemctl start"
alias ctlrt="systemctl restart"
alias ctls="systemctl status"
''
else
"";

File diff suppressed because it is too large Load diff

View file

@ -120,11 +120,12 @@ in
webhook_configs = [
{
url = "${ntfyUrl}/prometheus-alerts?tpl=yes&m=${lib.escapeURL ''
{{range .alerts}}{{ if eq .status "resolved" }}{{ else }}{{ if eq .status "firing" }}🔥{{end}}{{end}}{{.labels.alertname}}
{{.annotations.summary}}
{{end}}''}";
{{ if eq .truncatedAlerts 0 }}{{ else }}{{.truncatedAlerts}} truncated
{{end}}{{range .alerts}}{{ if eq .status "resolved" }}{{ else }}{{ if eq .status "firing" }}🔥{{end}}{{end}}{{.labels.alertname}}
{{.annotations.summary}}
{{end}}''}";
send_resolved = true;
max_alerts = 5;
max_alerts = 10;
}
];
}