bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/scollector/collectors/hi.go (about) 1 package collectors 2 3 import ( 4 "bosun.org/metadata" 5 "bosun.org/opentsdb" 6 ) 7 8 func init() { 9 collectors = append(collectors, &IntervalCollector{F: c_scollector_hi}) 10 } 11 12 const ( 13 hiDesc = "Scollector sends a 1 every DefaultFreq. This is so you can alert on scollector being down." 14 ) 15 16 func c_scollector_hi() (opentsdb.MultiDataPoint, error) { 17 var md opentsdb.MultiDataPoint 18 Add(&md, "scollector.hi", 1, nil, metadata.Gauge, metadata.Ok, hiDesc) 19 return md, nil 20 }