Skip to content

nullinside-development-group/nullinside-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nullinside-grafana

This is the project responsible for configuring and deploying Grafana for application log collection.

Setup Local Docker Container Ingestion

In order to setup local docker container ingestion you simply need to install the plugin for docker and subsequently add two lines of configuration to each docker image deployment

Plugin

Install the plugin using the following line: docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

This only needs to be done once

Configure Docker Command Line

For any docker image deployment using the docker command line (NOT docker compose) you simply add the following to the command line's run command: docker run --log-driver=loki --log-opt loki-url="http://192.168.1.4:3100/loki/api/v1/push"

Configure Docker Compose

If you are using docker compose you'll add the following to the service:

version: ...
services:
  serviceName:
    image: ...
    logging:
      driver: loki
      options:
        loki-url: "http://192.168.1.4:3100/loki/api/v1/push"

About

The setup for grafana to ingest docker logs for the microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published