Skip to content

Instantly share code, notes, and snippets.

@hamidrhashmi
Last active January 3, 2024 06:36
Show Gist options
  • Save hamidrhashmi/765967804ad457af25bb2745118ce746 to your computer and use it in GitHub Desktop.
Save hamidrhashmi/765967804ad457af25bb2745118ce746 to your computer and use it in GitHub Desktop.
How to configure Logging Server with Grafana and qryn

STEP 3: Install qryn

STEP 4: Install grafana-server

apt-get install -y apt-transport-https software-properties-common wget
mkdir -p /etc/apt/keyrings/
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

Updates the list of available packages

sudo apt-get update

Installs the latest OSS release:

sudo apt-get install grafana
systemctl daemon-reload
systemctl enable grafana-server
systemctl start grafana-server

Access Grafana UI with the following URL

http://localhost:3000

Username: admin

Password: admin

Add Loki Plugin and configure it with qryn-server

Open Menu --> Admisinstration --> Plugins --> Search "Loki" --> Install

No Add Loki data source

Open Menu --> Connections --> Data Source --> Click "Add New Data Source" --> Select "Loki"

URL: http://qryn-server:3100

Basic Auth

Username: default

Password: Clickpass

Click "Save and test"

Now to go Open Menu --> Explore and try Searching Logs

Make sure you have also configured grafana-agent / vector to send logs to qryn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment