Skip to content

Commit

Permalink
Merge pull request #685 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 6, 2023
2 parents 418d71e + f51e074 commit 7e1b972
Show file tree
Hide file tree
Showing 44 changed files with 1,791 additions and 138 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 @@ -71,6 +71,7 @@
"reliefweb/simple-datepicker": "^v1.3",
"symfony/uid": "^6.2",
"unocha/common_design": "^9.2",
"unocha/ocha_monitoring": "^1.0",
"webflo/drupal-finder": "^1.2.2"
},
"require-dev": {
Expand Down
372 changes: 235 additions & 137 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 @@ -48,8 +48,10 @@ module:
metatag_open_graph: 0
metatag_twitter_cards: 0
mimemail: 0
monitoring: 0
mysql: 0
node: 0
ocha_monitoring: 0
options: 0
page_cache: 0
path: 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: a916bafe-f92f-4ce5-bdd0-3c71891b2ba2
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: d538f062-14b0-45e1-a632-dc8b4fc2eb9c
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_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 0e4e4086-4607-4f20-bbdf-59ec59951a29
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: cd0598da-f3b5-485a-8ac2-a32d20fbcb90
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: dc979850-1952-47b9-b16a-bbfd6518e53d
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: 2304c248-2afb-4f1b-9ba0-ca62c5a1da09
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
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: 78fcc88a-725f-4297-af58-dd6a476f113e
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: 326888b7-cab4-40b9-9ffd-1bbec0089da7
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: 31fcb983-fb7e-4910-bf25-f636baaf570d
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: f5106b23-444d-40d3-8583-2c26b3a7a95e
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: c84e66c4-2075-489e-80d8-10667cbf5138
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: 2612f891-37d4-4005-99a3-541c32f47b1c
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: b570c6f4-7637-4f7f-b431-f927a672f543
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
21 changes: 21 additions & 0 deletions config/monitoring.sensor_config.core_requirements_system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: be2ebbf0-57fa-4aac-a81c-24c4edc1e762
langcode: en
status: true
dependencies:
module:
- system
id: core_requirements_system
label: 'Module system'
description: 'Requirements of the system module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: system
exclude_keys:
- cron
thresholds:
type: none
20 changes: 20 additions & 0 deletions config/monitoring.sensor_config.core_requirements_token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: b45511c1-cec5-441b-8934-9a6760bbf679
langcode: en
status: false
dependencies:
module:
- token
id: core_requirements_token
label: 'Module token'
description: 'Requirements of the token module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: token
exclude_keys: { }
thresholds:
type: none
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 8fa3c940-010f-4c3f-b5b3-df50c3981ef0
langcode: en
status: false
dependencies:
module:
- username_enumeration_prevention
id: core_requirements_username_enumeration_prevention
label: 'Module username_enumeration_prevention'
description: 'Requirements of the username_enumeration_prevention module'
category: Requirements
plugin_id: core_requirements
result_class: null
value_label: null
value_type: no_value
caching_time: 3600
settings:
module: username_enumeration_prevention
exclude_keys: { }
thresholds:
type: none
23 changes: 23 additions & 0 deletions config/monitoring.sensor_config.core_theme_default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 9240ab89-214c-49be-8ac6-dc7809b6bae5
langcode: en
status: false
dependencies:
module:
- system
_core:
default_config_hash: Af8OA_1xItAdMneO4-cPsMdKI5ukOyxw0HzH7I-p6JM
id: core_theme_default
label: 'Default theme'
description: 'Site default theme'
category: Other
plugin_id: config_value
result_class: null
value_label: null
value_type: string
caching_time: null
settings:
config: system.theme
key: default
value: bartik
thresholds:
type: none
Loading

0 comments on commit 7e1b972

Please sign in to comment.