I've had a similar question about nginx recently and it should roughly be the same: https://lemmy.nocturnal.garden/post/161470
GoAccess helps to get a better glance, but eventually I want to set up Loki as well.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I've had a similar question about nginx recently and it should roughly be the same: https://lemmy.nocturnal.garden/post/161470
GoAccess helps to get a better glance, but eventually I want to set up Loki as well.
Goaccess reads the Traefik log and spits out an HTML file you can then serve via e.g. Nginx. Works for me.
Thank you for this! I never used Nginx directly and only thought of it as a reverse proxy but I had no idea it was capable of actually hosting html/php.
I went back to the drawing board so to say and was able to get GoAccess running, granted non-containerized on bare metal, and was able to reverse proxy the Nginx instance via Traefik.
I use alloy to scrape my traefik logs and pass them to Loki. Then I use logQL to parse out the info and regexp to format so I can use it in a visualization. I don’t have my configs handy at the moment but I can try and get them at some point to share something close to what I do as a starting point.
This. Prometheus is for metrics, Loki is for logs. I've not come across Perses before, but it looks like it does a similar job to Grafana which integrates really well with Prometheus and Loki (and is produced by the same organisation as both of them).
Grafana is how I've done it, using Loki to ingest and store the logs, and Prometheus for metrics.
There's also Goaccess which is like 1000x easier to use, and works pretty well.