Sha256: 0534dbd33ae88c1b03032033cf451d896c33b5b9b3ff9d6b374c7978760d3a6f
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
defcheck :redis do opts ({ cpu_warn: 85, cpu_critical: 95 }) task def cpu metric = rand(1..100) s = state(metric, warn: o[:cpu_warn], critical: o[:cpu_critical]) event "cpu", state, metric, description event ({ service: "cpu", description: "cpu", metric: metric, state: s }) end # task def memory # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remon-0.1.0 | lib/remon/checks/redis.rb |