{"repo":"lamoda/php-metrics","free":true,"listed":false,"github":"https://github.com/lamoda/php-metrics","clone":"git clone https://github.com/lamoda/php-metrics.git","description":"PHP metric responder and storage abstraction library","language":"PHP","stars":36,"topics":["php","metrics","monitoring"],"license":"MIT","category":"analytics","readme_excerpt":"Lamoda metric responder Features Metric responder with lazy sourcing Multiple metric response formats Telegraf JSON Prometheus exporter Symfony bundle [optional] Doctrine and redis/predis integration out of the box Installation install with composer Usage examples Collecting metrics Storing metrics Responding metrics Symfony integration Main terms Metric is a named value, representing system running state, health check or cumulative measurement, optionally tagged Metric response is a set of metrics collected for the fixed moment of time, formatted for single input format Metric responder is a http endpoint used to render collected metrics into suitable web response format Metrics can be sourced in the terms of dynamic spawning for collection generation The general advice is to have metrics as lazy as possible, resolving to the fixed at the time of generation response Usually Source is implemented as an instance of \\Traversable object to embed into collection Metric are generally of two types: Precomputed metrics are usually generated outside of responding process, like counters Runtime metrics are generated on call, representing the current state of the system From the point of metric responding the difference between types is nominal since PHP has share nothing architecture and most stored values should be obtained from storage in any case (and thus waste some caller time), so in general Precomputed metrics are just very fast Runtime metrics But from the point of metric stor","default_branch":null,"files":null,"tree":[],"storefront":"/r/lamoda","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lamoda/php-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}