How to send logs from a heroku app to grafana cloud?


Grafana-Loki is a nice logging service and I want to deploy it for an app on Heroku. I've looked around and there doesn't seem to be too much information about this. I found this twitter thread which references this python repository, but I don't totally understand what's going on. I'm running a small javascript app on heroku, and I want the logs to go to grafana cloud. How do I apply this python code to my situation? I'm not that technical so I get lost easily when applying something to my own situation.

---------------Answer---------------

create a python project with the code and deploy it on Heroku

get the logs from your javascript project through heroku

procedure here

as configured in the code from here

it should push the logs to your grafana cloud


Previous : Javascript- How to access specific button
Next : How to add different submit behaviors to buttons?