{"id":13431572,"url":"https://github.com/Pereingo/statsd-csharp-client","last_synced_at":"2025-03-16T11:31:59.694Z","repository":{"id":3890139,"uuid":"4977509","full_name":"Pereingo/statsd-csharp-client","owner":"Pereingo","description":"Statsd C# Client","archived":true,"fork":false,"pushed_at":"2019-03-04T22:06:26.000Z","size":984,"stargazers_count":111,"open_issues_count":0,"forks_count":67,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-05-19T12:15:18.931Z","etag":null,"topics":["c-sharp","nuget","statsd","statsd-client"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pereingo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-10T17:20:58.000Z","updated_at":"2023-12-02T13:20:59.000Z","dependencies_parsed_at":"2022-07-31T14:39:12.606Z","dependency_job_id":null,"html_url":"https://github.com/Pereingo/statsd-csharp-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pereingo%2Fstatsd-csharp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pereingo%2Fstatsd-csharp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pereingo%2Fstatsd-csharp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pereingo%2Fstatsd-csharp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pereingo","download_url":"https://codeload.github.com/Pereingo/statsd-csharp-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243863350,"owners_count":20360304,"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":["c-sharp","nuget","statsd","statsd-client"],"created_at":"2024-07-31T02:01:04.187Z","updated_at":"2025-03-16T11:31:59.074Z","avatar_url":"https://github.com/Pereingo.png","language":"C#","readme":"Statsd Client - DEPRECATED\n==========================\n\nThis project is deprecated as of March 4, 2019. There's no official maintainer, and better alternatives exist. Security only related updates will be considered going forward. Currently active versions will remain on NuGet.\n\nWe suggest migrating to [JustEat.StatsD](https://github.com/justeat/JustEat.StatsD), which has a very similar API to this project, plenty of additional features, and is actively maintained.\n\nThanks to all the contributors and your many PRs and reported issues over the years, the numerous developers that have forked or been inspired by this client, and everyone that used it successfully in production!\n\n# THIS PROJECT IS DEPRECATED\n\nOriginal readme...\n\n---\n\n[![Build status](https://ci.appveyor.com/api/projects/status/fklgn25u3k66qu3v?svg=true)](https://ci.appveyor.com/project/DarrellMozingo/statsd-csharp-client)\n[![NuGet Version](http://img.shields.io/nuget/v/StatsdClient.svg?style=flat)](https://www.nuget.org/packages/StatsdClient/)\n\nA .NET Standard compatible C# client to interface with Etsy's excellent [statsd](https://github.com/etsy/statsd) server.\n\nInstall the client via NuGet with the [StatsdClient package](http://nuget.org/packages/StatsdClient).\n\n## Usage\n\nAt app startup, configure the `Metrics` class:\n\n``` C#\nMetrics.Configure(new MetricsConfig\n{\n  StatsdServerName = \"hostname\",\n  Prefix = \"myApp.prod\"\n});\n```\n\nStart measuring all the things!\n\n``` C#\nMetrics.Counter(\"stat-name\");\nMetrics.Time(() =\u003e myMethod(), \"timer-name\");\nvar result = Metrics.Time(() =\u003e GetResult(), \"timer-name\");\nvar result = await Metrics.Time(async () =\u003e await myAsyncMethod(), \"timer-name\");\nMetrics.GaugeAbsoluteValue(\"gauge-name\", 35);\nMetrics.GaugeDelta(\"gauge-name\", -5);\nMetrics.Set(\"something-special\", \"3\");\n\nusing (Metrics.StartTimer(\"stat-name\"))\n{\n  // Lots of code here\n}\n```\n\n## Advanced Features\n\nTo enable these, see the `MetricsConfig` class discussed above.\n\n* `UseTcpProtocol`: sends metrics to statsd via TCP. While supported, UDP is recommended in most cases. If you need TCP reliability, a relay service running locally on the server which you'd send UDP to, and it would relay via TCP, is advised.\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guidelines.\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","框架, 库和工具","Metrics","度量"],"sub_categories":["SDKs","开发工具包SDKs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPereingo%2Fstatsd-csharp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPereingo%2Fstatsd-csharp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPereingo%2Fstatsd-csharp-client/lists"}