{"repo":"stechstudio/laravel-metrics","free":true,"listed":false,"github":"https://github.com/stechstudio/laravel-metrics","clone":"git clone https://github.com/stechstudio/laravel-metrics.git","description":"Easily track metrics from Laravel events and ship to InfluxDB, Prometheus, CloudWatch, or PostHog.","language":"PHP","stars":50,"topics":["laravel","metrics","influxdb","cloudwatch","posthog","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Metrics This package makes it incredibly easy to ship app metrics to backends such as PostHog, InfluxDB or CloudWatch. There are two major components: a facade that lets you create metrics on your own, and an event listener to automatically send metrics for Laravel events. Installation You know the drill... Backend configuration PostHog 1. Install the PostHog PHP client: composer require posthog/posthog-php 2. Add the following to your .env file: InfluxDB v1.7 and under 1. Install the InfluxDB PHP client: composer require influxdb/influxdb-php 2. Add the following to your .env file: InfluxDB V1.8 and above 1. Install the InfluxDB PHP client: composer require influxdata/influxdb-client-php 2. Add the following to your .env file: 3. In order to use UDP with InfluxDB V1.8+ you must follow extra setup steps Add the following to your .env file: CloudWatch 1. Install the AWS PHP SDK: composer require aws/aws-sdk-php . 2. Add the following to your .env file: Prometheus 1. Install the Prometheus PHP client: composer require promphp/prometheus client php 2. Configuring the backend to use Prometheus, makes sense only if you have an endpoint to expose them. Its purpose is only to format the registered metrics in a way that Prometheus can scrape them. NullDriver (for development) If you need to disable metrics just set the backend to null: This null driver will simply discard any metrics. Sending an individual metric You can create metric by using the facade like this: The only r","default_branch":null,"files":null,"tree":[],"storefront":"/r/stechstudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stechstudio/laravel-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."}