Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 972 Bytes

File metadata and controls

34 lines (23 loc) · 972 Bytes

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