Compare commits
3 Commits
59cc987954
...
monitor-gp
| Author | SHA1 | Date | |
|---|---|---|---|
| e3b9c08748 | |||
| c94e6fa497 | |||
| ba8e6e1888 |
@@ -2,10 +2,20 @@
|
||||
|
||||
N=500
|
||||
|
||||
t=$(timeout 5 ssh bsc015557@glogin2.bsc.es "timeout 3 command time -f %e touch /gpfs/projects/bsc15/bsc015557/gpfs.{1..$N} 2>&1; rm -f /gpfs/projects/bsc15/bsc015557/gpfs.{1..$N}")
|
||||
t_proj=$(timeout 5 ssh bsc015557@glogin2.bsc.es "timeout 3 command time -f %e touch /gpfs/projects/bsc15/bsc015557/gpfs.{1..$N} 2>&1; rm -f /gpfs/projects/bsc15/bsc015557/gpfs.{1..$N}")
|
||||
t_scratch=$(timeout 5 ssh bsc015557@glogin2.bsc.es "timeout 3 command time -f %e touch /gpfs/scratch/bsc15/rodrigo/probe/gpfs.{1..$N} 2>&1; rm -f /gpfs/scratch/bsc15/rodrigo/probe/gpfs.{1..$N}")
|
||||
t_home=$(timeout 5 ssh bsc015557@glogin2.bsc.es "timeout 3 command time -f %e touch /home/bsc/bsc015557/.gpfs/{1..$N} 2>&1; rm -f /home/bsc/bsc015557/.gpfs/{1..$N}")
|
||||
|
||||
if [ -z "$t" ]; then
|
||||
t="5.00"
|
||||
if [ -z "$t_proj" ]; then
|
||||
t_proj="5.00"
|
||||
fi
|
||||
|
||||
if [ -z "$t_scratch" ]; then
|
||||
t_scratch="5.00"
|
||||
fi
|
||||
|
||||
if [ -z "$t_home" ]; then
|
||||
t_home="5.00"
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
@@ -14,5 +24,7 @@ Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=values
|
||||
|
||||
# HELP gpfs_touch_latency Time to create $N files.
|
||||
# TYPE gpfs_touch_latency gauge
|
||||
gpfs_touch_latency $t
|
||||
gpfs_touch_latency{partition="projects"} $t_proj
|
||||
gpfs_touch_latency{partition="home"} $t_home
|
||||
gpfs_touch_latency{partition="scratch"} $t_scratch
|
||||
EOF
|
||||
|
||||
@@ -267,6 +267,14 @@
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "tent";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "127.0.0.1:29002" ]; # Node exporter
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user