label / tag: A key/value dimension attached to a metric (Prometheus calls it a "label"; Datadog/StatsD call it a "tag") so you can slice and filter. In monitoring, a label or tag is a dimension attached to a metric, such as method="POST" or route="/checkout". Prometheus calls them labels; Datadog and StatsD call them tags.
They let you slice one metric many ways. From a single request counter, you can graph traffic per route, error rates per status code, or latency per region.
What should you keep in mind with label / tag?
Each unique combination of labels creates a separate time series, so choose labels with a small, known set of values. Route templates like /orders/{id} are fine; the actual URL with the order number is not. Unique values such as user IDs or email addresses belong in logs or traces. Consistent label names across services, such as always service and env, make dashboards and alerts much easier to build.
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.