{
    "url": "https://delaparra-services.nl/knowledge-hub/label-tag",
    "locale": "en",
    "title": "label / tag: Knowledge hub | DeLaParra Services",
    "description": "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.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/label-tag",
        "nl": "https://delaparra-services.nl/nl/kennisbank/label-tag"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/label-tag.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/label-tag.md",
        "json": "https://delaparra-services.nl/knowledge-hub/label-tag.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/label-tag.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/label-tag.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag.csv",
            "encodingFormat": "text/csv",
            "name": "label-tag.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag.json",
            "encodingFormat": "application/json",
            "name": "label-tag.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag.md",
            "encodingFormat": "text/markdown",
            "name": "label-tag.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag.pdf",
            "encodingFormat": "application/pdf",
            "name": "label-tag.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag.zip",
            "encodingFormat": "application/zip",
            "name": "label-tag.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/label-tag/skills.zip",
            "encodingFormat": "application/zip",
            "name": "label-tag-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [label / tag](<https://delaparra-services.nl/knowledge-hub/label-tag>)\n\n  \n\nCategory: Observability \n\n# label / tag\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is label / tag?\n\n \n\nlabel / 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.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about label / tag\n\n  \n\n### How is label / tag used in practice?\n\n \n\nThey 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.\n\n    \n\n### What should you keep in mind with label / tag?\n\n \n\nEach 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.\n\n    \n\n### What does an example of label / tag look like?\n\n \n\n```\nhttp_requests_total{method=\"POST\", route=\"/checkout\"}\n```\n\n \n\n## At a glance\n\n   CategoryObservability Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Observability terms\n\n \n\n- [histogram](<https://delaparra-services.nl/knowledge-hub/histogram>) \n- [instrumentation](<https://delaparra-services.nl/knowledge-hub/instrumentation>) \n- [Jaeger](<https://delaparra-services.nl/knowledge-hub/jaeger>) \n- [log](<https://delaparra-services.nl/knowledge-hub/log>) \n- [Loki](<https://delaparra-services.nl/knowledge-hub/loki>) \n- [metric](<https://delaparra-services.nl/knowledge-hub/metric>)\n\n \n\n[All terms starting with L](<https://delaparra-services.nl/knowledge-hub#letter-l>)\n\n \n\n## Skills\n\n \n\n- ### Sentry PHP SDK\n\n \n\nFull 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.\n\n [View skill](<https://delaparra-services.nl/skills/sentry-php-sdk>) [Download zip](<https://delaparra-services.nl/skills/sentry-php-sdk/download>) \n- ### Prometheus Configuration\n\n \n\nSet 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.\n\n [View skill](<https://delaparra-services.nl/skills/prometheus-configuration>) [Download zip](<https://delaparra-services.nl/skills/prometheus-configuration/download>) \n- ### SLO Implementation\n\n \n\nDefine 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.\n\n [View skill](<https://delaparra-services.nl/skills/slo-implementation>) [Download zip](<https://delaparra-services.nl/skills/slo-implementation/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/label-tag/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Logging and monitoring for your app](<https://delaparra-services.nl/manuals/logging-en-monitoring>) \n- [Understanding common error messages](<https://delaparra-services.nl/manuals/foutmeldingen-begrijpen>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet. \n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/label-tag)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/label-tag",
                "name": "label / tag: Knowledge hub | DeLaParra Services",
                "description": "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.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#term",
                    "name": "label / tag",
                    "description": "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.",
                    "termCode": "label-tag",
                    "url": "https://delaparra-services.nl/knowledge-hub/label-tag",
                    "inLanguage": "en",
                    "keywords": "Observability",
                    "dateModified": "2026-11-25T17:46:27+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is label / tag?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is label / tag used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with label / tag?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "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."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of label / tag look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "http_requests_total{method=\"POST\", route=\"/checkout\"}"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/sentry-php-sdk#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/prometheus-configuration#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/slo-implementation#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/logging-en-monitoring#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/foutmeldingen-begrijpen#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "label / tag"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#dataset",
                "name": "label / tag",
                "description": "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.",
                "url": "https://delaparra-services.nl/knowledge-hub/label-tag",
                "identifier": "https://delaparra-services.nl/knowledge-hub/label-tag#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/label-tag#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Observability",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:27+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "label-tag.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "label-tag.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "label-tag.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "label-tag.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "label-tag.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "label-tag-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/label-tag/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}