Skip to content

Commit 11b9733

Browse files
committed
show outages larger than 60min with default template
1 parent e80f282 commit 11b9733

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

histou/grafana/graphpanel/graphpanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct($title, $legendShow = SHOW_LEGEND, $id = -1)
3535
"custom" => array(
3636
"lineInterpolation" => "linear",
3737
"insertNulls" => false,
38-
"spanNulls" => true,
38+
"spanNulls" => 3600000, // do not connect outages more than 60 minutes
3939
)
4040
),
4141
"overrides" => array(

histou/grafana/graphpanel/graphpanelinfluxdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function createTarget(array $filterTags = array(), $datasource = INFLUXDB
4141
'resultFormat' => 'time_series',
4242
'datasource' => $datasource,
4343
'groupBy' => array(array("params"=>array("\$__interval"), "type"=> "time"),
44-
array("params"=>array("linear"), "type"=> "fill"))
44+
array("params"=>array("null"), "type"=> "fill"))
4545
));
4646
}
4747

0 commit comments

Comments
 (0)