This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Borrowed to someone, but I don't remember who it was, sorry :( | |
| # Print message $2 with log-level $1 to STDERR, colorized if terminal | |
| # log DEBUG "DOCKER_HOST ${DOCKER_HOST}" | |
| log() { | |
| local level=${1?} | |
| shift | |
| local code= line="[$(date '+%F %T')] $level: $*" | |
| if [ -t 2 ] | |
| then | |
| case "$level" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| version: 2.1 | |
| jobs: | |
| eclint: | |
| working_directory: ~/docker-eclint/ | |
| docker: | |
| - image: qima/eclint:circleci-2.8.1-7c65341 | |
| steps: | |
| - checkout | |
| - run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -q https://registry.hub.docker.com/v2/repositories/looztra/yamkix/tags -O - | jq -r '.results[] | select ((.name|endswith("latest")|not) and (.name|startswith("circle")|not)) | .name' | |
| "0.3.0-239836d" | |
| "0.2.2-7b96154" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| groups: | |
| - name: node-resources | |
| rules: | |
| - alert: HostCPUUtilisation | |
| expr: 100 - (avg by(instance) (irate(node_cpu{mode="idle"}[5m])) * 100) > 70 | |
| for: 20m | |
| labels: | |
| severity: warning | |
| annotations: | |
| description: 'High CPU utilisation detected for instance {{ $labels.instance_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: api | |
| labels: | |
| app: platform | |
| component: api | |
| annotations: | |
| company.com/owner: devel |
OlderNewer