grafana/loki — reverse-engineered prompt
Reverse engineered prompt
Build me a log storage and search service like Prometheus but for logs. I want to collect logs from apps and containers, attach labels like app, namespace, pod, and environment, store the raw logs cheaply without indexing every word, and let people query them later by labels and time range.
It should run locally as a simple single service for testing, but be designed so it can scale out and handle multiple teams or tenants. Include a small command line way to send sample logs and query them, plus clear config examples for running it with Grafana so the logs can be viewed there.
Make it friendly for Kubernetes pod logs and compatible with an agent style collector like Grafana Alloy. Use Go for the backend, add sensible tests, and write a README with install, run, and troubleshooting steps. Look up current Grafana Loki docs online if you need to.
Want more depth? Deep Reverse