From c67250fd58ce193f0ae352cdccc5b67cac0780fc Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Fri, 15 Dec 2023 16:20:00 -0600 Subject: [PATCH] chore(github): update readme images --- README.md | 8 +++++++- kubernetes/apps/default/kromgo/app/configs/config.yaml | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a88352faf2..5c5d4074d2 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,16 @@ _... automated via [Flux](https://fluxcd.io), [Renovate](https://github.com/reno [![Kubernetes](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fburoa%2Fk8s-gitops%2Fmaster%2Fkubernetes%2Fapps%2Fkube-system%2Fsystem-upgrade-controller%2Fplans%2Fkubernetes.yaml&query=%24.spec.version&style=for-the-badge&logo=kubernetes&logoColor=white&label=%20)](https://k8s.io) [![Renovate](https://img.shields.io/github/actions/workflow/status/buroa/k8s-gitops/renovate.yaml?branch=master&label=&logo=renovatebot&style=for-the-badge&color=blue)](https://github.com/buroa/k8s-gitops/actions/workflows/renovate.yaml) -[![Home-Internet](https://img.shields.io/uptimerobot/status/m794001384-01d2febd339773320ef5aae1?label=Home%20Internet&style=for-the-badge&logo=google-home&logoColor=white)](https://status.ktwo.io) +[![Home-Internet](https://img.shields.io/uptimerobot/status/m794001384-01d2febd339773320ef5aae1?label=Home%20Internet&style=for-the-badge&logo=ubiquiti&logoColor=white)](https://status.ktwo.io) [![Plex](https://img.shields.io/uptimerobot/status/m793802743-0b6044ca7f1ec92851b9a495?label=Plex&style=for-the-badge&logo=plex&logoColor=white)](https://status.ktwo.io/endpoints/_plex) [![Overseerr](https://img.shields.io/uptimerobot/status/m793802757-ca314435a1d7b7dc1ca5dac9?label=Overseerr&style=for-the-badge&logo=insomnia&logoColor=white)](https://status.ktwo.io/endpoints/_overseerr) +![Ready-Nodes](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.ktwo.io%2Fquery%3Fformat%3Dendpoint%26metric%3Dcluster_node_count&style=for-the-badge&label=Ready%20Nodes&cacheSeconds=60) +![CPU-Usage](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.ktwo.io%2Fquery%3Fformat%3Dendpoint%26metric%3Dcluster_node_cpu&style=for-the-badge&label=CPU%20Usage&cacheSeconds=60) +![Pods-Running](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.ktwo.io%2Fquery%3Fformat%3Dendpoint%26metric%3Dcluster_pods_count&style=for-the-badge&label=Pods%20Running&cacheSeconds=60) +![Power-Usage](https://img.shields.io/endpoint?url=https%3A%2F%2Fkromgo.ktwo.io%2Fquery%3Fformat%3Dendpoint%26metric%3Dcluster_power_usage&style=for-the-badge&label=Power%20Usage&cacheSeconds=60) + + --- diff --git a/kubernetes/apps/default/kromgo/app/configs/config.yaml b/kubernetes/apps/default/kromgo/app/configs/config.yaml index ad1a81c37f..1952c9bab0 100644 --- a/kubernetes/apps/default/kromgo/app/configs/config.yaml +++ b/kubernetes/apps/default/kromgo/app/configs/config.yaml @@ -2,6 +2,10 @@ metrics: - name: cluster_node_count query: count(count by (node) (kube_node_status_condition{condition="Ready"})) + colors: + - { color: "red", min: 0, max: 3 } + - { color: "orange", min: 4, max: 5 } + - { color: "green", min: 6, max: 100 } - name: cluster_node_cpu query: round(cluster:node_cpu:ratio_rate5m * 100, 0.1) @@ -13,6 +17,10 @@ metrics: - name: cluster_pods_count query: sum(kube_pod_status_phase{phase="Running"}) + colors: + - { color: "green", min: 0, max: 350 } + - { color: "orange", min: 351, max: 500 } + - { color: "red", min: 501, max: 1000 } - name: cluster_power_usage query: round(avg_over_time(upsAdvanceOutputPower[5m]), 0.1)