diff --git a/console_libraries/menu.lib b/console_libraries/menu.lib index cd12e993a..a6acc51e6 100644 --- a/console_libraries/menu.lib +++ b/console_libraries/menu.lib @@ -57,6 +57,9 @@ {{ end }} {{ end }} +{{ if query "up{job='cassandra'}" }} +{{ template "_menuItem" (args . "cassandra.html" "Cassandra") }} +{{ end }} {{ if query "up{job='node'}" }} {{ template "_menuItem" (args . "node.html" "Node") }} diff --git a/console_libraries/prom.lib b/console_libraries/prom.lib index 32a5837e4..632a31577 100644 --- a/console_libraries/prom.lib +++ b/console_libraries/prom.lib @@ -36,11 +36,11 @@ Displays the result of the expression, with a link to /graph for it. renderTemplate is the name of the template to use to render the value. */}} {{ define "prom_query_drilldown" }} -{{ $expr := .arg0 }}{{ $suffix := (or .arg1 "")}}{{ $renderTemplate := (or .arg2 "__prom_query_drilldown_noop")}} -{{ with query $expr }}{{ tmpl $renderTemplate ( . | first | value ) }}{{ $suffix }}{{else}}-{{ end }} +{{ $expr := .arg0 }}{{ $suffix := (or .arg1 "") }}{{ $renderTemplate := (or .arg2 "__prom_query_drilldown_noop") }} +{{ with query $expr }}{{tmpl $renderTemplate ( . | first | value )}}{{ $suffix }}{{ else }}-{{ end }} {{ end }} -{{ define "prom_path" }}/consoles/{{ .Path }}?{{range $param, $value := .Params}}{{$param}}={{$value}}&{{end}}{{ end }}" +{{ define "prom_path" }}/consoles/{{ .Path }}?{{ range $param, $value := .Params }}{{ $param }}={{ $value }}&{{ end }}{{ end }}" {{ define "prom_right_table_head" }}
cloudwatch
cassandra