{"id":29273662,"url":"https://github.com/simplifi/nginx-dogstatsd","last_synced_at":"2025-10-24T00:53:26.098Z","repository":{"id":147463983,"uuid":"442597573","full_name":"simplifi/nginx-dogstatsd","owner":"simplifi","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-28T21:23:32.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-05T03:14:27.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplifi.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-28T22:21:00.000Z","updated_at":"2021-12-28T22:23:32.000Z","dependencies_parsed_at":"2023-07-24T19:31:45.287Z","dependency_job_id":null,"html_url":"https://github.com/simplifi/nginx-dogstatsd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simplifi/nginx-dogstatsd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplifi%2Fnginx-dogstatsd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplifi%2Fnginx-dogstatsd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplifi%2Fnginx-dogstatsd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplifi%2Fnginx-dogstatsd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplifi","download_url":"https://codeload.github.com/simplifi/nginx-dogstatsd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplifi%2Fnginx-dogstatsd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280718615,"owners_count":26379163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-05T02:36:30.853Z","updated_at":"2025-10-24T00:53:26.083Z","avatar_url":"https://github.com/simplifi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"nginx-dogstatsd\n===============\n\nAn nginx module for sending statistics to dogstatsd.\n\nThis is how to use the nginx-dogstatsd module:\n\n\thttp {\n\n\t\t# Set the server that you want to send stats to.\n\t\tdogstatsd_server your.dogstatsd.server.com;\n\n\t\t# Randomly sample 10% of requests so that you do not overwhelm your dogstatsd server.\n\t\t# Defaults to sending all dogstatsd (100%).\n\t\tdogstatsd_sample_rate 10; # 10% of requests\n\n\n\t\tserver {\n\t\t\tlisten 80;\n\t\t\tserver_name www.your.domain.com;\n\n\t\t\t# Increment \"your_product.requests\" by 1 whenever any request hits this server.\n\t\t\tdogstatsd_count \"your_product.requests\" 1;\n\n\t\t\tlocation / {\n\n\t\t\t\t# Increment the key by 1 when this location is hit.\n\t\t\t\tdogstatsd_count \"your_product.pages.index_requests\" 1;\n\n\t\t\t\t# Increment the key by 1 when this location is hit with a tag based on a variable\n\t\t\t\tdogstatsd_count \"your_product.pages.index_requests\" 1 \"server:$server_name\";\n\n\t\t\t\t# Increment the key by 1, but only if $request_completion is set to something.\n\t\t\t\tdogstatsd_count \"your_product.pages.index_responses\" 1 \"\" \"$request_completion\";\n\n\t\t\t\t# Send a timing to \"your_product.pages.index_response_time\" equal to the value\n\t\t\t\t# returned from the upstream server. If this value evaluates to empty-string\n\t\t\t\t# it will not be sent. Thus, there is no need to add a test. 0 values are sent as timings since they are significant.\n\t\t\t\tdogstatsd_timing \"your_product.pages.index_response_time\" \"$upstream_response_time\";\n\n\t\t\t\t# Increment a key based on the value of a custom header. Only sends the value if\n\t\t\t\t# the custom header exists in the upstream response.\n\t\t\t\tdogstatsd_count \"your_product.custom_$upstream_http_x_some_custom_header\" 1 \"\"\n\t\t\t\t\t\"$upstream_http_x_some_custom_header\";\n\n\t\t\t\tproxy_pass http://some.other.domain.com;\n\t\t\t}\n\t\t}\n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplifi%2Fnginx-dogstatsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplifi%2Fnginx-dogstatsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplifi%2Fnginx-dogstatsd/lists"}