{"id":28386253,"url":"https://github.com/statsd/filter","last_synced_at":"2025-06-26T13:31:36.766Z","repository":{"id":25773879,"uuid":"29212193","full_name":"statsd/filter","owner":"statsd","description":"Whistlist and rename metrics and chain into another sink","archived":false,"fork":false,"pushed_at":"2015-01-13T21:30:54.000Z","size":116,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T17:17:47.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statsd.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-13T21:30:03.000Z","updated_at":"2020-04-26T08:51:49.000Z","dependencies_parsed_at":"2022-08-24T14:14:16.957Z","dependency_job_id":null,"html_url":"https://github.com/statsd/filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/statsd/filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statsd%2Ffilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statsd%2Ffilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statsd%2Ffilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statsd%2Ffilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statsd","download_url":"https://codeload.github.com/statsd/filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statsd%2Ffilter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262076584,"owners_count":23255036,"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","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-05-30T13:41:01.964Z","updated_at":"2025-06-26T13:31:36.758Z","avatar_url":"https://github.com/statsd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# filter\n\n Statsite filter command, allowing you to whitelist and rename metrics based on a simple JSON configuration file containing regular expression rules. This allows you to send specific metrics to a given service.\n\n## Examples\n\nSample input:\n\n```\ngauges.api-1.memory.percent|80|1421164536386\ngauges.api-2.memory.percent|30|1421164536386\ngauges.ingestion-2.memory.percent|50|1421164536386\ngauges.api-3.memory.percent|50|1421164536386\ngauges.cdn-1.memory.percent|50|1421164536386\ngauges.cdn-2.memory.percent|50|1421164536386\ncounts.app.signups|10|1421164536386\ngauges.ingestion-1.memory.percent|50|1421164536386\n```\n\nStrip all `counts.`, `gauges.`, and `.timers` prefixes:\n\n```json\n{\n  \"^(?:counts|gauges|timers)\\\\.(.*)\": \"$1\"\n}\n```\n\nOutputs:\n\n```\napi-1.memory.percent|80|1421164536386\napi-2.memory.percent|30|1421164536386\ningestion-2.memory.percent|50|1421164536386\napi-3.memory.percent|50|1421164536386\ncdn-1.memory.percent|50|1421164536386\ncdn-2.memory.percent|50|1421164536386\napp.signups|10|1421164536386\ningestion-1.memory.percent|50|1421164536386\n```\n\nInclude all counters as-is, but strip `gauges.` prefix from api metrics:\n\n```json\n{\n  \"^gauges\\\\.(api-.*)\": \"$1\",\n  \"^counts\\\\.\": true\n}\n```\n\nOutputs:\n\n```\napi-1.memory.percent|80|1421164536386\napi-2.memory.percent|30|1421164536386\napi-3.memory.percent|50|1421164536386\ncounts.app.signups|10|1421164536386\n```\n\nClean up some metric names for services like Stathat which have minimal realestate:\n\n```json\n{\n  \"^gauges\\\\.(api-.*)\\\\.(memory|disk)\\\\.percent\": \"$1.$2\"\n}\n```\n\nOutputs:\n\n```\napi-1.memory|80|1421164536386\napi-2.memory|30|1421164536386\napi-3.memory|50|1421164536386\n```\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatsd%2Ffilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatsd%2Ffilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatsd%2Ffilter/lists"}