This file contains 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
{ | |
"id": "/malinger", | |
"cmd": "cd $MESOS_SANDBOX && pip install flask && python malinger.py", | |
"cpus": 0.1, | |
"mem": 128, | |
"disk": 0, | |
"instances": 1, | |
"healthChecks": [ | |
{ | |
"portIndex": 0, |
This file contains 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
{ | |
"id": "malinger-toggle", | |
"labels": {}, | |
"run": { | |
"cpus": 0.01, | |
"mem": 128, | |
"disk": 0, | |
"cmd": "curl -X POST http://malinger.marathon.l4lb.thisdcos.directory/toggle", | |
"env": {}, | |
"placement": { |
This file contains 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
import os | |
print(os.stat('.')) |
This file contains 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
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# scrape_timeout is set to the global default (10s). | |
# Attach these labels to any time series or alerts when communicating with | |
# external systems (federation, remote storage, Alertmanager). | |
external_labels: | |
monitor: 'codelab-monitor' |
This file contains 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
#!/usr/bin/env zsh | |
# usage: strict-install elastic | |
dcos_url=$(dcos config show core.dcos_url) | |
dcos_acs_token=$(dcos config show core.dcos_acs_token) | |
secret_name="$1_secret" | |
service_account_id="$1" | |
ts=$(date "+%Y%m%d") | |
tmp="/tmp/install_$1_$ts" |
OlderNewer