{"repo":"isItObservable/Episode2--Kubernetes-Loki","free":true,"listed":false,"github":"https://github.com/isItObservable/Episode2--Kubernetes-Loki","clone":"git clone https://github.com/isItObservable/Episode2--Kubernetes-Loki.git","description":"This repository contains the assets for the tutorial on how to collect logs from your Kubernetes cluster.","language":"Shell","stars":17,"topics":["grafana","kubernetes","loki","promtail","dynatrace"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"How to collect logs in k8s with Loki and Promtail This repository is here to guide you through the GitHub tutorial that goes hand-in-hand with a video available on YouTube and a detailed blog post on my website. Together, these resources are designed to give you a complete understanding of the topic. Here are the links to the related assets: - YouTube Video: How to collect logs in k8s with Loki and Promtail - Blog Post: How to collect logs in Kubernetes with Loki and Promtail Feel free to explore the materials, star the repository, and follow along at your own pace. K8s and Logging with Loki This repository showcases the usage of Loki by using GKE with the HipsterShop Prerequisite The following tools need to be installed on your machine : - jq - kubectl - git - gcloud (if you're using GKE) - Helm 1. Create a Google Cloud Platform Project 2. Create a GKE cluster 3.Clone the Github repo 4. Deploy Prometheus HipsterShop Prometheus (as done in Episode 1 ) Expose Grafana change to type NodePort Deploy the ingress by making sure to replace the service name of your Grafana Get the login user and password of Grafana For the password : For the login user: Get the IP address of your Grafana Install Loki with Promtail Configure Grafana In order to build a dashboard with data stored in Loki, we first need to add a new DataSource. In Grafana, go to Configuration/Add data source. Select the source Loki, and configure the URL to interact with it. Remember, Grafana is hosted in the same name","default_branch":null,"files":null,"tree":[],"storefront":"/r/isItObservable","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/isItObservable/Episode2--Kubernetes-Loki/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}