- customisable time format
- custom messages - configure threshold count instead of uptime %
This commit is contained in:
2
api.go
2
api.go
@@ -37,7 +37,7 @@ func (api CachetAPI) Ping() error {
|
||||
|
||||
// SendMetric adds a data point to a cachet monitor
|
||||
func (api CachetAPI) SendMetric(id int, lag int64) {
|
||||
logrus.Debugf("Sending lag metric ID:%d %vms", id, lag)
|
||||
logrus.Debugf("Sending lag metric ID:%d RTT %vms", id, lag)
|
||||
|
||||
jsonBytes, _ := json.Marshal(map[string]interface{}{
|
||||
"value": lag,
|
||||
|
||||
Reference in New Issue
Block a user