Untitled Entry
Today I'll contiue playing around with Grafana.
Okay, I managed to parse a single container's output and display it in a readable manner. ChatGPT was completely useless and only pissed me off, Grafana docs were too slow for my liking, and Cursor was perfect. Should've gone with Cursor right away.
{filename="/var/lib/docker/containers/d99602dc52f859eaa9b5feb120edaafe6445646da1f9f3b8fe2acb451a5ae845/d99602dc52f859eaa9b5feb120edaafe6445646da1f9f3b8fe2acb451a5ae845-json.log"}
| json | line_format "{{.log}}" | json | line_format "{{.level}} {{.msg}}"
Now I need to figure out how to display these for all the containers. Ideally, I would select from a drop down menu thats automatically populated with all the available containers.
Seems like the Promtail support isn't going to cut it. I just can't get the container name to display properly. I found out about a loki logging plugin for Docker that natively supports this, I'll try that now.
Didn't manage to finish today, but it's looking promising.