%
is_worker_instance = rubber_instances[rubber_env.host].role_names.include?('resque_worker')
@path = '/etc/collectd/thresholds.d/thresholds.conf'
%>
# Threshold configuration for collectd(1).
#
# See the section "THRESHOLD CONFIGURATION" in collectd.conf(5) for details.
DataSource "used"
WarningMax 80
FailureMax 95
Percentage true
DataSource "midterm"
WarningMax <%= is_worker_instance ? 100 : 20 %>
Hysteresis 0.3
#
#
# WarningMin 0.00
# WarningMax 1000.00
# FailureMin 0
# FailureMax 1200.00
# Invert false
# Persist false
# Instance "some_instance"
#
#
#
# WarningMax 90
# Percentage true
#
#
#
# DataSource "midterm"
# WarningMax 1
# Hysteresis 0.3
#
#
#
# Instance "user"
# WarningMax 85
# Hits 6
#
#
#
# Instance "eth0"
#
# DataSource "rx"
# FailureMax 10000000
#
#
#
#
#
# Instance "idle"
# FailureMin 10
#
#
#
#
# Instance "cached"
# WarningMin 100000000
#
#
#
#