Issue with promtail - Docker Container logs

Hi everyone,

I have an issue with promtail and Loki, in my server I almost have 10 docker containers which are running on Prod and Dev Environments. As I am new to Grafana I wanted to scrape these 10 docker container logs and see it in Grafana using Loki Datasource.

What I have done so far?

Step1: Logged into Grafana cloud and created a Loki configuration with new API key

Step2: installed docker log driver and tried a testing on demo server whenever I restart docker it kill all my containers.

Step3: Once after restarting docker daemon I am able to see newly created containers and not able to see old containers which are already running.

Please help me to solve this thanks in advance

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.