If I try shipping same log using postman or insomnia, then I am successfully able to push them to remote loki instance
I thought maybe promtail container is unable to access the remote endpoint but curl and ping work as expected. So promtail is able to find the remote loki instance
I tried searching online for a similar post, found a few (not loki specific) where people suggested updating DNS to 8.8.8.8 but that didn’t help
The connection speed appears to be fine. As soon as I start promtail, I send some system logs to remote loki which are sent just fine but when I try to ship logs of backend services, I see the following pattern:
It takes about 30-40 min before a request to push those logs is made by promtail
The above error pops up everytime.
Not sure what’s going on here. I am able to ping and curl the post request from inside the docker container so it’s not an access problem. Still, looking into it
In my case I was doing some test with the calico plugin CNI and in most of the cases that pods were struggling with networking problems I resolved using the hostNetwork: true parameter. In the case of the promtail, removing this resolve the problem. Obs.: I’m still running the calico CNI