mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
Flex recipe for jmonitor/jmonitor-bundle (#1958)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
jmonitor:
|
||||
# project_api_key can be empty to disable sending data to Jmonitor
|
||||
# useful for testing pourposes in non-production environments
|
||||
project_api_key: '%env(JMONITOR_API_KEY)%'
|
||||
|
||||
# Optional (recommended): use a specific logger service (Symfony's default is "logger").
|
||||
logger: 'logger'
|
||||
|
||||
# Optional: provide a custom HTTP client service
|
||||
# http_client: 'http_client'
|
||||
|
||||
when@dev:
|
||||
jmonitor:
|
||||
collectors:
|
||||
# Start with a basic collector for testing purposes
|
||||
# On non-linux OS, you can use RandomAdapter for testing purposes
|
||||
# system:
|
||||
# enabled: true
|
||||
# adapter: "Jmonitor\\Collector\\System\\Adapter\\RandomAdapter"
|
||||
system:
|
||||
enabled: true
|
||||
|
||||
when@prod:
|
||||
jmonitor:
|
||||
# Add collectors configured for production here
|
||||
# Refer to the package documentation for all available collectors: https://github.com/jmonitor/jmonitor-bundle
|
||||
collectors:
|
||||
system:
|
||||
enabled: true
|
||||
@@ -0,0 +1,11 @@
|
||||
jmonitor_expose_php_metrics:
|
||||
path: '/jmonitor/php-metrics'
|
||||
controller: Jmonitor\JmonitorBundle\Controller\JmonitorPhpController
|
||||
|
||||
# Secured route in production with localhost host restriction
|
||||
# Refer to symfony docs for more information about security
|
||||
when@prod:
|
||||
jmonitor_expose_php_metrics:
|
||||
path: '/jmonitor/php-metrics'
|
||||
controller: Jmonitor\JmonitorBundle\Controller\JmonitorPhpController
|
||||
host: localhost
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Jmonitor\\JmonitorBundle\\JmonitorBundle": ["dev", "prod"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"JMONITOR_API_KEY": ""
|
||||
},
|
||||
"dotenv": {
|
||||
"prod": {
|
||||
"JMONITOR_API_KEY": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user