Grafana Loki Promtail | Grafana Loki Setup And Configuration On CentOs

Published: 01 January 1970
on channel: Thetips4you
44,159
431

Welcome back to grafana loki tutorial. In this lecture we will see the steps by step process on grafana loki installation.

What is loki grafana?
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate.

We will also learn benefits of Loki, Grafana Loki Architecture, and Demo in this video.
-----------------------------------------------------------------------------
How to setup grafana on docker:
   • Simple Beginner Tutorial On Grafana |...  
---------------------------------------------------------------------------
--------------------------------------------------------------------------
MYSQL Grafana Tutorial:
   • Grafana MySQL Tutorial | Configure My...  
-------------------------------------------------------------------------
------------------------------------------------------------------------
Setup Prometheus as datasource in Grafana
   • How To Setup Prometheus Datasource In...  
----------------------------------------------------------------------
---------------------------------------------------------------------
Download Grafana :
https://grafana.com/grafana/download
---------------------------------------------------------------------
-------------------------------------------------------------------
Download Loki and Promtail:
https://github.com/grafana/loki/relea...
------------------------------------------------------------------
-------------------------------------------------------------------
Download Configuration files :
https://raw.githubusercontent.com/gra...
https://github.com/grafana/loki/blob/...
----------------------------------------------------------------------
-----------------------------------------------------------------------
Commands used:

./loki-linux-amd64 -config.file=loki-local-config.yaml
./promtail-linux-amd64 -config.file=promtail-local-config.yaml

sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp
sudo firewall-cmd --permanent --zone=public --add-port=3100/tcp
sudo firewall-cmd --permanent --zone=public --add-port=9080/tcp

sudo firewall-cmd --reload


Example queries in Grafana

{filename="/var/log/yum.log"}
{filename="/var/log/boot.log"}
{filename="/var/log/maillog"}
{job="varlogs"}
---------------------------------------------------------------------------------
========================================
Follow me @:
  / thetips4you  
   / @thetips4you  
  / thetipsforyou  
http://www.thetips4you.com
=======================================
Music credit: "Royalty Free Music from Bensound"