Download the PHP package easybill/serverdensity_udp_metric_client without Composer

On this page you can find all versions of the php package easybill/serverdensity_udp_metric_client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package serverdensity_udp_metric_client

Prometheus UDP Monitor

Installing

This project is build on each release for Linux & Mac x86, aarch64. You can download these pre-build binaries from the releases tab.

Other Platforms

For other platforms you need to compile this lib yourself:

  1. Install Rust and Cargo
  2. Clone this repository
  3. Run cargo b --release --bin=openmetrics_udpserver
  4. The executable is located in target/release/openmetrics_udpserver

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 & 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

We provide a small php client

Data Format

The data format that must be used to send data to the server must be as follows:

  1. u16: representation of the metric type (see table below)
  2. i32: the data count
  3. the utf-8 encoded name of the metric

All numbers must be encoded using big endian byte order.

Metric Types:

Type ID
Sum 42
Average 43
Peak 44
Min 45

Installing + Supervisor

now you can test if the server starts:

open /etc/supervisor/conf.d/openmetrics_udpserver.conf and add:

Check the update of the new process

supervisorctl status openmetrics_udpserver

Updating the udp server


All versions of serverdensity_udp_metric_client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package easybill/serverdensity_udp_metric_client contains the following files

Loading the files please wait ....