summaryrefslogtreecommitdiff
path: root/halog.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-25 00:43:13 +0700
committerShulhan <ms@kilabit.info>2019-01-25 00:43:13 +0700
commit0140ce11c7f3a2b5792c545a60aa34c90fdefb61 (patch)
treee7f7e81c1c2a3a0dd40bbc4cf61b5e66dcdb1340 /halog.go
parent6dc3fbb174ef711682331687d39d11df1feb7121 (diff)
downloadhaminer-0.1.0.tar.xz
haminer: send heartbeat indicator if logs is emptyv0.1.0
An administrator may need to monitor if the haminer service is running or not through kapacitor. With heartbeat, we can tell if haminer is not running if no data is send along, say, one hour.
Diffstat (limited to 'halog.go')
-rw-r--r--halog.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/halog.go b/halog.go
index 4bb7b60..555811f 100644
--- a/halog.go
+++ b/halog.go
@@ -11,6 +11,16 @@ import (
"time"
)
+// heartbeat of haminer, in case we want to monitor deadman from haminer.
+var heartbeat = &Halog{ // nolint: gochecknoglobals
+ Timestamp: time.Now(),
+ FrontendName: "-",
+ BackendName: "-",
+ ServerName: "-",
+ tagHTTPURL: "-",
+ HTTPMethod: "-",
+}
+
//
// Halog contains the mapping of haproxy HTTP log format to Go struct.
//