My Grafana dashboard for monitoring my self hosted cluster.

3 days ago by Legion739 to c/selfhosted

I made a Grafana Master-dashboard to monitor my Kubernetes cluster.

Features:

  1. Health bar at the top, that will turn amber or red when things go wrong, and send push notifications to my phone
  2. CPU, Memory and Network utilization
  3. Database and Storage backup statuses

I also added CPU/Memory usage request monitoring so that I can tune how much CPU/Memory a pod requests in the cluster.
image

And active alerts
image
I've muted these two, I need to add a 3rd node with more CPU and ram, currently if one node goes down there isn't enough redundancy for the cluster to just keep working.

Lots more detail here: https://erasmus.works/ It's all Open-Source, leave a Star on my repo if you like what you see.

Legion739 21 points 3 days ago

Preemptively responding to this, because I just know there's going to be a comment about this.

Yes Yes I know, GitHub, screw GitHub, Screw Microslop. I am trying to move away from Big Tech as much as possible, but it's a marathon not a sprint, and every win should be celebrated.

Perfection is the enemy of good.
.

path: 0 26243391, hotness: undefined, score: 21, children: 2
hoshikarakitaridia 9 points 3 days ago

every win should be celebrated

Yeah we could have some more of that here on Lemmy because people tend to be quite negative.

Honestly that's awesome, I didn't manage to get grafana working when I tried exactly this, I'll definitely check out any guides you used ^^

path: 0 26243391 26243727, hotness: undefined, score: 9, children: 1
Legion739 2 points 3 days ago

Thanks!

I took a lot of inspiration from here https://github.com/onedr0p/home-ops, there is also a discord server on there where you can ask people for help, they are quite helpful.

I mostly shopped around and found parts and implementations I liked and coppied that and made it my own

path: 0 26243391 26243727 26244011, hotness: undefined, score: 2, children: 0
INeedMana 7 points 3 days ago

running pods: 98

Oof, my lab is lightweight compared to yours but I've been thinking of putting up a grafana for mine too. Would you mind sharing how much resources it takes to run and roughly how much storage does, let's say, a month of data take? I know that it all depends on what one puts inside but just as a reference point

path: 0 26243871, hotness: undefined, score: 7, children: 1
Legion739 3 points 3 days ago

See the "monitoring" namespace

image

kube-prometheus-stack plus VictoriaLogs for logs, about 100 pods on 2 nodes.

The whole stack uses about 2.2 GB RAM. Prometheus takes about 1.1 GB of that and Grafana about 700 MB. CPU is basically idle, around 0.2 cores.

Prometheus has about 150k series and uses about 7 GB for 15 days of metrics, so roughly 14 GB a month. Logs are about 3 GB a month. Grafana itself is under 1 GB.

It's mostly the default exporters, so a smaller lab would need less. A 20 GB volume would be plenty.

Prometheus is set to retention: 15d and retentionSize: 18GB. Anything older than 15 days is dropped, and so is the oldest data if the total goes over 18 GB, whichever happens first. It's sitting at a steady ~7 GB now that it has a full 15 days stored.

path: 0 26243871 26244092, hotness: undefined, score: 3, children: 0
myrmidex 4 points 3 days ago

😍

path: 0 26243499, hotness: undefined, score: 4, children: 0
jet 1 point 2 days ago

This is great! much more organized then my fever dream local dashboard!

slap dash

path: 0 26257929, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62898
6787
5509

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...