DogStatsD server に送ることができる UDP Packets は flush 間隔当たり 2K まで
制限
- 2k 以上送って Datadog(Web) 上で metrics を参照すると不正確なデータが表示されてしまう
対策
- Help に書いてるように Sampling して送る
- サンプリングできるかどうかは目的次第
- Application 側で 10s 毎に集計して、statsd server に送る
- Container, IaaS
- Application 側で集計して、直接 Web API で Datadog に送る
- Container, IaaS, PaaS
ライブラリ (C#)
- DogStatsD / APM Client
- Metrics
- どちらも Reporter は比較的簡単に作れる
- GitHub - Recognos/Metrics.NET: The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.
- GitHub - AppMetrics/AppMetrics: App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.