Skip to content

ONDC-Official/automation-monitoring

Repository files navigation

Application Logs and Metrics Integration

This guide provides instructions for integrating Loki for application logs in your project.


Integrating Loki for Logs

1. Install the Loki Docker Driver

Run the following command to install the Loki Docker driver:

docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions

2. Update docker-compose.yml

In your docker-compose.yml file, add the following logging configuration to each service:

logging:
  driver: loki
  options:
    loki-url: "http://loki:3100/loki/api/v1/push"

With these configurations, your application logs will be sent to Loki, which can be then visualised in Grafana.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6