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
import time | |
import requests | |
import argparse | |
from prometheus_client.parser import text_string_to_metric_families | |
# Prometheus scrape endpoint | |
PROMETHEUS_SCRAPE_URL = "http://localhost:63626/metrics" | |
EXCLUDED_NAMESPACE = "temporal_system" # Namespace to exclude | |
def scrape_metrics(): |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:71", | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_TEMPORALMETRICS", | |
"label": "TemporalMetrics", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
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: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
name: grafana-ingress | |
namespace: monitoring | |
spec: | |
entryPoints: | |
- web | |
routes: | |
- kind: Rule |
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
#!/usr/bin/python | |
import sys, getopt | |
import glob | |
import os | |
import ntpath | |
from time import strftime | |
print '******bam_pipe******' | |
print strftime("%Y-%m-%d %H:%M:%S") |
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
## bioapps TCP | |
### Aws location: | |
* Monash eSol AWS account [https://login.monash.edu/adfs/ls/idpinitiatedsignon](https://login.monash.edu/adfs/ls/idpinitiatedsignon) | |
* RES-SPT-Automation/[email protected] | |
* Oregon availability zone | |
* Elastic Beanstalk controlled | |
### Elastic beanstalk scaling settings |
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
#!/bin/bash -i | |
sudo apt-get update < "/dev/null" | |
sudo apt-get install python-pip -y < "/dev/null" | |
sudo pip install awscli < "/dev/null" | |
# use eg. curl -s https://myurl.com/script.sh | bash /dev/stdin | |
# only run on an empty cloud server with blank vdb volume attached! | |
sudo apt-get update < "/dev/null" | |
sudo apt-get install curl -y < "/dev/null" | |
sudo true |
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
# use eg. curl -s https://myurl.com/script.sh | bash /dev/stdin | |
# only run on an empty cloud server with blank vdb volume attached! | |
sudo apt-get update < "/dev/null" | |
sudo apt-get install curl -y < "/dev/null" | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
sudo apt-get -y install linux-image-extra-$(uname -r) < "/dev/null" | |
# Add Docker PPA and install latest version |
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
#!/bin/bash | |
HOME_DIR=/home/ | |
for name in $(find $HOME_DIR -maxdepth 1 -mindepth 1 -type d -printf '%f\n') | |
do | |
echo "USER = $name" | |
echo "DIR = $HOME_DIR$name" | |
WEB_DIR=/home/www/html/home/$name | |
#WEB_DIR=$name |
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
# -*- coding: utf-8 -*- | |
from mytardisuploader import mytardis_uploader | |
# [email protected] | |
address = 'http://118.138.233.132/' | |
username = 'mytardis' | |
password = 'astestdep' | |
institute = 'Monash University' | |
test_run = True |
NewerOlder