PHP code example of vortos / vortos-observability
1. Go to this page and download the library: Download vortos/vortos-observability library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vortos / vortos-observability example snippets
bash
php bin/console vortos:observability:collector --sink=grafana # generate sidecar config
php bin/console vortos:observability:collector --dry-run # preview
php bin/console vortos:observability:heartbeat --status=success # dead-man check-in (cron, ~60s)
bash
php bin/console vortos:observability:list
php bin/console vortos:observability:publish --stack=grafana-oss
php bin/console vortos:observability:publish --stack=datadog
php bin/console vortos:observability:publish --stack=newrelic