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