Skip to content

Commit

Permalink
chore(github): update readme images
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 15, 2023
1 parent e2096ce commit b5c4b2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ _... 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)

![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=Nodes&cacheSeconds=60)
![Pods](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&cacheSeconds=60)
![CPU](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&cacheSeconds=60)
![Power](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&cacheSeconds=60)

</div>

---
Expand Down
10 changes: 9 additions & 1 deletion kubernetes/apps/default/kromgo/app/configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -13,9 +17,13 @@ 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)
query: round(upsAdvanceOutputPower, 0.1)
suffix: "w"
colors:
- { color: "green", min: 0, max: 400 }
Expand Down

0 comments on commit b5c4b2d

Please sign in to comment.