Report environment name in munin graph

This commit is contained in:
Sandro Santilli 2013-02-08 16:47:59 +01:00
parent 7dd7d09cf5
commit 60b578ae56

View File

@ -1,8 +1,10 @@
#!/bin/sh
envnik=$(basename "${TILER_ENVIRONMENT}" .js)
if test "$1" = "config"; then
cat <<'EOM'
graph_title Tiler fd usage
echo "graph_title Tiler fd usage (${envnik})"
cat <<"EOM"
graph_vlabel tiler fds
procs.label Number of tiler processes
pgsql.label PostgreSQL connections (max)