Grafana Loki Promtail | Grafana Loki Setup And Configuration On CentOs

preview_player
Показать описание
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:
---------------------------------------------------------------------------
--------------------------------------------------------------------------
MYSQL Grafana Tutorial:
-------------------------------------------------------------------------
------------------------------------------------------------------------
Setup Prometheus as datasource in Grafana
----------------------------------------------------------------------
---------------------------------------------------------------------
Download Grafana :
---------------------------------------------------------------------
-------------------------------------------------------------------
Download Loki and Promtail:
------------------------------------------------------------------
-------------------------------------------------------------------
Download Configuration files :
----------------------------------------------------------------------
-----------------------------------------------------------------------
Commands used:

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/maillog"}
{job="varlogs"}
---------------------------------------------------------------------------------
========================================
Follow me @:
=======================================
Music credit: "Royalty Free Music from Bensound"
Рекомендации по теме
Комментарии
Автор

Simple and useful. Thank you for sharing this content.

edircabralsantana
Автор

Thanks for sharing this valuable knowledge to us

arvindpal
Автор

Thanks for sharing this useful tutorial! Does Loki supports service discovery of targets like Prometheus supports for AWS, Azure? Please advise.

maheshkulkarni
Автор

thanxx a ton mate. Super impressive illustration.

prateekpandey
Автор

Most awaited Video. Thanks for the sharing.

visva
Автор

i want logs from BDCOM switch in my loki grafana. Where i can find switch syslog of my switch.

kartikeysrivastava
Автор

How to horizontally scale loki? There is an error of too many incoming requests

rubalfromthehimalayas
Автор

Thank you for the video. In my installation i don't see anything in grafana about log files. Each file i choose from catalog, i read the following message:"Empty results, no matching label for
Why grafana can't read or see, what loki and promtail sending to?

stephanfrank
Автор

Thanks man! it helped... I had some issues with the loki yaml version and promtail yaml (version issues as the link you have provided is for the master branch (now at 2.7.0 i think) and the loki version mentioned in the video is 2.6.1) and also with the loki folder permissions (my fault).

MadAxel-zzni
Автор

I am able to install grafana and also added the firewall : sudo firewall-cmd --permanent --zone=public --add-port=3000/tcp . It says ERR_EMPTY_RESPONSE, can you help me with this

deepanshupandey
Автор

Ive got an issue when adding Loki as datasource in Grafana. Error says: "Data source connected, but no labels received. Verify that Loki and Promtail is configured properly." any ideas??

JorgeRodriguezMosquera
Автор

i was getting the error of mapping values are not allowed in this context i followed same method as per video but still i am getting same error please tell the solution

saujanyamhatre
Автор

hi, can u teach us how to add loki and promtail services?

shadows
Автор

Hi, could you please tell me how can I gets the grafana logs ?? like my requirement is to get how many users logging to grafana every day and then need to visualise it in grafana dashboard . I tried by following your steps but while running Loki and promtail in my Linux server am getting cannot execute binaries file even after giving execute permission

souravjena
Автор

What are the advantages of grafana agent over promtail agent?please can you answer this?

sharanreddy
Автор

it doesnt work for me. When i want to query, i dont have "job" available to pick. Only thing that appears is "__name__"

Weesy
Автор

Working as "root" is stupid, and encourages others to be stupid too. Only work as "root" when you ABSOLUTELY must - don't be stupid. That said, this video is a good intro on how loki/promtail works.
You should also consider using your distro's packaging system to install these tools.

ikyeydq
Автор

bhhai sahab, woh angwez wala accent thowa zyada nahi ho gaya.

dwiyvjk
Автор

Pretty useless video. Doesn`t show something new that was not already posted 100 times. Does not show any specific knowledge that is of value to someone.

kosyoyanev
Автор

Hi....I have loki promtail and grafana setup and want to see grafana usage per user with dashboard from grafana.log..I have referer label in logs which is having dashboard name along with https url but i only want to show dashboards accessed userwise..can you please help me for same?

ervikasrastogi