You are here

monitoring.schema.yml in Monitoring 8

config/schema/monitoring.schema.yml

File

config/schema/monitoring.schema.yml
View source
  1. # General settings.
  2. monitoring.settings:
  3. type: config_object
  4. label: 'Monitoring settings'
  5. mapping:
  6. sensor_call_logging:
  7. type: string
  8. label: 'Call logging'
  9. cron_run_sensors:
  10. type: boolean
  11. label: 'Run sensors during cron runs'
  12. disable_sensor_autocreate:
  13. type: boolean
  14. label: 'Whether to never create sensors automatically in response to config changes'
  15. # Config schema for sensor config entity.
  16. monitoring.sensor_config.*:
  17. type: config_entity
  18. label: 'Monitoring Sensor'
  19. mapping:
  20. id:
  21. type: string
  22. label: 'Machine-readable name'
  23. label:
  24. type: label
  25. label: 'Sensor Label'
  26. description:
  27. type: text
  28. label: 'Description'
  29. category:
  30. type: string
  31. label: 'Category'
  32. plugin_id:
  33. type: string
  34. label: 'Sensor plugin ID'
  35. result_class:
  36. type: string
  37. label: 'Result Class'
  38. value_label:
  39. type: string
  40. label: 'Value Label'
  41. value_type:
  42. type: string
  43. label: 'Value Type'
  44. status:
  45. type: boolean
  46. label: 'Enabled'
  47. caching_time:
  48. type: integer
  49. label: 'Sensor Caching Time'
  50. settings:
  51. type: monitoring.settings.[%parent.plugin_id]
  52. label: 'Settings'
  53. thresholds:
  54. type: mapping
  55. label: 'Threshold'
  56. mapping:
  57. type:
  58. type: string
  59. label: 'Type'
  60. warning:
  61. type: integer
  62. label: 'Warning'
  63. critical:
  64. type: integer
  65. label: 'Critical'
  66. warning_low:
  67. type: integer
  68. label: 'Warning'
  69. critical_low:
  70. type: integer
  71. label: 'Critical'
  72. warning_high:
  73. type: integer
  74. label: 'Warning'
  75. critical_high:
  76. type: integer
  77. label: 'Critical'
  78. # Base type for settings with common settings.
  79. monitoring.settings_base:
  80. type: mapping
  81. mapping:
  82. result_logging:
  83. type: boolean
  84. label: Result logging
  85. # Base settings for database and entity aggregators.
  86. monitoring.settings.aggregator_base:
  87. type: monitoring.settings_base
  88. mapping:
  89. time_interval_field:
  90. type: string
  91. label: 'Time interval field'
  92. time_interval_value:
  93. type: integer
  94. label: 'Time interval value'
  95. conditions:
  96. type: sequence
  97. label: Conditions
  98. sequence:
  99. type: mapping
  100. mapping:
  101. field:
  102. type: string
  103. value:
  104. type: string
  105. operator:
  106. type: string
  107. verbose_fields:
  108. type: sequence
  109. label: Verbose fields
  110. sequence:
  111. type: string
  112. label: 'Field'
  113. monitoring.settings.database_aggregator:
  114. type: monitoring.settings.aggregator_base
  115. mapping:
  116. table:
  117. type: string
  118. label: 'Table'
  119. history_status:
  120. type: boolean
  121. label: 'History status'
  122. monitoring.settings.entity_aggregator:
  123. type: monitoring.settings.aggregator_base
  124. label: 'Entity aggregator sensor settings'
  125. mapping:
  126. entity_type:
  127. type: string
  128. label: 'Table'
  129. verbose_fields:
  130. type: sequence
  131. label: Fields / Attributes
  132. sequence:
  133. type: string
  134. label: The field to display
  135. monitoring.settings.monitoring_git_dirty_tree:
  136. type: monitoring.settings_base
  137. label: 'Dirty git tree sensor settings'
  138. mapping:
  139. repo_path:
  140. type: string
  141. label: 'Repository path'
  142. status_cmd:
  143. type: string
  144. label: 'Status command'
  145. check_branch:
  146. type: boolean
  147. label: 'Should check branch'
  148. ahead_cmd:
  149. type: string
  150. label: 'Ahead command'
  151. branches_cmd:
  152. type: string
  153. label: 'Branches command'
  154. actual_branch_cmd:
  155. type: string
  156. label: 'Actual branch command'
  157. expected_branch:
  158. type: string
  159. label: 'Git branch'
  160. submodules_cmd:
  161. type: string
  162. label: 'Check submodules command'
  163. monitoring.settings.monitoring_disappeared_sensors:
  164. type: monitoring.settings_base
  165. label: 'Disappaered sensor settings'
  166. monitoring.settings.queue_size:
  167. type: monitoring.settings_base
  168. label: 'Queue size sensor settings'
  169. mapping:
  170. queue:
  171. type: string
  172. label: Name of the queue
  173. monitoring.settings.update_status:
  174. type: monitoring.settings_base
  175. label: 'Update status sensor settings'
  176. mapping:
  177. type:
  178. type: string
  179. label: Type of updates to check
  180. monitoring.settings.core_requirements:
  181. type: monitoring.settings_base
  182. label: 'Core requirements sensor settings'
  183. mapping:
  184. module:
  185. type: string
  186. label: 'Module name'
  187. exclude_keys:
  188. type: sequence
  189. label: 'Exclude list'
  190. sequence:
  191. type: string
  192. label: 'Exclude key'
  193. monitoring.settings.payment_turnover:
  194. type: monitoring.settings.entity_aggregator
  195. label: 'Payment turnover sensor settings'
  196. mapping:
  197. currency_code:
  198. type: string
  199. lavel: Currency code
  200. monitoring.settings.view_display_aggregator:
  201. type: monitoring.settings_base
  202. label: 'View display aggregator sensor settings'
  203. mapping:
  204. view:
  205. type: string
  206. label: 'View'
  207. display:
  208. type: string
  209. label: 'Display'
  210. monitoring.settings.search_api_unindexed:
  211. type: monitoring.settings_base
  212. label: 'Search Api settings'
  213. mapping:
  214. index_id:
  215. type: string
  216. label: 'Index ID'
  217. monitoring.settings.watchdog_aggregator:
  218. type: monitoring.settings.database_aggregator
  219. label: 'Watchdog sensor settings'
  220. monitoring.settings.php_notices:
  221. type: monitoring.settings.watchdog_aggregator
  222. label: 'PHP notices sensor settings'
  223. monitoring.settings.dblog_404:
  224. type: monitoring.settings.database_aggregator
  225. label: '404 settings'
  226. monitoring.settings.image_style_missing:
  227. type: monitoring.settings.database_aggregator
  228. label: 'Missing images sensor settings'
  229. monitoring.settings.temporary_files_usages:
  230. type: monitoring.settings.database_aggregator
  231. label: 'Temporary files usages sensor settings'
  232. monitoring.settings.redirect_404:
  233. type: monitoring.settings.database_aggregator
  234. label: 'Redirect 404 sensor settings'
  235. monitoring.settings.user_integrity:
  236. type: monitoring.settings_base
  237. label: 'Privileged user integrity'
  238. monitoring.settings.user_failed_logins:
  239. type: monitoring.settings.watchdog_aggregator
  240. label: 'Failed user sensor settings'
  241. monitoring.settings.user_void_failed_logins:
  242. type: monitoring.settings.watchdog_aggregator
  243. label: 'Failed user sensor settings'
  244. monitoring.settings.twig_debug_mode:
  245. type: monitoring.settings_base
  246. label: 'Monitor twig settings'
  247. monitoring.settings.disk_usage:
  248. type: monitoring.settings_base
  249. label: 'Monitor disk space usage'
  250. mapping:
  251. directory:
  252. label: Directory
  253. type: string
  254. monitoring.settings.system_load:
  255. type: monitoring.settings_base
  256. label: 'Monitor system load'
  257. mapping:
  258. average_monitored:
  259. label: Average
  260. type: string
  261. monitoring.settings.monitoring_installed_modules:
  262. type: monitoring.settings_base
  263. label: 'Installed modules sensor settings'
  264. mapping:
  265. allow_additional:
  266. label: Allow additional
  267. type: boolean
  268. modules:
  269. label: Installed modules
  270. type: sequence
  271. sequence:
  272. type: string
  273. label: 'Module name'
  274. monitoring.settings.config_value:
  275. type: monitoring.settings_base
  276. label: 'Config sensor settings'
  277. mapping:
  278. config:
  279. type: string
  280. label: 'Type'
  281. key:
  282. type: string
  283. label: 'Key'
  284. value:
  285. # Value can be of different type (string, ...), depending on the settings.
  286. type: ignore
  287. label: 'Value'
  288. monitoring.settings.state_value:
  289. type: monitoring.settings_base
  290. label: 'State sensor settings'
  291. mapping:
  292. key:
  293. type: string
  294. label: 'Key'
  295. value:
  296. # Value can be of different type (string, ...), depending on the settings.
  297. type: ignore
  298. label: 'Value'
  299. monitoring.settings.cron_last_run_time:
  300. type: monitoring.settings_base
  301. label: 'Cron last run time sensor settings'
  302. mapping: { }
  303. monitoring.settings.ultimate_cron_errors:
  304. type: monitoring.settings_base
  305. label: 'Ultimate cron errors sensor settings'
  306. monitoring.settings.database_disk_usage:
  307. type: monitoring.settings_base
  308. label: 'Monitors how much space the database uses'
  309. monitoring.settings.solr_disk_usage:
  310. type: monitoring.settings_base
  311. label: 'Solr disk usage'
  312. mapping:
  313. server:
  314. label: 'Server'
  315. type: string
  316. monitoring.settings.monitoring_system_memory:
  317. type: monitoring.settings_base
  318. label: 'System memory sensor settings'
  319. mapping:
  320. memory:
  321. type: string
  322. label: 'Memory'
  323. value:
  324. type: string
  325. label: 'Value'
  326. monitoring.settings.commerce_turnover:
  327. type: monitoring.settings.entity_aggregator
  328. label: 'Commerce total turnover sensor settings'
  329. mapping:
  330. commerce_order_paid_states:
  331. type: sequence
  332. label: '"Paid" order states'
  333. sequence:
  334. type: string
  335. label: 'States'
  336. commerce_order_currency:
  337. type: string
  338. label: 'Currency'