The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/devenv/docker/blocks/loki
Andrej Ocenas f029e84565
Devenv: Add tempo data source (#31138)
4 years ago
..
README.md Devenv: Add tempo data source (#31138) 4 years ago
config.yaml Remove deprecated and breaking loki config field (#31227) 4 years ago
docker-compose.yaml Devenv: Fix loki block (#20967) 6 years ago

README.md

By default this block is setup to scrape logs from /var/logs. If you need to log some service from the docker-compse you can add:

    # For this to work you need to install the logging driver see https://github.com/grafana/loki/tree/master/cmd/docker-driver#plugin-installation
    logging:
      driver: loki
      options:
        loki-url: "http://loki:3100/loki/api/v1/push"

This also works for self logging Loki logs if you use http://localhost:3100/loki/api/v1/push. This is useful together with

    environment:
      - JAEGER_AGENT_HOST=tempo
      - JAEGER_AGENT_PORT=6831
      - JAEGER_SAMPLER_TYPE=const
      - JAEGER_SAMPLER_PARAM=1

which sets up a tracing and so you will have logs with traceIDs to test linking between logs and traces.