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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos
Commits
423bd01d
Commit
423bd01d
authored
Dec 15, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/node-monitoring: Create node-monitoring SR
parent
b38e89d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
0 deletions
+120
-0
software/node-monitoring/software.cfg
software/node-monitoring/software.cfg
+120
-0
No files found.
software/node-monitoring/software.cfg
0 → 100644
View file @
423bd01d
[buildout]
extends =
# Python components
../../component/pandas/buildout.cfg
../../component/scipy/buildout.cfg
../../component/statsmodels/buildout.cfg
# Generics
../../component/defaults.cfg
../../stack/monitor/buildout.cfg
../../stack/slapos.cfg
parts =
slapos-cookbook
instance.cfg
# >>>>>>>>>>>>
[slapos.toolbox-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/xavier_thompson/slapos.toolbox.git
branch = check_disk_space_on_json_promise
git-executable = ${git:location}/bin/git
[slapos-toolbox-dependencies]
eggs +=
${pandas:egg}
${statsmodels:egg}
${scipy:egg}
[slapos-toolbox-dev]
<= slapos-toolbox
recipe = zc.recipe.egg:develop
setup = ${slapos.toolbox-repository:location}
[slapos-toolbox]
prerequisite = ${slapos-toolbox-dev:recipe}
eggs = slapos.toolbox
[versions]
slapos.toolbox =
# <<<<<<<<<<<<
# Build GCC with Fortran for OpenBLAS (scipy & numpy)
[gcc]
max_version = 0
[macro.mkdir]
recipe = slapos.recipe.build
install =
import os
os.mkdir(location)
[promise-dir]
<= macro.mkdir
location = ${buildout:directory}/promise
[macro.download.promise]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/promise/${:_buildout_section_name_}
destination = ${promise-dir:location}/${:_buildout_section_name_}
[storage.py]
<= macro.download.promise
[instance.cfg]
recipe = slapos.recipe.template
output = ${buildout:directory}/${:_buildout_section_name_}
requires = ${slapos-toolbox:recipe}
inline =
[buildout]
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
extends =
${monitor-template:output}
parts =
publish
monitor-base
check-disk-space.py
check-partition-space.py
check-cpu-temperature.py
[publish]
<= monitor-publish
recipe = slapos.cookbook:publish
[macro.promise]
<= monitor-promise-base
name = $${:_buildout_section_name_}
[check-disk-space.py]
<= macro.promise
eggs = slapos.toolbox[prediction]
promise = check_free_disk_space
config-collectordb = $${monitor-instance-parameter:collector-db}
config-threshold =
config-nb-days-predicted =
config-display-partition = 1
config-display-prediction = 1
[check-partition-space.py]
<= macro.promise
eggs = slapos.toolbox[pandas]
promise = monitor_partition_space
config-collectordb = $${monitor-instance-parameter:collector-db}
config-threshold-ratio =
[check-cpu-temperature.py]
<= macro.promise
promise = check_cpu_temperature
config-testing = false
config-max-spot-temp = 90
config-max-avg-temp = 80
config-avg-temp-duration = 15
config-last-avg-computation-file = $${directory:var}/promise_cpu_temperature_last_avg_file
[versions]
statsmodels = 0.11.1
patsy = 0.5.1
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