Skip to content

Instantly share code, notes, and snippets.

@gphat
Created August 15, 2014 21:50
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gphat/c9d22e1c0d3e0d2546d1 to your computer and use it in GitHub Desktop.
Save gphat/c9d22e1c0d3e0d2546d1 to your computer and use it in GitHub Desktop.
Cassandra Datadog JMX Config
instances:
- host: localhost
port: 7199
# user: username
# password: password
# name: cassandra_instance
# #trust_store_path: /path/to/trustStore.jks # Optional, should be set if ssl is enabled
# #trust_store_password: password
# #java_bin_path: /path/to/java #Optional, should be set if the agent cannot find your java executable
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.db
type: ColumnFamilies
keyspace: keen
attribute:
- BloomFilterDiskSpaceUsed
- BloomFilterFalsePositives
- Capacity
- CompressionRatio
- CompletedTasks
- ExceptionCount
- LiveDiskSpaceUsed
- LiveSSTableCount
- Load
- MaxRowSize
- MeanRowSize
- MemtableColumnsCount
- MemtableDataSize
- PendingTasks
- ReadCount
- Requests
- Size
- TotalDiskSpaceUsed
- TotalReadLatencyMicros
- TotalWriteLatencyMicros
- WriteCount
- include:
domain: org.apache.cassandra.metrics
type: Client
name: connectedThriftClients
- include:
domain: org.apache.cassandra.metrics
type: ClientRequest
scope: Read
name: Latency
attribute:
- 50thPercentile
- 75thPercentile
- 99thPercentile
- include:
domain: org.apache.cassandra.metrics
type: ClientRequest
scope: Write
name: Latency
attribute:
- 50thPercentile
- 75thPercentile
- 99thPercentile
- include:
domain: org.apache.cassandra.db
type: CompactionManager
attribute:
- CompletedTasks
- PendingTasks
- TotalCompactionsCompleted
- include:
domain: org.apache.cassandra.metrics
type: Cache
scope: KeyCache
name: HitRate
- include:
domain: org.apache.cassandra.internal
attribute:
- ActiveCount
- CompletedTasks
- CurrentlyBlockedTasks
- TotalBlockedTasks
- include:
domain: org.apache.cassandra.net
attribute:
- TotalTimeouts
- include:
domain: org.apache.cassandra.metrics
type: ColumnFamily
keyspace: keen
name: KeyCacheHitRate
- include:
domain: org.apache.cassandra.metrics
type: ColumnFamily
keyspace: keen
name: ReadLatency
attribute:
50thPercentile:
alias: cassandra.db.cf.latency.read.50th_percentile
75thPercentile:
alias: cassandra.db.cf.latency.read.75th_percentile
99thPercentile:
alias: cassandra.db.cf.latency.read.99th_percentile
- include:
domain: org.apache.cassandra.metrics
type: ColumnFamily
keyspace: keen
name: TombstoneScannedHistogram
attribute:
50thPercentile:
alias: cassandra.db.cf.tombstone_scanned_histogram.50th_percentile
75thPercentile:
alias: cassandra.db.cf.tombstone_scanned_histogram.75th_percentile
95thPercentile:
alias: cassandra.db.cf.tombstone_scanned_histogram.95th_percentile
99thPercentile:
alias: cassandra.db.cf.tombstone_scanned_histogram.99th_percentile
- include:
domain: org.apache.cassandra.metrics
type: ColumnFamily
keyspace: keen
name: WriteLatency
attribute:
50thPercentile:
alias: cassandra.db.cf.latency.write.50th_percentile
75thPercentile:
alias: cassandra.db.cf.latency.write.75th_percentile
99thPercentile:
alias: cassandra.db.cf.latency.write.99th_percentile
- include:
domain: java.lang
type: MemoryPool
name: CMS Old Gen
attribute:
- Usage
- include:
domain: java.lang
type: MemoryPool
name: CMS Perm Gen
attribute:
- Usage
- include:
domain: java.lang
type: MemoryPool
name: Par Eden Space
attribute:
- Usage
- include:
domain: java.lang
type: MemoryPool
name: Par Survivor Space
attribute:
- Usage
# Young Gen Collectors (Minor Collections)
- include:
domain: java.lang
type: GarbageCollector
name: Copy
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.minor_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.minor_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: PS Scavenge
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.minor_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.minor_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: ParNew
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.minor_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.minor_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: G1 Young Generation
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.minor_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.minor_collection_time
# Old Gen Collectors (Major collections)
- include:
domain: java.lang
type: GarbageCollector
name: MarkSweepCompact
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.major_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.major_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: PS MarkSweep
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.major_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.major_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: ConcurrentMarkSweep
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.major_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.major_collection_time
- include:
domain: java.lang
type: GarbageCollector
name: G1 Mixed Generation
attribute:
CollectionCount:
metric_type: counter
alias: jmx.gc.major_collection_count
CollectionTime:
metric_type: counter
alias: jmx.gc.major_collection_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment