templates/agent-conf.d/cassandra.yaml.erb (104 lines of code) (raw):

# # MANAGED BY PUPPET # instances: - host: <%= @host %> port: <%= @port %> cassandra_aliasing: true <% if @user -%> user: <%= @user %> password: <%= @password %> <% end -%> <% if @tags.length > 0 -%> tags: <%- @tags.each do |tag_name, tag_value| -%> <%= tag_name %>: <%= tag_value %> <% end -%> <% end -%> init_config: # List of metrics to be collected by the integration # Read http://docs.datadoghq.com/integrations/java/ to learn how to customize it conf: - include: domain: org.apache.cassandra.metrics type: ClientRequest scope: - Read - Write name: - Latency - Timeouts - Unavailables attribute: - Count - OneMinuteRate - include: domain: org.apache.cassandra.metrics type: ClientRequest scope: - Read - Write name: - TotalLatency - include: domain: org.apache.cassandra.metrics type: Storage name: - Load - Exceptions - include: domain: org.apache.cassandra.metrics type: ColumnFamily bean_regex: - .*keyspace=.* name: - TotalDiskSpaceUsed - BloomFilterDiskSpaceUsed - BloomFilterFalsePositives - BloomFilterFalseRatio - CompressionRatio - LiveDiskSpaceUsed - LiveSSTableCount - MaxRowSize - MeanRowSize - MemtableColumnsCount - MemtableLiveDataSize - MemtableSwitchCount - MinRowSize exclude: keyspace: - OpsCenter - system - system_auth - system_distributed - system_schema - system_traces - include: domain: org.apache.cassandra.metrics type: Cache name: - Capacity - Size attribute: - Value - include: domain: org.apache.cassandra.metrics type: Cache name: - Hits - Requests attribute: - Count - include: domain: org.apache.cassandra.metrics type: ThreadPools path: request name: - ActiveTasks - CompletedTasks - PendingTasks - CurrentlyBlockedTasks - include: domain: org.apache.cassandra.db attribute: - UpdateInterval