Commit d3b2da00 authored by Hardik Juneja's avatar Hardik Juneja

stack/monitor: Add promise to check memory

parent 20c21929
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
# not need these here). # not need these here).
[monitor2-template] [monitor2-template]
filename = instance-monitor.cfg.jinja2.in filename = instance-monitor.cfg.jinja2.in
md5sum = 5027f0b1abcc28ce3817cd70fb667a3b md5sum = fe11d549b8fb323bab0b18985320c386
...@@ -387,6 +387,10 @@ context = ...@@ -387,6 +387,10 @@ context =
raw python_bin {{ python_with_eggs }} raw python_bin {{ python_with_eggs }}
config-file = ${directory:etc}/min-free-disk-size config-file = ${directory:etc}/min-free-disk-size
[promise-check-free-memory]
recipe = slapos.cookbook:wrapper
command-line = {{ bin_directory }}/check-computer-memory --collectordb ${monitor-conf-parameters:collector-db}
wrapper-path = ${directory:promises}/check-computer-memory
[monitor-base] [monitor-base]
# create dependencies between required monitor parts # create dependencies between required monitor parts
...@@ -406,6 +410,7 @@ depends = ...@@ -406,6 +410,7 @@ depends =
${monitor-httpd-promise:filename} ${monitor-httpd-promise:filename}
${monitor-bootstrap-promise:file} ${monitor-bootstrap-promise:file}
${promise-check-slapgrid:output} ${promise-check-slapgrid:output}
${promise-check-free-memory:wrapper-path}
${promise-monitor-httpd-is-process-older-than-dependency-set:wrapper-path} ${promise-monitor-httpd-is-process-older-than-dependency-set:wrapper-path}
[monitor-publish] [monitor-publish]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment