Merge pull request #681 from wjimenez5271/cowcheck

new catalog item: cowcheck
This commit is contained in:
Raúl Sánchez 2017-12-21 19:49:39 +01:00 committed by GitHub
commit 67bb9f43fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,16 @@
version: '2'
services:
cowcheck:
image: wjimenez5271/cowcheck:0.2.0
environment:
LOG_LEVEL: ${LOG_LEVEL}
DOCKER_API_VERSION: ${DOCKER_API_VERSION}
DATA_SPACE_THRESHOLD: ${DATA_SPACE_THRESHOLD}
METADATA_SPACE_THRESHOLD: ${METADATA_SPACE_THRESHOLD}
POLL_INTERVAL: ${POLL_INTERVAL}
stdin_open: true
tty: true
ports:
- ${PUBLISH_PORT}:5050/tcp
labels:
io.rancher.scheduler.global: 'true'

View File

@ -0,0 +1,40 @@
version: '2'
catalog:
name: cowcheck
version: 0.2.0
description: A microservice for checking the health of a Rancher node
minimum_rancher_version: v.1.6.0
questions:
- variable: POLL_INTERVAL
label: POLL_INTERVAL
description: Frequency in seconds to run checks
type: string
default: 60
- variable: ENABLE_STORAGE_CHECK
label: ENABLE_STORAGE_CHECK
description: Enable storage check
type: boolean
default: false
- variable: DATA_SPACE_THRESHOLD
label: DATA_SPACE_THRESHOLD
description: Minimum amount of free Docker Data Storage space in bytes
type: string
default: 50000000
- variable: METADATA_SPACE_THRESHOLD
label: METADATA_SPACE_THRESHOLD
description: Minimum amount of free Docker Metadata Storage space in bytes
type: string
default: 50000000
- variable: DOCKER_API_VERSION
label: DOCKER_API_VERSION
description: Version of the Docker API to use (storage checks only)
type: string
default: 1.24
- variable: PUBLISH_PORT
label: PUBLISH_PORT
description: Port to publish the service.
type: int
default: 5050
services:
cowcheck:
start_on_create: true

View File

@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 574.6 151.4"><defs><style>.cls-1{fill:#3d3d3d;}.cls-2{fill:#0075a8;}.cls-3{fill:#0071bc;}.cls-4{fill:#a3abaf;}.cls-5{fill:#bdc3c7;}</style></defs><title>rancher-catalog</title><path class="cls-1" d="M120.37,10.52h24.46c11.62,0,19.45,5.63,19.45,16.54a16.62,16.62,0,0,1-12,16.1,17.64,17.64,0,0,1,4.14,5.63c2.46,5,4.14,10.56,9.33,10.56a6.84,6.84,0,0,0,2.38-.44L167,69.39a28.79,28.79,0,0,1-5.9.79c-7,0-11.09-2.73-15.22-12.14-1.76-4.22-4.22-11.62-7.48-11.62h-3.34v23.5h-14.7Zm14.7,10.65V35.78h5.28c4.22,0,9.15-1.32,9.15-7.66,0-5.19-3.34-7-7.39-7Z"/><path class="cls-1" d="M184.61,10.52h14.87l20.06,59.4H204.67L201,58.66H181.09l-3.61,11.26H164.63Zm0,37.22h12.76l-4-12.5a58.07,58.07,0,0,1-2-10.21h-.35a75.46,75.46,0,0,1-2.2,10.12Z"/><path class="cls-1" d="M220.6,10.52h15.75L251.93,40c1.32,2.55,3.08,7,4.49,10.56h.35c-.18-3.34-.62-8.1-.62-11.53V10.52h12.06v59.4h-15.4L236.61,40.53a82.06,82.06,0,0,1-4.31-9.68H232c.26,3.34.7,7.3.7,10.56V69.92H220.6Z"/><path class="cls-1" d="M271.81,39.83c0-21.47,10.65-30.36,27.1-30.36,17.34,0,24.29,9.5,22.35,22.35L307.54,33c1.5-9.42-2.2-13.2-8.89-13.2-6.42,0-11.62,4.75-11.62,20.06,0,16.19,5.63,20.33,12.06,20.33,6.07,0,11-3.78,9.94-11.53L321.88,50c1,12.06-7.74,20.94-23.58,20.94C282.2,71,271.81,61.47,271.81,39.83Z"/><path class="cls-1" d="M325.32,10.52H340V33h18V10.52h14.7v59.4h-14.7V44.75H340V69.92h-14.7Z"/><path class="cls-1" d="M379.09,10.52h39.33V21.43H393.78V34.19h20.68V45.1H393.78V59H419.3V69.92H379.09Z"/><path class="cls-1" d="M422.56,10.52H447c11.62,0,19.45,5.63,19.45,16.54a16.62,16.62,0,0,1-12,16.1,17.63,17.63,0,0,1,4.14,5.63c2.46,5,4.14,10.56,9.33,10.56a6.84,6.84,0,0,0,2.38-.44L469.2,69.39a28.79,28.79,0,0,1-5.9.79c-7,0-11.09-2.73-15.22-12.14-1.76-4.22-4.22-11.62-7.48-11.62h-3.34v23.5h-14.7Zm14.7,10.65V35.78h5.28c4.22,0,9.15-1.32,9.15-7.66,0-5.19-3.34-7-7.39-7Z"/><path class="cls-2" d="M117.64,114.83c0-21.47,10.65-30.36,27.1-30.36,17.34,0,24.29,9.5,22.35,22.35L153.37,108c1.5-9.42-2.2-13.2-8.89-13.2-6.42,0-11.62,4.75-11.62,20.06,0,16.19,5.63,20.33,12.06,20.33,6.07,0,11-3.78,9.94-11.53L167.71,125c1,12.06-7.74,20.94-23.58,20.94C128,146,117.64,136.47,117.64,114.83Z"/><path class="cls-2" d="M168.42,114.38c0-21.38,11.35-29.92,27.28-29.92,15.66,0,27,8.54,27,29.92,0,23.76-11.7,31.59-27,31.59C179.77,146,168.42,137.44,168.42,114.38Zm39.25,0c0-14.78-5.81-19.54-12.14-19.54s-12.06,4.75-12.06,19.54c0,16.46,5.72,21.21,12.06,21.21S207.66,130.84,207.66,114.38Z"/><path class="cls-2" d="M221.57,85.52H236l8.54,33.62a69.79,69.79,0,0,1,1.32,11.26h.35a79.37,79.37,0,0,1,1.14-11.09l7.57-33.79h13.46L276,119a91.58,91.58,0,0,1,1.32,12.14h.35s.44-8.1,1.41-12l8.18-33.7h12.5l-15.49,59.4H268.73l-6.07-25.52a103.59,103.59,0,0,1-1.76-12.85h-.35a97.15,97.15,0,0,1-1.67,12.85l-6.07,25.52H237.05Z"/><path class="cls-2" d="M310.71,114.83c0-21.47,10.65-30.36,27.1-30.36,17.34,0,24.29,9.5,22.35,22.35L346.44,108c1.5-9.42-2.2-13.2-8.89-13.2-6.42,0-11.62,4.75-11.62,20.06,0,16.19,5.63,20.33,12.06,20.33,6.07,0,11-3.78,9.94-11.53L360.78,125c1,12.06-7.74,20.94-23.58,20.94C321.09,146,310.71,136.47,310.71,114.83Z"/><path class="cls-2" d="M364.21,85.52h14.7V108h18V85.52h14.7v59.4h-14.7V119.75h-18v25.17h-14.7Z"/><path class="cls-2" d="M418,85.52h39.33V96.43H432.68v12.76h20.68V120.1H432.68V134H458.2v10.91H418Z"/><path class="cls-2" d="M458.73,114.83c0-21.47,10.65-30.36,27.1-30.36,17.34,0,24.29,9.5,22.35,22.35L494.45,108c1.5-9.42-2.2-13.2-8.89-13.2-6.42,0-11.62,4.75-11.62,20.06,0,16.19,5.63,20.33,12.06,20.33,6.07,0,11-3.78,9.94-11.53L508.8,125c1,12.06-7.74,20.94-23.58,20.94C469.11,146,458.73,136.47,458.73,114.83Z"/><path class="cls-2" d="M512.23,85.52h14.7v16.63c0,1.85-.26,4.58-.44,6.6h.35a50.46,50.46,0,0,1,3.7-5.54l14.52-17.69h15.84l-19.36,23.32,20.42,36.08h-16.9L531.32,120l-4.4,5.37v19.54h-14.7Z"/><path class="cls-3" d="M70.46,148.49a30,30,0,0,1-30-30V76.16h8.4v42.36a21.56,21.56,0,0,0,43.13,0h8.4A30,30,0,0,1,70.46,148.49Z"/><rect class="cls-4" x="88.92" y="112.28" width="14.62" height="6.44" rx="1" ry="1"/><rect class="cls-5" x="85.91" y="106.68" width="20.65" height="6.44" rx="1.19" ry="1.19"/><path class="cls-3" d="M69.15,14,67.87,8.08m13.38,0H69.15V14h12.1Z"/><path class="cls-3" d="M75.37,14m5.88-5.88M8.3,14V69.75A12.31,12.31,0,0,0,20.59,82H69A12.31,12.31,0,0,0,81.25,69.75V14H75.37V69.75A6.39,6.39,0,0,1,69,76.16H20.59a6.39,6.39,0,0,1-6.41-6.41V14Z"/><path class="cls-3" d="M8.3,14,20.4,8.08H8.3V14H20.4Z"/><rect class="cls-5" x="20.4" y="7" width="12.89" height="8.04" rx="1.05" ry="1.05"/><rect class="cls-5" x="56.26" y="7" width="12.89" height="8.04" rx="1.05" ry="1.05"/></svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -0,0 +1,8 @@
name: Cowcheck
description: |
A microservice for checking the health of a Rancher node
version: 0.2.0
category: Monitoring
maintainer: "William Jimenez <william@rancher.com>"
license: Apache 2.0
projectURL: https://github.com/wjimenez5271/cowcheck