Tags: stechstudio/laravel-metrics
Tags
add: prometheus driver (#20) * upd: wip prometheus support * upd: wip. basic prometheus counter metric support * upd: wip. flush and get as prometheus formatted text * upd: cleanup composer. add more tests. increase php version requirement to use enums. * add: description prop to metric. wipe registry before formatting. update readme * upd: driver cleanup and description assertion in test * upd: format underscore all metric names and labels. fix tests * fix: readme * upd: remove not needed dev dependencies, we have them in suggestions so its up to the client which one to install
Avoid warnings on ComputesNanosecondTimestamps (#21) * Avoid warnings on ComputesNanosecondTimestamps * Tweaks - Compute `strlen` once. - `microtime(true)` can return different number of decimals: These are all valid: ``` 1706498205.1234 1706498205.123 1706498205.12 1706498205.1 ``` * Refactor and tests * Improve float length and more tests
Add influx db 2 support (#17) * Added influxdata/influxdb-client-php and deps * Moved InfluxDB::getNanosecondTimestamp to trait * Added InfluxDB2 support * Fixed env variable name * Added MetricsManager::createInfluxdb2Driver * Removed unused namespaces * Fix createInfluxDB2Driver * Fix namespace * Add default write precision * Add InfluxDB2 to provides list * Add default value for $points * Removed configurability of WritePrecision * Add InfluxDB adapters * Convert InfluxDB driver to use adapter * Remove InfluxDB2 driver * Add IDB_VERSION env variable * Create adapters inside Service Provider * Force legacy tests to use Version 1 adapter * Changed tests to match adapter pattern * Remove AbstractInfluxDBAdapter::__construct * Change default signature for writePoints * Fix ternary if statement * Call write points on adapter * Construct with UDP flag when necessary * Add missing configuration values * Set org default to empty string * Set InfluxDB Adapter V1 as default * Updated README * README pass 2 * fix typed point --------- Co-authored-by: David Frailey <[email protected]> Co-authored-by: Joseph Szobody <[email protected]>
PreviousNext