Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos
Commits
d3b2da00
Commit
d3b2da00
authored
Sep 06, 2017
by
Hardik Juneja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/monitor: Add promise to check memory
parent
20c21929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
stack/monitor/buildout.hash.cfg
stack/monitor/buildout.hash.cfg
+1
-1
stack/monitor/instance-monitor.cfg.jinja2.in
stack/monitor/instance-monitor.cfg.jinja2.in
+5
-0
No files found.
stack/monitor/buildout.hash.cfg
View file @
d3b2da00
...
@@ -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
stack/monitor/instance-monitor.cfg.jinja2.in
View file @
d3b2da00
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment