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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos
Commits
fa6de649
Commit
fa6de649
authored
Oct 12, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/monitor: Collect is now pre computed by slapos core
So only symbolic links are needed
parent
83f1c52b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
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
+13
-18
No files found.
stack/monitor/buildout.hash.cfg
View file @
fa6de649
...
...
@@ -14,4 +14,4 @@
# not need these here).
[monitor2-template]
filename = instance-monitor.cfg.jinja2.in
md5sum =
d3d5a44db790f2bdf4fcbe6ebffe261f
md5sum =
2e3867b5fbfe44f1641596925d1bddb5
stack/monitor/instance-monitor.cfg.jinja2.in
View file @
fa6de649
...
...
@@ -34,8 +34,11 @@ public = ${directory:monitor}/public
private = ${directory:monitor}/private
documents = ${:private}/documents
log = ${directory:log}/monitor
promise-result = ${buildout:directory}/.slapgrid/promise/result
promise-log = ${buildout:directory}/.slapgrid/promise/log
slapgrid-promise = ${buildout:directory}/.slapgrid/promise
promise-result = ${:slapgrid-promise}/result
promise-history = ${:slapgrid-promise}/history
promise-log = ${:slapgrid-promise}/promise/log
collect-log = ${buildout:directory}/.slapgrid/monitor
[ca-directory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -159,7 +162,15 @@ update-command =
recipe = cns.recipe.symlink
symlink =
${monitor-directory:promise-result} = ${monitor-directory:public}/promise
${monitor-directory:promise-history} = ${monitor-directory:public}/history
${monitor-directory:promise-log} = ${monitor-directory:log}/promise
${monitor-directory:collect-log}/monitor_resource_process.data.json = ${monitor-directory:documents}/monitor_resource_process.data.json
${monitor-directory:collect-log}/monitor_resource_memory.data.json = ${monitor-directory:documents}/monitor_resource_memory.data.json
${monitor-directory:collect-log}/monitor_resource_io.data.json = ${monitor-directory:documents}/monitor_resource_io.data.json
${monitor-directory:collect-log}/monitor_process_resource.status.json = ${monitor-directory:documents}/monitor_process_resource.status.json
${monitor-directory:collect-log}/monitor_resource.status.json = ${monitor-directory:documents}/monitor_resource.status.json
${monitor-directory:slapgrid-promise}/promise_status.json = ${monitor-directory:private}/_promise_status
${monitor-directory:slapgrid-promise}/promise_stats.json = ${monitor-directory:documents}/monitor_state.data.json
[monitor-httpd-conf-parameter]
listening-ip = ${monitor-instance-parameter:monitor-httpd-ipv6}
...
...
@@ -239,14 +250,6 @@ command-line = ${xnice-bin:output} {{ monitor_configwrite }}
--monitor_https_cors {{ monitor_https_cors }}
wrapper-path = ${directory:bin}/monitor-configurator
[monitor-collect-wrapper]
recipe = slapos.cookbook:wrapper
command-line = ${xnice-bin:output} {{ monitor_collect }}
--output_folder ${monitor-directory:documents}
--collector_db ${monitor-instance-parameter:collector-db}
--pid_file ${monitor-directory:pids}/monitor-collect.pid
wrapper-path = ${directory:bin}/monitor-collect
[monitor-globalstate-cron-entry]
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
...
...
@@ -261,13 +264,6 @@ name = monitor-configurator
frequency = * * * * *
command = {{ bin_directory }}/randomsleep 10 && ${monitor-configurator-wrapper:wrapper-path}
[monitor-collect-cron-entry]
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
name = monitor_collect
frequency = * * * * *
command = {{ bin_directory }}/randomsleep 40 && ${monitor-collect-wrapper:wrapper-path}
[logrotate-entry-monitor-data]
recipe = collective.recipe.template
name = monitor.data
...
...
@@ -391,7 +387,6 @@ base-url = ${monitor-conf-parameters:base-url}
depends =
${monitor-globalstate-cron-entry:name}
${monitor-configurator-cron-entry:name}
${monitor-collect-cron-entry:name}
${cron-entry-logrotate:name}
${logrotate-entry-cron:name}
${certificate-authority-service:wrapper-path}
...
...
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