Easy Monitoring + Logging Stack in Kubernetes Cluster With Helm

There are many helm chart available on internet. I prefer to use from https://artifacthub.io/ because i see the stack always updated/maintained. From there i found 2 most used choice : ELK Stack, and Loki + Prometheus + Grafana Stack.

In ELK Stack, filebeats used to collect log from pod that stored in node filesystem. We may use logstash if we want transform the log. The log will be send to elasticsearch. Kibana will use visualization data that originated from elasticsearch. For installation, we must install stack and configure filebeats, logstash (optional), elasticsearch, and kibana one by one. Although the configuration is easy enough. Just edit the values.yaml according to our needs.

In Loki + Prometheus + Grafana Stack. Same like above, Promtail used for log collecting, data saved in loki, and visualized in grafana. For the monitoring, it used kube-state-metrics and prometheus-node-exporter. For Installation, we just install and do a little config twice. First, install the kube-prometheus-stack. Second, install the loki-stack without grafana dashboard (edit in values.yaml). Third, we use grafana dashboard in kube-prometheus-stack, and add loki datasource for logging.

So i think the Loki + Prometheus + Grafana stack is easier.




Interested in Software Engineering, Devops, Smart Contract. 🌐: abdillah.my.id . Made with ☕ from 🇲🇨

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Leetcode 970. Powerful Integers


How we made a portable service to integrate products with Active Directory

REST API Testing — What can the response tell you?

Infra Automation Primer (Red Team Edition)

Important Considerations to Identify Technology Platforms for an Enterprise

Generate a UUID as PostgreSQL default value

How to Dockerize an ASP.NET Core Application with Azure Pipelines

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Herbert Abdillah

Herbert Abdillah

Interested in Software Engineering, Devops, Smart Contract. 🌐: abdillah.my.id . Made with ☕ from 🇲🇨

More from Medium

Kubernetes v1.22.5 - Troubleshooting with Docker Desktop 4.7.1

What is Kubernetes?

Kubernetes: Ordered cleanup with OwnerReference

Docker and The Rise of Containerization