Skip to content

Latest commit

 

History

History

grafana-loki

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sending logs to Grafana Loki

graph LR;
    pino["Pino Opentelemetry Transport"]
    otel["OTEL Collector"]
    loki["Loki"]
    grafana["Grafana"]
    pino-->otel;
    otel-->loki;
    loki-->grafana;
Loading

Running the example

Local infrastructure

Run the required infra locally with docker compose up

It will boot Grafana, Loki and an Opentelemetry Collector.

Loki ingester readiness can be checked at http://localhost:3100/ready.

The logs can be inspected in Grafana UI at http://localhost:3000/explore.

This article explains how to inspect OTLP data in the Grafana UI.

Generating logs

Run the trace-context example, but skip the docker compose up part