Skip to content

Commit

Permalink
Merge pull request #407 from UN-OCHA/monitoring-OPS-9765
Browse files Browse the repository at this point in the history
chore: Add monitoring
  • Loading branch information
attiks authored Dec 5, 2023
2 parents ce4a343 + 3c089cc commit 3082415
Show file tree
Hide file tree
Showing 49 changed files with 1,889 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .docksal/docksal.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DOCKSAL_STACK=default
DOCROOT=html
DB_IMAGE="docksal/db:1.1-mysql-5.7"
CLI_IMAGE='docksal/cli:php8.0-build'
CLI_IMAGE='docksal/cli:php8.2-build'
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"orakili/composer-drupal-info-file-patch-helper": "^1",
"unocha/common_design": "^9.2",
"unocha/ocha_key_figures": "^2.0",
"unocha/ocha_monitoring": "^1.0",
"unocha/ocha_search": "^1.0",
"webflo/drupal-finder": "^1.2.2"
},
Expand Down
367 changes: 233 additions & 134 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ module:
metatag: 0
metatag_open_graph: 0
metatag_twitter_cards: 0
monitoring: 0
mysql: 0
node: 0
ocha_key_figures: 0
ocha_monitoring: 0
ocha_search: 0
oembed_providers: 0
options: 0
Expand Down
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_cron_last_run_age.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: a4424879-8a0e-4c41-9d77-e722a8e01511
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: 9xaHOMw0Ra9sOuNKGoBqCLFoX2pj_66FbTQPK1CFK1U
id: core_cron_last_run_age
label: 'Last cron run age'
description: 'Time since last cron run'
category: Cron
plugin_id: cron_last_run_time
result_class: null
value_label: null
value_type: time_interval
caching_time: null
settings: { }
thresholds:
type: exceeds
warning: 86400
critical: 259200
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_maintenance_mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 6030136d-9027-4eb3-a72c-ccdac9cbfcd7
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: zogxfdFrxiieH69X2iP7PB00dkW62vHwpukdsyMCP5k
id: core_maintenance_mode
label: 'Maintenance mode'
description: 'Site maintenance mode'
category: Other
plugin_id: state_value
result_class: null
value_label: null
value_type: bool
caching_time: null
settings:
key: system.maintenance_mode
value: false
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_choices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 1a1565ec-6fc6-4563-913e-88b15e759658
langcode: en
status: false
dependencies:
module:
- choices
id: core_requirements_choices
label: 'Module choices'
description: 'Requirements of the choices module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: choices
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_csp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 231b4cdf-80ad-4ad6-96e6-d7a4cfb8985d
langcode: en
status: false
dependencies:
module:
- csp
id: core_requirements_csp
label: 'Module csp'
description: 'Requirements of the csp module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: csp
exclude_keys: { }
thresholds:
type: none
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 3d4a5d80-f68f-4031-a21c-52dcf97b9455
langcode: en
status: false
dependencies:
module:
- entity_browser
id: core_requirements_entity_browser
label: 'Module entity_browser'
description: 'Requirements of the entity_browser module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: entity_browser
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: db92afca-b719-4649-8ad6-e74bb3dfeca6
langcode: en
status: false
dependencies:
module:
- file
id: core_requirements_file
label: 'Module file'
description: 'Requirements of the file module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: file
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_google_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: e89798df-e725-43c2-a8e5-a346995634f1
langcode: en
status: false
dependencies:
module:
- google_tag
id: core_requirements_google_tag
label: 'Module google_tag'
description: 'Requirements of the google_tag module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: google_tag
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 9e9bcf7c-816b-489d-b4d8-46617dc49c62
langcode: en
status: false
dependencies:
module:
- image
id: core_requirements_image
label: 'Module image'
description: 'Requirements of the image module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: image
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_imagemagick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 8fae9522-1b32-4419-9eed-ee9fce368e85
langcode: en
status: false
dependencies:
module:
- imagemagick
id: core_requirements_imagemagick
label: 'Module imagemagick'
description: 'Requirements of the imagemagick module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: imagemagick
exclude_keys: { }
thresholds:
type: none
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: f3a6f0a1-a014-4f40-9423-23411dbee63c
langcode: en
status: false
dependencies:
module:
- layout_discovery
id: core_requirements_layout_discovery
label: 'Module layout_discovery'
description: 'Requirements of the layout_discovery module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: layout_discovery
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_locale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 3edafd6b-b8ee-4a7b-9f62-1628d139ee2a
langcode: en
status: false
dependencies:
module:
- locale
id: core_requirements_locale
label: 'Module locale'
description: 'Requirements of the locale module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: locale
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_media.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 94e62c62-be6a-43fe-89bb-78074a7db711
langcode: en
status: false
dependencies:
module:
- media
id: core_requirements_media
label: 'Module media'
description: 'Requirements of the media module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: media
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_memcache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: e5f1c572-a39c-40ad-bc9c-b848ebbbb2ff
langcode: en
status: true
dependencies:
module:
- memcache
id: core_requirements_memcache
label: 'Module memcache'
description: 'Requirements of the memcache module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: memcache
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_metatag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 18e2e2f8-7238-404c-a7ef-a01d3d2f6691
langcode: en
status: false
dependencies:
module:
- metatag
id: core_requirements_metatag
label: 'Module metatag'
description: 'Requirements of the metatag module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: metatag
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_mysql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 8df1b0a8-106b-4c79-89c2-b20ef2a1760c
langcode: en
status: true
dependencies:
module:
- mysql
id: core_requirements_mysql
label: 'Module mysql'
description: 'Requirements of the mysql module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: mysql
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: e5fc4375-0c5e-48af-8417-ae99cc01543b
langcode: en
status: false
dependencies:
module:
- node
id: core_requirements_node
label: 'Module node'
description: 'Requirements of the node module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: node
exclude_keys: { }
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_sophron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: e56445f6-3ec8-4224-9372-ce581e48986b
langcode: en
status: false
dependencies:
module:
- sophron
id: core_requirements_sophron
label: 'Module sophron'
description: 'Requirements of the sophron module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: sophron
exclude_keys: { }
thresholds:
type: none
Loading

0 comments on commit 3082415

Please sign in to comment.