coremetrics / coremetrics-laravel
Coremetrics server and application monitoring.
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- ext-sockets: *
- clue/socket-raw: ^1.4
- illuminate/support: ~5.0 || ~6.0 || ~7.0 || ~8.0
- react/event-loop: ^1.1
- react/socket: ^1.2
Requires (Dev)
- mockery/mockery: ^0.9.4
- orchestra/testbench: ^3.5
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-02-09 23:56:01 UTC
README
Installation
"require": {
"coremetrics/coremetrics-laravel": "@dev"
}
"repositories": [
{
"type": "path",
"url": "../coremetrics-package",
"options": {
"symlink": true
}
}
]
Publish Configuration
This is necessary to set the channel token, so the server will accept the metrics.
php artisan vendor:publish --provider="Coremetrics\CoremetricsLaravel\CoremetricsLaravelServiceProvider" --tag="config"
Add Token
You must add a channel token from the Coremetrics server to the .env
file under the key COREMETRICS_TOKEN
. This will be a UUID.
Server Endpoint
You must set a server endpoint in the .env
file under the key COREMETRICS_URL
.
Daemon:
If the command isn't running then the agent will be started automatically. There is currently no mechanism to turn off the agent after it is started in this way, so it is recommended to start the agent manually with the following commmand in order to be able to stop it. If you don't, it will keep running and fill up logs with debug statements.
php artisan cm:daemon:start