feat(kromgo)!: no suppressed alerts, Times New Ramen

This commit is contained in:
JJGadgets
2024-08-26 22:23:59 +08:00
parent 74ed70f414
commit 367a91cdf1
3 changed files with 17 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/kashalls/kromgo/main/config.schema.json
badge:
font: TimesNewRamen.woff
size: 12
metrics:
# Kubernetes cluster
- name: cluster_cpu_usage
@@ -89,7 +92,8 @@ metrics:
- name: prometheus_active_alerts
title: Biohazard - Active Alerts
query: count(ALERTS{alertstate="firing"})
#query: count(ALERTS{alertstate="firing"})
query: max(alertmanager_alerts{state="active"}) # doesn't count suppressed
colors:
- { color: "green", min: 0, max: 1 }
- { color: "orange", min: 2, max: 4 }

View File

@@ -6,6 +6,11 @@ configMapGenerator:
namespace: kromgo
files:
- config.yaml
#secretGenerator:
- name: kromgo-fonts
namespace: kromgo
files:
- 'TimesNewRamen.woff=https://raw.githubusercontent.com/okfocus/times-new-ramen/ca4ebcaff98e0aa4e2746f7d7c0fad09c63e0b67/TimesNewRamen-Regular.woff'
generatorOptions:
disableNameSuffixHash: true
annotations:

View File

@@ -102,6 +102,13 @@ spec:
- subPath: config.yaml
path: /kromgo/config.yaml
readOnly: true
fonts:
type: configMap
name: kromgo-fonts
globalMounts:
- subPath: TimesNewRamen.woff
path: /kromgo/TimesNewRamen.woff
readOnly: true
defaultPodOptions:
automountServiceAccountToken: false
enableServiceLinks: false