https://github.com/remeh/statsd-zig
Basic statsd implementation in Ziglang.
https://github.com/remeh/statsd-zig
Last synced: 3 months ago
JSON representation
Basic statsd implementation in Ziglang.
- Host: GitHub
- URL: https://github.com/remeh/statsd-zig
- Owner: remeh
- License: mit
- Created: 2020-04-30T20:56:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T21:15:00.000Z (about 2 years ago)
- Last Synced: 2025-02-09T00:27:04.169Z (12 months ago)
- Language: Zig
- Size: 104 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-zig - remeh/statsd-zig - Basic DogStatsD UDP/UDS server supporting gauges and counters and sending these metrics to Datadog. (Network / Large Language Model)
README
# statsd-zig
Basic DogStatsD UDP/UDS server supporting gauges, counters and distributions
and sending these metrics to Datadog.
## Getting started
- Build the binary with `zig build` (build with Zig `0.14.0`)
- Set the environment variables `APIKEY` and `HOSTNAME` to configure the daemon
Uses `epoll` on Linux, `kqueue` on macOS.
## Socket
### With UDP
- Launch the daemon and start sending counters, gauges and distributions on port udp/8125
### With UDS
- Set the environment variable `UDS` to a filepath of the unix socket you want to use
- Sends counters, gauges and distributions on this unix socket with a DogStatsD client
# Author
Rémy 'remeh' Mathieu
# License
This side-project is not endorsed in any way by Datadog.
MIT