PHPackages                             easybill/serverdensity\_udp\_metric\_client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. easybill/serverdensity\_udp\_metric\_client

ActiveLibrary

easybill/serverdensity\_udp\_metric\_client
===========================================

Client for UDP-Agent https://github.com/easybill/serverdensity-udp-agent

0.6.6(2y ago)474.0k↓34.8%[8 PRs](https://github.com/easybill/serverdensity-udp-agent/pulls)MITRustPHP &gt;=7.0CI failing

Since Oct 26Pushed 2mo ago9 watchersCompare

[ Source](https://github.com/easybill/serverdensity-udp-agent)[ Packagist](https://packagist.org/packages/easybill/serverdensity_udp_metric_client)[ RSS](/packages/easybill-serverdensity-udp-metric-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (34)Used By (0)

Prometheus UDP Monitor
======================

[](#prometheus-udp-monitor)

Installing
----------

[](#installing)

This project is build on each release for Linux &amp; Mac x86, aarch64. You can download these pre-build binaries from the [releases tab](https://github.com/easybill/openmetric-udp-agent/releases).

### Other Platforms

[](#other-platforms)

For other platforms you need to compile this lib yourself:

1. [Install Rust and Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
2. Clone this repository
3. Run `cargo b --release --bin=openmetrics_udpserver`
4. The executable is located in `target/release/openmetrics_udpserver`

Sending Metrics
---------------

[](#sending-metrics)

The UDP-Server will collect sent metrics and make them available through a http endpoint using the openmetrics-text encoding. Sent values for the metric types Min, Average &amp; Peak are just single values (if a value is received twice before collection, the old value gets overridden). The Sum metric type will sum up all received values until a collection happens - then the counter is reset to 0.

From performance perspective you could send thousands of messages per second.

### PHP

[](#php)

We provide a small php client

```
composer require easybill/serverdensity_udp_metric_client

```

```
