8000 integrations-core/gunicorn at master · byeonggukgong/integrations-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"gunicorn","repo":{"id":694523971,"defaultBranch":"master","name":"integrations-core","ownerLogin":"byeonggukgong","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-09-21T07:07:34.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/11642324?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1695284525.0","canEdit":false,"refType":"branch","currentOid":"ab0c8533252a0af2a24c9bc6911311c06dba6376"},"tree":{"items":[{"name":"assets","path":"gunicorn/assets","contentType":"directory"},{"name":"datadog_checks","path":"gunicorn/datadog_checks","contentType":"directory"},{"name":"images","path":"gunicorn/images","contentType":"directory"},{"name":"tests","path":"gunicorn/tests","contentType":"directory"},{"name":"CHANGELOG.md","path":"gunicorn/CHANGELOG.md","contentType":"file"},{"name":"README.md","path":"gunicorn/README.md","contentType":"file"},{"name":"hatch.toml","path":"gunicorn/hatch.toml","contentType":"file"},{"name":"manifest.json","path":"gunicorn/manifest.json","contentType":"file"},{"name":"metadata.csv","path":"gunicorn/metadata.csv","contentType":"file"},{"name":"pyproject.toml","path":"gunicorn/pyproject.toml","contentType":"file"},{"name":"setup.py","path":"gunicorn/setup.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGunicorn Integration\u003c/h1\u003e\u003ca id=\"user-content-gunicorn-integration\" class=\"anchor\" aria-label=\"Permalink: Gunicorn Integration\" href=\"#gunicorn-integration\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://raw.githubusercontent.com/DataDog/integrations-core/master/gunicorn/images/gunicorn-dash.png\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/DataDog/integrations-core/master/gunicorn/images/gunicorn-dash.png\" alt=\"Gunicorn Dashboard\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOverview\u003c/h2\u003e\u003ca id=\"user-content-overview\" class=\"anchor\" aria-label=\"Permalink: Overview\" href=\"#overview\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe Datadog Agent collects one main metric about Gunicorn: the number of worker processes running. It also sends one service check: whether or not Gunicorn is running.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eGunicorn itself can provide further metrics using DogStatsD, including:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eTotal request rate\u003c/li\u003e\n\u003cli\u003eRequest rate by status code (2xx, 3xx, 4xx, 5xx)\u003c/li\u003e\n\u003cli\u003eRequest duration (average, median, max, 95th percentile, etc.)\u003c/li\u003e\n\u003cli\u003eLog message rate by log level (critical, error, warning, exception)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetup\u003c/h2\u003e\u003ca id=\"user-content-setup\" class=\"anchor\" aria-label=\"Permalink: Setup\" href=\"#setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstallation\u003c/h3\u003e\u003ca id=\"user-content-installation\" class=\"anchor\" aria-label=\"Permalink: Installation\" href=\"#installation\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe Datadog Agent's Gunicorn check is included in the \u003ca href=\"https://app.datadoghq.com/account/settings/agent/latest\" rel=\"nofollow\"\u003eDatadog Agent\u003c/a\u003e package, so you don't need to install anything else on your Gunicorn servers.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe Gunicorn check requires your Gunicorn app's Python environment to have the \u003ca href=\"https://pypi.python.org/pypi/setproctitle\" rel=\"nofollow\"\u003e\u003ccode\u003esetproctitle\u003c/code\u003e\u003c/a\u003e package; without it, the Datadog Agent reports that it cannot find a \u003ccode\u003egunicorn\u003c/code\u003e master process (and hence, cannot find workers, either). Install the \u003ccode\u003esetproctitle\u003c/code\u003e package in your app's Python environment if you want to collect the \u003ccode\u003egunicorn.workers\u003c/code\u003e metric.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eConfiguration\u003c/h3\u003e\u003ca id=\"user-content-configuration\" class=\"anchor\" aria-label=\"Permalink: Configuration\" href=\"#configuration\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eEdit the \u003ccode\u003egunicorn.d/conf.yaml\u003c/code\u003e file, in the \u003ccode\u003econf.d/\u003c/code\u003e folder at the root of your \u003ca href=\"https://docs.datadoghq.com/agent/guide/agent-configuration-files/#agent-configuration-directory\" rel=\"nofollow\"\u003eAgent's configuration directory\u003c/a\u003e to start collecting your Gunicorn \u003ca href=\"#metric-collection\"\u003emetrics\u003c/a\u003e and \u003ca href=\"#log-collection\"\u003elogs\u003c/a\u003e.\nSee the \u003ca href=\"https://github.com/DataDog/integrations-core/blob/master/gunicorn/datadog_checks/gunicorn/data/conf.yaml.example\"\u003esample gunicorn.yaml\u003c/a\u003e for all available configuration options.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMetric collection\u003c/h4\u003e\u003ca id=\"user-content-metric-collection\" class=\"anchor\" aria-label=\"Permalink: Metric collection\" href=\"#metric-collection\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch5 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eConnect Gunicorn to DogStatsD\u003c/h5\u003e\u003ca id=\"user-content-connect-gunicorn-to-dogstatsd\" class=\"anchor\" aria-label=\"Permalink: Connect Gunicorn to DogStatsD\" href=\"#connect-gunicorn-to-dogstatsd\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eAs of version 19.1, Gunicorn \u003ca href=\"https://docs.gunicorn.org/en/stable/settings.html#statsd-host\" rel=\"nofollow\"\u003eprovides an option\u003c/a\u003e to send its metrics to a daemon that implements the StatsD protocol, such as \u003ca href=\"https://docs.datadoghq.com/guides/dogstatsd/\" rel=\"nofollow\"\u003eDogStatsD\u003c/a\u003e. As with many Gunicorn options, you can either pass it to \u003ccode\u003egunicorn\u003c/code\u003e on the CLI (\u003ccode\u003e--statsd-host\u003c/code\u003e) or set it in your app's configuration file (\u003ccode\u003estatsd_host\u003c/code\u003e). To ensure that you collect \u003cstrong\u003eall Gunicorn metrics\u003c/strong\u003e, configure your app to send metrics to \u003ca href=\"https://docs.datadoghq.com/guides/dogstatsd/\" rel=\"nofollow\"\u003eDogStatsD\u003c/a\u003e at \u003ccode\u003e\"localhost:8125\"\u003c/code\u003e, and restart the app.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eAdd this configuration block to your \u003ccode\u003egunicorn.d/conf.yaml\u003c/code\u003e file to start gathering \u003ca href=\"#metrics\"\u003eGunicorn metrics\u003c/a\u003e:\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"init_config:\n\ninstances:\n ## @param proc_name - string - required\n ## The name of the gunicorn process. For the following gunicorn server:\n ##\n ## gunicorn --name \u0026lt;WEB_APP_NAME\u0026gt; \u0026lt;WEB_APP_CONFIG\u0026gt;.ini\n ##\n ## the name is `\u0026lt;WEB_APP_NAME\u0026gt;`\n - proc_name: \u0026lt;YOUR_APP_NAME\u0026gt;\"\u003e\u003cpre\u003e\u003cspan class=\"pl-ent\"\u003einit_config\u003c/span\u003e:\n\n\u003cspan class=\"pl-ent\"\u003einstances\u003c/span\u003e:\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e# @param proc_name - string - required\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e# The name of the gunicorn process. For the following gunicorn server:\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e#\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e# gunicorn --name \u0026lt;WEB_APP_NAME\u0026gt; \u0026lt;WEB_APP_CONFIG\u0026gt;.ini\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e#\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e# the name is `\u0026lt;WEB_APP_NAME\u0026gt;`\u003c/span\u003e\n - \u003cspan class=\"pl-ent\"\u003eproc_name\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\u0026lt;YOUR_APP_NAME\u0026gt;\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003col start=\"3\" dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://docs.datadoghq.com/agent/guide/agent-commands/#start-stop-and-restart-the-agent\" rel=\"nofollow\"\u003eRestart the Agent\u003c/a\u003e to begin sending Gunicorn metrics to Datadog.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eLog collection\u003c/h4\u003e\u003ca id=\"user-content-log-collection\" class=\"anchor\" aria-label=\"Permalink: Log collection\" href=\"#log-collection\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cem\u003eAvailable for Agent versions \u0026gt;6.0\u003c/em\u003e\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eCollecting logs is disabled by default in the Datadog Agent, enable it in your \u003ccode\u003edatadog.yaml\u003c/code\u003e file:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"logs_enabled: true\"\u003e\u003cpre\u003e\u003cspan class=\"pl-ent\"\u003elogs_enabled\u003c/span\u003e: \u003cspan class=\"pl-c1\"\u003etrue\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUse the following command to configure the path of the \u003ca href=\"https://docs.gunicorn.org/en/stable/settings.html#accesslog\" rel=\"nofollow\"\u003eaccess log\u003c/a\u003e file:\n\u003ccode\u003e--access-logfile \u0026lt;MY_FILE_PATH\u0026gt;\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUse the following command to configure the path of the \u003ca href=\"https://docs.gunicorn.org/en/stable/settings.html#errorlog\" rel=\"nofollow\"\u003eerror log\u003c/a\u003e file:\n\u003ccode\u003e--error-logfile FILE, --log-file \u0026lt;MY_FILE_PATH\u0026gt;\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eAdd this configuration block to your \u003ccode\u003egunicorn.d/conf.yaml\u003c/code\u003e file to start collecting your Gunicorn logs:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"logs:\n - type: file\n path: /var/log/gunicorn/access.log\n service: \u0026quot;\u0026lt;MY_SERVICE\u0026gt;\u0026quot;\n source: gunicorn\n\n - type: file\n path: /var/log/gunicorn/error.log\n service: \u0026quot;\u0026lt;MY_SERVICE\u0026gt;\u0026quot;\n source: gunicorn\n log_processing_rules:\n - type: multi_line\n name: log_start_with_date\n pattern: \\[\\d{4}-\\d{2}-\\d{2}\"\u003e\u003cpre\u003e\u003cspan class=\"pl-ent\"\u003elogs\u003c/span\u003e:\n - \u003cspan class=\"pl-ent\"\u003etype\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003efile\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003epath\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e/var/log/gunicorn/access.log\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003eservice\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u0026lt;MY_SERVICE\u0026gt;\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003esource\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003egunicorn\u003c/span\u003e\n\n - \u003cspan class=\"pl-ent\"\u003etype\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003efile\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003epath\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e/var/log/gunicorn/error.log\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003eservice\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u0026lt;MY_SERVICE\u0026gt;\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003esource\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003egunicorn\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003elog_processing_rules\u003c/span\u003e:\n - \u003cspan class=\"pl-ent\"\u003etype\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003emulti_line\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003ename\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003elog_start_with_date\u003c/span\u003e\n \u003cspan class=\"pl-ent\"\u003epattern\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\\[\\d{4}-\\d{2}-\\d{2}\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eChange the \u003ccode\u003eservice\u003c/code\u003e and \u003ccode\u003epath\u003c/code\u003e parameter values and configure them for your environment. See the \u003ca href=\"https://github.com/DataDog/integrations-core/blob/master/gunicorn/datadog_checks/gunicorn/data/conf.yaml.example\"\u003esample gunicorn.yaml\u003c/a\u003e for all available configuration options.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://docs.datadoghq.com/agent/guide/agent-commands/#start-stop-and-restart-the-agent\" rel=\"nofollow\"\u003eRestart the Agent\u003c/a\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eValidation\u003c/h3\u003e\u003ca id=\"user-content-validation\" class=\"anchor\" aria-label=\"Permalink: Validation\" href=\"#validation\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information\" rel=\"nofollow\"\u003eRun the Agent's status subcommand\u003c/a\u003e and look for \u003ccode\u003egunicorn\u003c/code\u003e under the Checks section.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf the status is not \u003ccode\u003eOK\u003c/code\u003e, see the Troubleshooting section.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUse \u003ccode\u003enetstat\u003c/code\u003e to verify that Gunicorn is sending \u003cem\u003eits\u003c/em\u003e metrics, too:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ sudo netstat -nup | grep \u0026quot;127.0.0.1:8125.*ESTABLISHED\u0026quot;\nudp 0 0 127.0.0.1:38374 127.0.0.1:8125 ESTABLISHED 15500/gunicorn: mas\"\u003e\u003cpre lang=\"text\" class=\"notranslate\"\u003e\u003ccode\u003e$ sudo netstat -nup | grep \"127.0.0.1:8125.*ESTABLISHED\"\nudp 0 0 127.0.0.1:38374 127.0.0.1:8125 ESTABLISHED 15500/gunicorn: mas\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eData Collected\u003c/h2\u003e\u003ca id=\"user-content-data-collected\" class=\"anchor\" aria-label=\"Permalink: Data Collected\" href=\"#data-collected\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMetrics\u003c/h3\u003e\u003ca id=\"user-content-metrics\" class=\"anchor\" aria-label=\"Permalink: Metrics\" href=\"#metrics\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"https://github.com/DataDog/integrations-core/blob/master/gunicorn/metadata.csv\"\u003emetadata.csv\u003c/a\u003e for a list of metrics provided by this integration.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eEvents\u003c/h3\u003e\u003ca id=\"user-content-events\" class=\"anchor\" aria-label=\"Permalink: Events\" href=\"#events\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe Gunicorn check does not include any events.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eService Checks\u003c/h3\u003e\u003ca id=\"user-content-service-checks\" class=\"anchor\" aria-label=\"Permalink: Service Checks\" href=\"#service-checks\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"https://github.com/DataDog/integrations-core/blob/master/gunicorn/assets/service_checks.json\"\u003eservice_checks.json\u003c/a\u003e for a list of service checks provided by this integration.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTroubleshooting\u003c/h2\u003e\u003ca id=\"user-content-troubleshooting\" class=\"anchor\" aria-label=\"Permalink: Troubleshooting\" href=\"#troubleshooting\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAgent cannot find Gunicorn process\u003c/h3\u003e\u003ca id=\"user-content-agent-cannot-find-gunicorn-process\" class=\"anchor\" aria-label=\"Permalink: Agent cannot find Gunicorn process\" href=\"#agent-cannot-find-gunicorn-process\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\" Checks\n ======\n\n gunicorn (5.12.1)\n -----------------\n - instance #0 [ERROR]: 'Found no master process with name: gunicorn: master [my_web_app]'\n - Collected 0 metrics, 0 events \u0026amp; 1 service check\n - Dependencies:\n - psutil: 4.4.1\"\u003e\u003cpre\u003e Checks\n ======\n\n gunicorn (5.12.1)\n -----------------\n - instance \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e0 [ERROR]: 'Found no master process with name: gunicorn: master [my_web_app]'\u003c/span\u003e\n - Collected 0 metrics, 0 events \u003cspan class=\"pl-k\"\u003e\u0026amp;\u003c/span\u003e 1 service check\n - Dependencies:\n - psutil: 4.4.1\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eEither Gunicorn really isn't running, or your app's Python environment doesn't have the \u003ccode\u003esetproctitle\u003c/code\u003e package installed.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf \u003ccode\u003esetproctitle\u003c/code\u003e is not installed, Gunicorn appears in the process table like so:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ ps -ef | grep gunicorn\nubuntu 18013 16695 2 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\nubuntu 18018 18013 0 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\nubuntu 18019 18013 0 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\"\u003e\u003cpre lang=\"text\" class=\"notranslate\"\u003e\u003ccode\u003e$ ps -ef | grep gunicorn\nubuntu 18013 16695 2 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\nubuntu 18018 18013 0 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\nubuntu 18019 18013 0 20:23 pts/0 00:00:00 /usr/bin/python /usr/bin/gunicorn --config test-app-config.py gunicorn-test:app\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf it \u003cem\u003eis\u003c/em\u003e installed, \u003ccode\u003egunicorn\u003c/code\u003e processes appear in the format the Datadog Agent expects:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ ps -ef | grep gunicorn\nubuntu 18457 16695 5 20:26 pts/0 00:00:00 gunicorn: master [my_app]\nubuntu 18462 18457 0 20:26 pts/0 00:00:00 gunicorn: worker [my_app]\nubuntu 18463 18457 0 20:26 pts/0 00:00:00 gunicorn: worker [my_app]\"\u003e\u003cpre lang=\"text\" class=\"notranslate\"\u003e\u003ccode\u003e$ ps -ef | grep gunicorn\nubuntu 18457 16695 5 20:26 pts/0 00:00:00 gunicorn: master [my_app]\nubuntu 18462 18457 0 20:26 pts/0 00:00:00 gunicorn: worker [my_app]\nubuntu 18463 18457 0 20:26 pts/0 00:00:00 gunicorn: worker [my_app]\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e 7B95 \u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFurther Reading\u003c/h2\u003e\u003ca id=\"user-content-further-reading\" class=\"anchor\" aria-label=\"Permalink: Further Reading\" href=\"#further-reading\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://www.datadoghq.com/blog/monitor-gunicorn-performance\" rel=\"nofollow\"\u003eMonitor Gunicorn performance with Datadog\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Gunicorn Integration","anchor":"gunicorn-integration","htmlText":"Gunicorn Integration"},{"level":2,"text":"Overview","anchor":"overview","htmlText":"Overview"},{"level":2,"text":"Setup","anchor":"setup","htmlText":"Setup"},{"level":3,"text":"Installation","anchor":"installation","htmlText":"Installation"},{"level":3,"text":"Configuration","anchor":"configuration","htmlText":"Configuration"},{"level":4,"text":"Metric collection","anchor":"metric-collection","htmlText":"Metric collection"},{"level":5,"text":"Connect Gunicorn to DogStatsD","anchor":"connect-gunicorn-to-dogstatsd","htmlText":"Connect Gunicorn to DogStatsD"},{"level":4,"text":"Log collection","anchor":"log-collection","htmlText":"Log collection"},{"level":3,"text":"Validation","anchor":"validation","htmlText":"Validation"},{"level":2,"text":"Data Collected","anchor":"data-collected","htmlText":"Data Collected"},{"level":3,"text":"Metrics","anchor":"metrics","htmlText":"Metrics"},{"level":3,"text":"Events","anchor":"events","htmlText":"Events"},{"level":3,"text":"Service Checks","anchor":"service-checks","htmlText":"Service Checks"},{"level":2,"text":"Troubleshooting","anchor":"troubleshooting","htmlText":"Troubleshooting"},{"level":3,"text":"Agent cannot find Gunicorn process","anchor":"agent-cannot-find-gunicorn-process","htmlText":"Agent cannot find Gunicorn process"},{"level":2,"text":"Further Reading","anchor":"further-reading","htmlText":"Further Reading"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fbyeonggukgong%2Fintegrations-core%2Ftree%2Fmaster%2Fgunicorn"}},"totalCount":11,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".codespell","path":".codespell","contentType":"directory"},{"name":".ddev","path":".ddev","contentType":"directory"},{"name":".ddqa","path":".ddqa","contentType":"directory"},{"name":".devcontainer","path":".devcontainer","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":".gitlab","path":".gitlab","contentType":"directory"},{"name":".in-toto","path":".in-toto","contentType":"directory"},{"name":".stubs","path":".stubs","contentType":"directory"},{"name":"active_directory","path":"active_directory","contentType":"directory"},{"name":"activemq","path":"activemq","contentType":"directory"},{"name":"activemq_xml","path":"activemq_xml","contentType":"directory"},{"name":"aerospike","path":"aerospike","contentType":"directory"},{"name":"agent_metrics","path":"agent_metrics","contentType":"directory"},{"name":"airbyte","path":"airbyte","contentType":"directory"},{"name":"airflow","path":"airflow","contentType":"directory"},{"name":"amazon_eks","path":"amazon_eks","contentType":"directory"},{"name":"amazon_eks_blueprints","path":"amazon_eks_blueprints","contentType":"directory"},{"name":"amazon_msk","path":"amazon_msk","contentType":"directory"},{"name":"ambari","path":"ambari","contentType":"directory"},{"name":"apache","path":"apache","contentType":"directory"},{"name":"arangodb","path":"arangodb","contentType":"directory"},{"name":"argocd","path":"argocd","contentType":"directory"},{"name":"aspdotnet","path":"aspdotnet","contentType":"directory"},{"name":"avi_vantage","path":"avi_vantage","contentType":"directory"},{"name":"azure_active_directory","path":"azure_active_directory","contentType":"directory"},{"name":"azure_iot_edge","path":"azure_iot_edge","contentType":"directory"},{"name":"boundary","path":"boundary","contentType":"directory"},{"name":"btrfs","path":"btrfs","contentType":"directory"},{"name":"cacti","path":"cacti","contentType":"directory"},{"name":"calico","path":"calico","contentType":"directory"},{"name":"cassandra","path":"cassandra","contentType":"directory"},{"name":"cassandra_nodetool","path":"cassandra_nodetool","contentType":"directory"},{"name":"ceph","path":"ceph","contentType":"directory"},{"name":"cert_manager","path":"cert_manager","contentType":"directory"},{"name":"cilium","path":"cilium","contentType":"directory"},{"name":"cisco_aci","path":"cisco_aci","contentType":"directory"},{"name":"citrix_hypervisor","path":"citrix_hypervisor","contentType":"directory"},{"name":"clickhouse","path":"clickhouse","contentType":"directory"},{"name":"cloud_foundry_api","path":"cloud_foundry_api","contentType":"directory"},{"name":"cloudera","path":"cloudera","contentType":"directory"},{"name":"cockroachdb","path":"cockroachdb","contentType":"directory"},{"name":"confluent_platform","path":"confluent_platform","contentType":"directory"},{"name":"consul","path":"consul","contentType":"directory"},{"name":"consul_connect","path":"consul_connect","contentType":"directory"},{"name":"container","path":"container","contentType":"directory"},{"name":"containerd","path":"containerd","contentType":"directory"},{"name":"coredns","path":"coredns","contentType":"directory"},{"name":"couch","path":"couch","contentType":"directory"},{"name":"couchbase","path":"couchbase","contentType":"directory"},{"name":"cri","path":"cri","contentType":"directory"},{"name":"crio","path":"crio","contentType":"directory"},{"name":"databricks","path":"databricks","contentType":"directory"},{"name":"datadog_checks_base","path":"datadog_checks_base","contentType":"directory"},{"name":"datadog_checks_dependency_provider","path":"datadog_checks_dependency_provider","contentType":"directory"},{"name":"datadog_checks_dev","path":"datadog_checks_dev","contentType":"directory"},{"name":"datadog_checks_downloader","path":"datadog_checks_downloader","contentType":"directory"},{"name":"datadog_checks_tests_helper","path":"datadog_checks_tests_helper","contentType":"directory"},{"name":"datadog_cluster_agent","path":"datadog_cluster_agent","contentType":"directory"},{"name":"datadog_operator","path":"datadog_operator","contentType":"directory"},{"name":"dcgm","path":"dcgm","contentType":"directory"},{"name":"ddev","path":"ddev","contentType":"directory"},{"name":"directory","path":"directory","contentType":"directory"},{"name":"disk","path":"disk","contentType":"directory"},{"name":"dns_check","path":"dns_check","contentType":"directory"},{"name":"docker_daemon","path":"docker_daemon","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"dotnetclr","path":"dotnetclr","contentType":"directory"},{"name":"druid","path":"druid","contentType":"directory"},{"name":"ecs_fargate","path":"ecs_fargate","contentType":"directory"},{"name":"eks_anywhere","path":"eks_anywhere","contentType":"directory"},{"name":"eks_fargate","path":"eks_fargate","contentType":"directory"},{"name":"elastic","path":"elastic","contentType":"directory"},{"name":"envoy","path":"envoy","contentType":"directory"},{"name":"etcd","path":"etcd","contentType":"directory"},{"name":"exchange_server","path":"exchange_server","contentType":"directory"},{"name":"external_dns","path":"external_dns","contentType":"directory"},{"name":"flink","path":"flink","contentType":"directory"},{"name":"fluentd","path":"fluentd","contentType":"directory"},{"name":"foundationdb","path":"foundationdb","contentType":"directory"},{"name":"gearmand","path":"gearmand","contentType":"directory"},{"name":"gitlab","path":"gitlab","contentType":"directory"},{"name":"gitlab_runner","path":"gitlab_runner","contentType":"directory"},{"name":"gke","path":"gke","contentType":"directory"},{"name":"glusterfs","path":"glusterfs","contentType":"directory"},{"name":"go-metro","path":"go-metro","contentType":"directory"},{"name":"go_expvar","path":"go_expvar","contentType":"directory"},{"name":"gunicorn","path":"gunicorn","contentType":"directory"},{"name":"haproxy","path":"haproxy","contentType":"directory"},{"name":"harbor","path":"harbor","contentType":"directory"},{"name":"hazelcast","path":"hazelcast","contentType":"directory"},{"name":"hdfs_datanode","path":"hdfs_datanode","contentType":"directory"},{"name":"hdfs_namenode","path":"hdfs_namenode","contentType":"directory"},{"name":"helm","path":"helm","contentType":"directory"},{"name":"hive","path":"hive","contentType":"directory"},{"name":"hivemq","path":"hivemq","contentType":"directory"},{"name":"http_check","path":"http_check","contentType":"directory"},{"name":"hudi","path":"hudi","contentType":"directory"},{"name":"hyperv","path":"hyperv","contentType":"directory"},{"name":"iam_access_analyzer","path":"iam_access_analyzer","contentType":"directory"},{"name":"ibm_ace","path":"ibm_ace","contentType":"directory"},{"name":"ibm_db2","path":"ibm_db2","contentType":"directory"},{"name":"ibm_i","path":"ibm_i","contentType":"directory"},{"name":"ibm_mq","path":"ibm_mq","contentType":"directory"},{"name":"ibm_was","path":"ibm_was","contentType":"directory"},{"name":"ignite","path":"ignite","contentType":"directory"},{"name":"iis","path":"iis","contentType":"directory"},{"name":"impala","path":"impala","contentType":"directory"},{"name":"istio","path":"istio","contentType":"directory"},{"name":"jboss_wildfly","path":"jboss_wildfly","contentType":"directory"},{"name":"jmeter","path":"jmeter","contentType":"directory"},{"name":"journald","path":"journald","contentType":"directory"},{"name":"kafka","path":"kafka","contentType":"directory"},{"name":"kafka_consumer","path":"kafka_consumer","contentType":"directory"},{"name":"kong","path":"kong","contentType":"directory"},{"name":"kube_apiserver_metrics","path":"kube_apiserver_metrics","contentType":"directory"},{"name":"kube_controller_manager","path":"kube_controller_manager","contentType":"directory"},{"name":"kube_dns","path":"kube_dns","contentType":"directory"},{"name":"kube_metrics_server","path":"kube_metrics_server","contentType":"directory"},{"name":"kube_proxy","path":"kube_proxy","contentType":"directory"},{"name":"kube_scheduler","path":"kube_scheduler","contentType":"directory"},{"name":"kubelet","path":"kubelet","contentType":"directory"},{"name":"kubernetes","path":"kubernetes","contentType":"directory"},{"name":"kubernetes_state","path":"kubernetes_state","contentType":"directory"},{"name":"kubernetes_state_core","path":"kubernetes_state_core","contentType":"directory"},{"name":"kyototycoon","path":"kyototycoon","contentType":"directory"},{"name":"langchain","path":"langchain","contentType":"directory"},{"name":"lighttpd","path":"lighttpd","contentType":"directory"},{"name":"linkerd","path":"linkerd","contentType":"directory"},{"name":"linux_proc_extras","path":"linux_proc_extras","contentType":"directory"},{"name":"mapr","path":"mapr","contentType":"directory"},{"name":"mapreduce","path":"mapreduce","contentType":"directory"},{"name":"marathon","path":"marathon","contentType":"directory"},{"name":"marklogic","path":"marklogic","contentType":"directory"},{"name":"mcache","path":"mcache","contentType":"directory"},{"name":"mesos_master","path":"mesos_master","contentType":"directory"},{"name":"mesos_slave","path":"mesos_slave","contentType":"directory"},{"name":"mongo","path":"mongo","contentType":"directory"},{"name":"mysql","path":"mysql","contentType":"directory"},{"name":"nagios","path":"nagios","contentType":"directory"},{"name":"network","path":"network","contentType":"directory"},{"name":"nfsstat","path":"nfsstat","contentType":"directory"},{"name":"nginx","path":"nginx","contentType":"directory"},{"name":"nginx_ingress_controller","path":"nginx_ingress_controller","contentType":"directory"},{"name":"ntp","path":"ntp","contentType":"directory"},{"name":"nvidia_jetson","path":"nvidia_jetson","contentType":"directory"},{"name":"oke","path":"oke","contentType":"directory"},{"name":"oom_kill","path":"oom_kill","contentType":"directory"},{"name":"openai","path":"openai","contentType":"directory"},{"name":"openldap","path":"openldap","contentType":"directory"},{"name":"openmetrics","path":"openmetrics","contentType":"directory"},{"name":"openshift","path":"openshift","contentType":"directory"},{"name":"openstack","path":"openstack","contentType":"directory"},{"name":"openstack_controller","path":"openstack_controller","contentType":"directory"},{"name":"oracle","path":"oracle","contentType":"directory"},{"name":"otel","path":"otel","contentType":"directory"},{"name":"pan_firewall","path":"pan_firewall","contentType":"directory"},{"name":"pdh_check","path":"pdh_check","contentType":"directory"},{"name":"pgbouncer","path":"pgbouncer","contentType":"directory"},{"name":"php_fpm","path":"php_fpm","contentType":"directory"},{"name":"pivotal_pks","path":"pivotal_pks","contentType":"directory"},{"name":"podman","path":"podman","contentType":"directory"},{"name":"postfix","path":"postfix","contentType":"directory"},{"name":"postgres","path":"postgres","contentType":"directory"},{"name":"powerdns_recursor","path":"powerdns_recursor","contentType":"directory"},{"name":"presto","path":"presto","contentType":"directory"},{"name":"process","path":"process","contentType":"directory"},{"name":"prometheus","path":"prometheus","contentType":"directory"},{"name":"proxysql","path":"proxysql","contentType":"directory"},{"name":"pulsar","path":"pulsar","contentType":"directory"},{"name":"rabbitmq","path":"rabbitmq","contentType":"directory"},{"name":"ray","path":"ray","contentType":"directory"},{"name":"redisdb","path":"redisdb","contentType":"directory"},{"name":"rethinkdb","path":"rethinkdb","contentType":"directory"},{"name":"riak","path":"riak","contentType":"directory"},{"name":"riakcs","path":"riakcs","contentType":"directory"},{"name":"sap_hana","path":"sap_hana","contentType":"directory"},{"name":"scylla","path":"scylla","contentType":"directory"},{"name":"sidekiq","path":"sidekiq","contentType":"directory"},{"name":"silk","path":"silk","contentType":"directory"},{"name":"singlestore","path":"singlestore","contentType":"directory"},{"name":"snmp","path":"snmp","contentType":"directory"},{"name":"snmp_american_power_conversion","path":"snmp_american_power_conversion","contentType":"directory"},{"name":"snmp_arista","path":"snmp_arista","contentType":"directory"},{"name":"snmp_aruba","path":"snmp_aruba","contentType":"directory"},{"name":"snmp_chatsworth_products","path":"snmp_chatsworth_products","contentType":"directory"},{"name":"snmp_check_point","path":"snmp_check_point","contentType":"directory"},{"name":"snmp_cisco","path":"snmp_cisco","contentType":"directory"},{"name":"snmp_dell","path":"snmp_dell","contentType":"directory"},{"name":"snmp_f5","path":"snmp_f5","contentType":"directory"},{"name":"snmp_fortinet","path":"snmp_fortinet","contentType":"directory"},{"name":"snmp_hewlett_packard_enterprise","path":"snmp_hewlett_packard_enterprise","contentType":"directory"},{"name":"snmp_juniper","path":"snmp_juniper","contentType":"directory"},{"name":"snmp_netapp","path":"snmp_netapp","contentType":"directory"},{"name":"snowflake","path":"snowflake","contentType":"directory"},{"name":"solr","path":"solr","contentType":"directory"},{"name":"sonarqube","path":"sonarqube","contentType":"directory"},{"name":"spark","path":"spark","contentType":"directory"},{"name":"sqlserver","path":"sqlserver","contentType":"directory"},{"name":"squid","path":"squid","contentType":"directory"},{"name":"ssh_check","path":"ssh_check","contentType":"directory"},{"name":"statsd","path":"statsd","contentType":"directory"},{"name":"strimzi","path":"strimzi","contentType":"directory"},{"name":"supervisord","path":"supervisord","contentType":"directory"},{"name":"system_core","path":"system_core","contentType":"directory"},{"name":"system_swap","path":"system_swap","contentType":"directory"},{"name":"systemd","path":"systemd","contentType":"directory"},{"name":"tcp_check","path":"tcp_check","contentType":"directory"},{"name":"tcp_queue_length","path":"tcp_queue_length","contentType":"directory"},{"name":"teamcity","path":"teamcity","contentType":"directory"},{"name":"temporal","path":"temporal","contentType":"directory"},{"name":"tenable","path":"tenable","contentType":"directory"},{"name":"teradata","path":"teradata","contentType":"directory"},{"name":"terraform","path":"terraform","contentType":"directory"},{"name":"tls","path":"tls","contentType":"directory"},{"name":"tokumx","path":"tokumx","contentType":"directory"},{"name":"tomcat","path":"tomcat","contentType":"directory"},{"name":"torchserve","path":"torchserve","contentType":"directory"},{"name":"traffic_server","path":"traffic_server","contentType":"directory"},{"name":"twemproxy","path":"twemproxy","contentType":"directory"},{"name":"twistlock","path":"twistlock","contentType":"directory"},{"name":"varnish","path":"varnish","contentType":"directory"},{"name":"vault","path":"vault","contentType":"directory"},{"name":"vertica","path":"vertica","contentType":"directory"},{"name":"voltdb","path":"voltdb","contentType":"directory"},{"name":"vsphere","path":"vsphere","contentType":"directory"},{"name":"weaviate","path":"weaviate","contentType":"directory"},{"name":"weblogic","path":"weblogic","contentType":"directory"},{"name":"win32_event_log","path":"win32_event_log","contentType":"directory"},{"name":"wincrashdetect","path":"wincrashdetect","contentType":"directory"},{"name":"windows_performance_counters","path":"windows_performance_counters","contentType":"directory"},{"name":"windows_service","path":"windows_service","contentType":"directory"},{"name":"winkmem","path":"winkmem","contentType":"directory"},{"name":"wmi_check","path":"wmi_check","contentType":"directory"},{"name":"yarn","path":"yarn","contentType":"directory"},{"name":"zk","path":"zk","contentType":"directory"},{"name":".codecov.yml","path":".codecov.yml","contentType":"file"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".dockerignore","path":".dockerignore","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitlab-ci.yml","path":".gitlab-ci.yml","contentType":"file"},{"name":".linkcheckerrc","path":".linkcheckerrc","contentType":"file"},{"name":"AGENT_CHANGELOG.md","path":"AGENT_CHANGELOG.md","contentType":"file"},{"name":"AGENT_INTEGRATIONS.md","path":"AGENT_INTEGRATIONS.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"LICENSE-3rdparty.csv","path":"LICENSE-3rdparty.csv","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"hatch.toml","path":"hatch.toml","contentType":"file"},{"name":"mkdocs.yml","path":"mkdocs.yml","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"requirements-agent-release.txt","path":"requirements-agent-release.txt","contentType":"file"}],"totalCount":252}},"fileTreeProcessingTime":21.603032000000002,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/byeonggukgong/integrations-core/branches":{"post":"97HDr2uOXcEnctOYWneB-HeBVjCBApJHbz8ZWvw-MrAeOeZcFPZeCBMFFdagUlWTI_HnpdM1pyCceJZKL6qWCQ"},"/byeonggukgong/integrations-core/branches/fetch_and_merge/master":{"post":"EZArHtqExQkuWcXKlsYaUpOg_9qjdKi9I1Rwg_yZQCUd5LY5Mbn6-2ijvaFneYFIlVgdU0kWhn6RNt5intaImw"},"/byeonggukgong/integrations-core/branches/fetch_and_merge/master?discard_changes=true":{"post":"7JEZMoUQeO4xVRpZ-Kf0Eyf686sZQv-SVMlDIwRUlmDg5YQVbi1HHHevYjIJGG8JIQIRIvMg0VHmq-3CZhte3g"}}},"title":"integrations-core/gunicorn at master · byeonggukgong/integrations-core","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0