diff --git a/console_libraries/menu.lib b/console_libraries/menu.lib index 71bf5a9922..6c5c54e618 100644 --- a/console_libraries/menu.lib +++ b/console_libraries/menu.lib @@ -61,6 +61,10 @@ {{ template "_menuItem" (args . "cassandra.html" "Cassandra") }} {{ end }} +{{ if query "up{job='blackbox'}" }} +{{ template "_menuItem" (args . "blackbox.html" "Blackbox") }} +{{ end }} + {{ if query "up{job='node'}" }} {{ template "_menuItem" (args . "node.html" "Node") }} {{ if match "^node" .Path }} diff --git a/consoles/blackbox.html b/consoles/blackbox.html new file mode 100644 index 0000000000..737faa74b2 --- /dev/null +++ b/consoles/blackbox.html @@ -0,0 +1,52 @@ +{{ template "head" . }} + +{{ template "prom_right_table_head" }} + + Blackbox + {{ template "prom_query_drilldown" (args "sum(up{job='blackbox'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='blackbox'})") }} + + + + Currently + +{{ range query "probe_success{job='blackbox'}" | sortByLabel "instance" }} + + + {{ .Labels.instance }} + Up{{ else }} class="alert-danger">Down{{ end }} + +{{ end }} + + + Past Day % + +{{ range query "avg_over_time(probe_success{job='blackbox'}[1d]) * 100" | sortByLabel "instance" }} + + {{ .Labels.instance }} + + {{ (. | value | printf "%.2f") }}% + +{{ end }} + +{{ template "prom_right_table_tail" }} + +{{ template "prom_content_head" .}} +

Blackbox

+ +

Response times

+
+ + +{{ template "prom_content_tail" . }} + +{{ template "tail" }} diff --git a/consoles/index.html.example b/consoles/index.html.example index e4e0e2e552..12f3e29d22 100644 --- a/consoles/index.html.example +++ b/consoles/index.html.example @@ -37,6 +37,10 @@ Cassandra (JMX Exporter) cassandra + + Blackbox (Prober) + blackbox + {{ template "prom_content_tail" . }}