Sha256: b6718469001cbcbc21e9ab513e7e56e4533c7da38d1ea8784bb3d215020022cb

Contents?: true

Size: 1.46 KB

Versions: 13

Compression:

Stored size: 1.46 KB

Contents

<%
  is_worker_instance = rubber_instance.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.

<Threshold>

  <Type "df">
    DataSource "used"
    WarningMax 80
    FailureMax 95
    Percentage true
  </Type>

  <Type "load">
    DataSource "midterm"
    WarningMax <%= is_worker_instance ? 100 : 20 %>
    Hysteresis 0.3
  </Type>

  <Plugin "ping">
    <Type "ping">
      Datasource "value"
      WarningMax 50
      FailureMax 100
    </Type>
    <Type "ping_droprate">
      Datasource "value"
      FailureMax 0.05
    </Type>
  </Plugin>

</Threshold>

#<Threshold>
#	<Type "counter">
#		WarningMin 0.00
#		WarningMax 1000.00
#		FailureMin 0
#		FailureMax 1200.00
#		Invert false
#		Persist false
#		Instance "some_instance"
#	</Type>
#
#	<Type "df">
#		WarningMax 90
#		Percentage true
#	</Type>
#
#	<Type "load">
#		DataSource "midterm"
#		WarningMax 1
#		Hysteresis 0.3
#	</Type>
#
#	<Type "cpu">
#		Instance "user"
#		WarningMax 85
#		Hits 6
#	</Type>
#
#	<Plugin "interface">
#		Instance "eth0"
#		<Type "if_octets">
#			DataSource "rx"
#			FailureMax 10000000
#		</Type>
#	</Plugin>
#
#	<Host "hostname">
#		<Type "cpu">
#			Instance "idle"
#			FailureMin 10
#		</Type>
#
#		<Plugin "memory">
#			<Type "memory">
#				Instance "cached"
#				WarningMin 100000000
#			</Type>
#		</Plugin>
#	</Host>
#</Threshold>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-3.2.1 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-3.2.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-3.1.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-3.0.1 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-3.0.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.16.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.15.2 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.15.1 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.15.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.14.0 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.13.1 templates/collectd/config/rubber/role/collectd/thresholds.conf
rubber-2.13.0 templates/collectd/config/rubber/role/collectd/thresholds.conf