{
    "url": "https://delaparra-services.nl/knowledge-hub/histogram",
    "locale": "en",
    "title": "histogram: Knowledge hub | DeLaParra Services",
    "description": "A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/histogram",
        "nl": "https://delaparra-services.nl/nl/kennisbank/histogram"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/histogram.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/histogram.md",
        "json": "https://delaparra-services.nl/knowledge-hub/histogram.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/histogram.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/histogram.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram.csv",
            "encodingFormat": "text/csv",
            "name": "histogram.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram.json",
            "encodingFormat": "application/json",
            "name": "histogram.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram.md",
            "encodingFormat": "text/markdown",
            "name": "histogram.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram.pdf",
            "encodingFormat": "application/pdf",
            "name": "histogram.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram.zip",
            "encodingFormat": "application/zip",
            "name": "histogram.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/histogram/skills.zip",
            "encodingFormat": "application/zip",
            "name": "histogram-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [histogram](<https://delaparra-services.nl/knowledge-hub/histogram>)\n\n  \n\nCategory: Observability \n\n# histogram\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is histogram?\n\n \n\nhistogram: A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side. A histogram metric sorts measurements into buckets, such as requests that took under 100 milliseconds, under 300, under a second, and so on. From those buckets, a monitoring system can calculate percentiles like p95 and p99.\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 histogram\n\n  \n\n### How is histogram used in practice?\n\n \n\nAverages hide problems. If most requests take 50 milliseconds but one in twenty takes four seconds, the average still looks fine. The p95 shows the slow experience real users have.\n\n    \n\n### What should you keep in mind with histogram?\n\n \n\nChoose bucket boundaries around the values that matter, such as your target response time. Too few buckets make percentiles inaccurate; too many increase storage. In Prometheus, ` histogram_quantile(0.95, rate(http_duration_seconds_bucket[5m])) ` gives the 95th percentile. It is the right way to measure latency for dashboards and alerts.\n\n    \n\n### What does an example of histogram look like?\n\n \n\n```\nhttp_duration_bucket{le=\"0.3\"} 9821 http_duration_bucket{le=\"1.0\"} 9990\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- [gauge](<https://delaparra-services.nl/knowledge-hub/gauge>) \n- [golden signals](<https://delaparra-services.nl/knowledge-hub/golden-signals>) \n- [Grafana](<https://delaparra-services.nl/knowledge-hub/grafana>) \n- [instrumentation](<https://delaparra-services.nl/knowledge-hub/instrumentation>) \n- [Jaeger](<https://delaparra-services.nl/knowledge-hub/jaeger>) \n- [label / tag](<https://delaparra-services.nl/knowledge-hub/label-tag>)\n\n \n\n[All terms starting with H](<https://delaparra-services.nl/knowledge-hub#letter-h>)\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/histogram/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/histogram)\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/histogram#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/histogram",
                "name": "histogram: Knowledge hub | DeLaParra Services",
                "description": "A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/histogram#term",
                    "name": "histogram",
                    "description": "A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side.",
                    "termCode": "histogram",
                    "url": "https://delaparra-services.nl/knowledge-hub/histogram",
                    "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/histogram#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/histogram#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/histogram#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is histogram?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side. A histogram metric sorts measurements into buckets, such as requests that took under 100 milliseconds, under 300, under a second, and so on. From those buckets, a monitoring system can calculate percentiles like p95 and p99."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is histogram used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Averages hide problems. If most requests take 50 milliseconds but one in twenty takes four seconds, the average still looks fine. The p95 shows the slow experience real users have."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with histogram?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Choose bucket boundaries around the values that matter, such as your target response time. Too few buckets make percentiles inaccurate; too many increase storage. In Prometheus, histogram_quantile(0.95, rate(http_duration_seconds_bucket[5m])) gives the 95th percentile. It is the right way to measure latency for dashboards and alerts."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of histogram look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "http_duration_bucket{le=\"0.3\"} 9821 http_duration_bucket{le=\"1.0\"} 9990"
                        }
                    }
                ],
                "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/histogram#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": "histogram"
                    }
                ]
            },
            {
                "@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/histogram#dataset",
                "name": "histogram",
                "description": "A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side.",
                "url": "https://delaparra-services.nl/knowledge-hub/histogram",
                "identifier": "https://delaparra-services.nl/knowledge-hub/histogram#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/histogram#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": "histogram.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "histogram.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "histogram.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "histogram.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "histogram.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "histogram-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/histogram/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}