diff --git a/webowi/symfony-monitoring-bundle/0.1/config/packages/symfony_monitoring.yaml b/webowi/symfony-monitoring-bundle/0.1/config/packages/symfony_monitoring.yaml new file mode 100644 index 00000000..2db6d4ec --- /dev/null +++ b/webowi/symfony-monitoring-bundle/0.1/config/packages/symfony_monitoring.yaml @@ -0,0 +1,6 @@ +# Get your project's url and api_key from your Monitoring Webowi project's ingestion-key page +# (GET /api/v1/projects/{uuid}/ingestion-key). +symfony_monitoring: + url: '%env(MONITORING_WEBOWI_URL)%' + api_key: '%env(MONITORING_WEBOWI_API_KEY)%' + level: error diff --git a/webowi/symfony-monitoring-bundle/0.1/manifest.json b/webowi/symfony-monitoring-bundle/0.1/manifest.json new file mode 100644 index 00000000..75624ba5 --- /dev/null +++ b/webowi/symfony-monitoring-bundle/0.1/manifest.json @@ -0,0 +1,26 @@ +{ + "bundles": { + "Webowi\\SymfonyMonitoringBundle\\SymfonyMonitoringBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "MONITORING_WEBOWI_URL": "", + "MONITORING_WEBOWI_API_KEY": "" + }, + "post-install-output": [ + "A config/packages/symfony_monitoring.yaml file has been added with placeholder values.", + "", + "Set the MONITORING_WEBOWI_URL and MONITORING_WEBOWI_API_KEY environment variables,", + "or edit the file directly, using the url and api_key from your Monitoring Webowi", + "project's ingestion-key page (GET /api/v1/projects/{uuid}/ingestion-key).", + "", + "Running this app in Docker? 'localhost' inside your app's container does not reach", + "a Monitoring Webowi instance running in a sibling container/stack. Use", + "http://host.docker.internal:/... (Docker Desktop on Mac/Windows) instead,", + "or the instance's container/service name if both stacks share a Docker network.", + "", + "No further wiring is needed — this bundle registers its own Monolog handler chain." + ] +}