Chart host unreachable data points as red lines

Needed for #3777
This commit is contained in:
emanuele-f 2020-04-21 15:48:11 +02:00
parent 37200393a6
commit f10716fd17
6 changed files with 96 additions and 6 deletions

View file

@ -384,8 +384,9 @@ elseif((page == "historical") and (host ~= nil) and (measurement_info ~= nil)) t
local timeseries = {
{ schema="am_host:val" .. suffix, label=am_ts_label,
value_formatter=(measurement_info.value_js_formatter or "fmillis"),
value_formatter=measurement_info.value_js_formatter or "fmillis",
metrics_labels={am_metric_label},
show_unreachable = true, -- Show the unreachable host status as a red line
},
}