Loki: Grafana’s log database — indexes only labels, not full text, making it cheap. Queried with LogQL. Loki is Grafana's log storage system. Unlike traditional log databases, it only indexes a few labels per stream, such as app and environment, not the full text of every line. That makes it cheap to run and store.
You query it with LogQL. {app="api"} |= "error" finds error lines from the API, and you can parse JSON fields and filter on them, such as requests slower than 500 milliseconds.
What should you keep in mind with Loki?
It works best alongside Prometheus and Grafana, where you can jump from a spike on a graph to the logs for that same time and service. Keep labels to low-cardinality values like app, namespace and level; putting request IDs in labels defeats the design. For searching many terabytes of logs by arbitrary text, a full-text system may suit you better.
Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for PHP applications. Supports plain PHP, Laravel, and Symfony.
Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting. Use when establishing reliability targets, implementing SRE practices, or measuring service performance.