Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkyshm/dogstatsc
A DogStatsD client OTP application
https://github.com/tkyshm/dogstatsc
datadog dogstatsd erlang erlang-otp
Last synced: about 1 month ago
JSON representation
A DogStatsD client OTP application
- Host: GitHub
- URL: https://github.com/tkyshm/dogstatsc
- Owner: tkyshm
- License: apache-2.0
- Created: 2018-04-08T14:48:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T09:21:48.000Z (over 6 years ago)
- Last Synced: 2024-04-24T22:01:56.080Z (7 months ago)
- Topics: datadog, dogstatsd, erlang, erlang-otp
- Language: Erlang
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![hex.pm version](https://img.shields.io/hexpm/v/ltsv.svg)](https://hex.pm/packages/dogstatsc)
[![Build Status](https://travis-ci.org/tkyshm/dogstatsc.svg?branch=master)](https://travis-ci.org/tkyshm/dogstatsc)# [dogstatsc](https://hex.pm/packages/dogstatsc)
A [DogStatsD](https://docs.datadoghq.com/developers/dogstatsd/) client OTP application.
## Usage
- dogstatsc API
```console
% start dogstatsc application
> application:ensure_all_started(dogstatsc).
{ok, [dogstatc]}% metrics
> dogstatsc:send_metrics("name.metrics.cpu", c, 1.0).
ok% events
> dogstatsc:send_events("name.events", "event name text").
ok% service check
> dogstatsc:send_service_check("name.sc.crit", status_crit).
ok
```## Config
var | description
-------- | -------------------------------------
port | dogstatsd port (default: 8125)
host | dogstatsd port (default: localhost)
conn_num | number of udp client workers (default: 2)- sample config
```erlang
[
{dogstatsc, [{port, 8125}, {host, 'localhost'}, {conn_num, 2}]}
].
```