FQDNLookup true
BaseDir "/var/lib/collectd"
PIDFile "/var/run/collectd.pid"
PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db"
Interval 10
Timeout 2
ReadThreads 5
WriteThreads 5
LoadPlugin logfile
LogLevel "info"
File "/var/log/collectd.log"
Timestamp true
LoadPlugin aggregation
Plugin "cpu"
Type "cpu"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateSum true
CalculateAverage true
# Collect CPU statistics
LoadPlugin cpu
# Write collected statistics in CSV format
LoadPlugin csv
DataDir "/var/lib/collectd/csv"
StoreRates false
# Collect partition usage statistics
LoadPlugin df
Device "/dev/xvda1"
MountPoint "/media/atl"
IgnoreSelected false
ReportByDevice false
ReportReserved false
ReportInodes false
ValuesAbsolute true
ValuesPercentage false
# Collect disk IO statistics
LoadPlugin disk
Disk "/^[hs]d[a-f][0-9]?$/"
IgnoreSelected false
# Collect network interface usage statistics
LoadPlugin interface
Interface "eth0"
IgnoreSelected false
# Collect system load statistics
LoadPlugin load
# Collect memory utilization statistics
LoadPlugin memory
# Don't use absolute as each AWS ec2 instance is different, use percentage instead to get a uniform view
ValuesAbsolute false
ValuesPercentage true
LoadPlugin swap
ReportByDevice false
ReportBytes true
LoadPlugin java
JVMArg "-verbose:jni"
JVMArg "-Djava.class.path=/usr/share/collectd/java/jaxb-api-2.3.1.jar:/usr/share/collectd/java/applicationinsights-collectd-{{ app_insights_version }}.jar:/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar"
# Enabling Application Insights plugin
LoadPlugin "com.microsoft.applicationinsights.collectd.ApplicationInsightsWriter"
# Configuring Application Insights plugin
InstrumentationKey "{{ app_insights_instrumentation_key }}"
SDKLogger true
LoadPlugin "org.collectd.java.GenericJMX"
# Confluence indexing statistics
ObjectName "Confluence:name=IndexingStatistics"
InstancePrefix "confluence-IndexingStatistics"
InstancePrefix "last_elapsed_ms"
Type "total_time_in_ms"
Table false
Attribute "LastElapsedMilliseconds"
InstancePrefix "task_queue_length"
Type "queue_length"
Table false
Attribute "TaskQueueLength"
ObjectName "Confluence:name=MailTaskQueue"
InstancePrefix "confluence-MailTaskQueue"
Type "email_count"
InstancePrefix "retry_count"
Table false
Attribute "RetryCount"
Type "email_count"
InstancePrefix "tasks"
Table false
Attribute "TasksSize"
Type "email_count"
InstancePrefix "error_queue"
Table false
Attribute "ErrorQueueSize"
ObjectName "Confluence:name=RequestMetrics"
InstancePrefix "confluence-RequestMetrics"
Type "requests"
InstancePrefix "avg_exec_time_for_last_ten_requests"
Table false
Attribute "AverageExecutionTimeForLastTenRequests"
Type "requests"
InstancePrefix "current_num_requests_being_served"
Table false
Attribute "CurrentNumberOfRequestsBeingServed"
Type "requests"
InstancePrefix "error_count"
Table false
Attribute "ErrorCount"
Type "requests"
InstancePrefix "num_requests_in_last_ten_secs"
Table false
Attribute "NumberOfRequestsInLastTenSeconds"
Type "requests"
InstancePrefix "requests_began"
Table false
Attribute "RequestsBegan"
Type "requests"
InstancePrefix "requests_served"
Table false
Attribute "RequestsServed"
ObjectName "Confluence:name=SystemInformation"
InstancePrefix "confluence-SystemInformation"
Type "latency"
InstancePrefix "database_example_latency"
Table false
Attribute "DatabaseExampleLatency"
Type "response_time"
InstancePrefix "start_time"
Table false
Attribute "StartTime"
# Hazelcast statistic JMX configuration
ObjectName "com.hazelcast:instance=confluence,name=operationServiceconfluence,type=HazelcastInstance.OperationService"
InstancePrefix "confluence-Hazelcast-OperationService"
Type "derive"
InstancePrefix "executedOperationCount"
Attribute "executedOperationCount"
Type "gauge"
InstancePrefix "operationThreadCount"
Attribute "operationThreadCount"
Type "gauge"
InstancePrefix "remoteOperationCount"
Attribute "remoteOperationCount"
Type "gauge"
InstancePrefix "responseQueueSize"
Attribute "responseQueueSize"
Type "gauge"
InstancePrefix "runningOperationsCount"
Attribute "runningOperationsCount"
ObjectName "com.hazelcast:instance=confluence,name=confluence,type=HazelcastInstance.EventService"
InstancePrefix "confluence-Hazelcast-EventService"
Type "gauge"
InstancePrefix "eventThreadCount"
Attribute "eventThreadCount"
Type "gauge"
InstancePrefix "eventQueueCapacity"
Attribute "eventQueueCapacity"
Type "gauge"
InstancePrefix "eventQueueSize"
Attribute "eventQueueSize"
ObjectName "Confluence:name=HibernateStatistics"
InstancePrefix "confluence-HibernateStatistics"
Type "gauge"
InstancePrefix "CloseStatementCount"
Attribute "CloseStatementCount"
Type "gauge"
InstancePrefix "CollectionFetchCount"
Attribute "CollectionFetchCount"
Type "gauge"
InstancePrefix "CollectionLoadCount"
Attribute "CollectionLoadCount"
Type "gauge"
InstancePrefix "CollectionRecreateCount"
Attribute "CollectionRecreateCount"
Type "gauge"
InstancePrefix "CollectionRemoveCount"
Attribute "CollectionRemoveCount"
Type "gauge"
InstancePrefix "CollectionUpdateCount"
Attribute "CollectionUpdateCount"
Type "gauge"
InstancePrefix "ConnectCount"
Attribute "ConnectCount"
Type "gauge"
InstancePrefix "EntityDeleteCount"
Attribute "EntityDeleteCount"
Type "gauge"
InstancePrefix "EntityFetchCount"
Attribute "EntityFetchCount"
Type "gauge"
InstancePrefix "EntityInsertCount"
Attribute "EntityInsertCount"
Type "gauge"
InstancePrefix "EntityLoadCount"
Attribute "EntityLoadCount"
# fqname = org.hibernate.core/#EntityUpdateCount
Type "gauge"
InstancePrefix "EntityUpdateCount"
Attribute "EntityUpdateCount"
# fqname = org.hibernate.core/#FlushCount
Type "gauge"
InstancePrefix "FlushCount"
Attribute "FlushCount"
# fqname = org.hibernate.core/#NaturalIdCacheHitCount
Type "gauge"
InstancePrefix "NaturalIdCacheHitCount"
Attribute "NaturalIdCacheHitCount"
# fqname = org.hibernate.core/#NaturalIdCacheMissCount
Type "gauge"
InstancePrefix "NaturalIdCacheMissCount"
Attribute "NaturalIdCacheMissCount"
# fqname = org.hibernate.core/#NaturalIdCachePutCount
Type "gauge"
InstancePrefix "NaturalIdCachePutCount"
Attribute "NaturalIdCachePutCount"
# fqname = org.hibernate.core/#NaturalIdQueryExecutionCount
Type "gauge"
InstancePrefix "NaturalIdQueryExecutionCount"
Attribute "NaturalIdQueryExecutionCount"
# fqname = org.hibernate.core/#NaturalIdQueryExecutionMaxTime
Type "gauge"
InstancePrefix "NaturalIdQueryExecutionMaxTime"
Attribute "NaturalIdQueryExecutionMaxTime"
# fqname = org.hibernate.core/#OptimisticFailureCount
Type "gauge"
InstancePrefix "OptimisticFailureCount"
Attribute "OptimisticFailureCount"
# fqname = org.hibernate.core/#PrepareStatementCount
Type "gauge"
InstancePrefix "PrepareStatementCount"
Attribute "PrepareStatementCount"
# fqname = org.hibernate.core/#QueryCacheHitCount
Type "gauge"
InstancePrefix "QueryCacheHitCount"
Attribute "QueryCacheHitCount"
# fqname = org.hibernate.core/#QueryCacheMissCount
Type "gauge"
InstancePrefix "QueryCacheMissCount"
Attribute "QueryCacheMissCount"
# fqname = org.hibernate.core/#QueryCachePutCount
Type "gauge"
InstancePrefix "QueryCachePutCount"
Attribute "QueryCachePutCount"
# fqname = org.hibernate.core/#QueryExecutionCount
Type "gauge"
InstancePrefix "QueryExecutionCount"
Attribute "QueryExecutionCount"
# fqname = org.hibernate.core/#QueryExecutionMaxTime
Type "gauge"
InstancePrefix "QueryExecutionMaxTime"
Attribute "QueryExecutionMaxTime"
# fqname = org.hibernate.core/#SecondLevelCacheHitCount
Type "gauge"
InstancePrefix "SecondLevelCacheHitCount"
Attribute "SecondLevelCacheHitCount"
# fqname = org.hibernate.core/#SecondLevelCacheMissCount
Type "gauge"
InstancePrefix "SecondLevelCacheMissCount"
Attribute "SecondLevelCacheMissCount"
# fqname = org.hibernate.core/#SecondLevelCachePutCount
Type "gauge"
InstancePrefix "SecondLevelCachePutCount"
Attribute "SecondLevelCachePutCount"
# fqname = org.hibernate.core/#SessionCloseCount
Type "gauge"
InstancePrefix "SessionCloseCount"
Attribute "SessionCloseCount"
# fqname = org.hibernate.core/#TransactionCount
Type "gauge"
InstancePrefix "TransactionCount"
Attribute "TransactionCount"
# fqname = org.hibernate.core/#UpdateTimestampsCacheHitCount
Type "gauge"
InstancePrefix "UpdateTimestampsCacheHitCount"
Attribute "UpdateTimestampsCacheHitCount"
# fqname = org.hibernate.core/#UpdateTimestampsCacheMissCount
Type "gauge"
InstancePrefix "UpdateTimestampsCacheMissCount"
Attribute "UpdateTimestampsCacheMissCount"
# fqname = org.hibernate.core/#UpdateTimestampsCachePutCount
Type "gauge"
InstancePrefix "UpdateTimestampsCachePutCount"
Attribute "UpdateTimestampsCachePutCount"
# C3P0 Connection pool JMX Configuration
ObjectName "com.mchange.v2.c3p0:type=PooledDataSource,*"
InstancePrefix "confluence-c3p0-PooledDataSource"
Type "gauge"
InstancePrefix "numBusyConnections"
Attribute "numBusyConnections"
Type "gauge"
InstancePrefix "numIdleConnections"
Attribute "numIdleConnections"
Type "gauge"
InstancePrefix "threadPoolNumIdleThreads"
Attribute "threadPoolNumIdleThreads"
Type "gauge"
InstancePrefix "numConnections"
Attribute "numConnections"
# Apache Tomcat JMX configuration
ObjectName "*:type=GlobalRequestProcessor,*"
InstancePrefix "catalina_request_processor-"
InstanceFrom "name"
Type "io_octets"
InstancePrefix "global"
#InstanceFrom ""
Table false
Attribute "bytesReceived"
Attribute "bytesSent"
Type "total_requests"
InstancePrefix "global"
#InstanceFrom ""
Table false
Attribute "requestCount"
Type "total_time_in_ms"
InstancePrefix "global-processing"
#InstanceFrom ""
Table false
Attribute "processingTime"
ObjectName "*:type=RequestProcessor,*"
InstancePrefix "catalina_request_processor-"
InstanceFrom "worker"
Type "io_octets"
#InstancePrefix ""
InstanceFrom "name"
Table false
Attribute "bytesReceived"
Attribute "bytesSent"
Type "total_requests"
#InstancePrefix ""
InstanceFrom "name"
Table false
Attribute "requestCount"
Type "total_time_in_ms"
InstancePrefix "processing-"
InstanceFrom "name"
Table false
Attribute "processingTime"
ObjectName "*:type=ThreadPool,*"
InstancePrefix "request_processor-"
InstanceFrom "name"
Type "threads"
InstancePrefix "total"
#InstanceFrom ""
Table false
Attribute "currentThreadCount"
Type "threads"
InstancePrefix "running"
#InstanceFrom ""
Table false
Attribute "currentThreadsBusy"
# General JVM configuration
ObjectName "java.lang:type=Memory,*"
InstancePrefix "java_memory"
#InstanceFrom "name"
Type "memory"
InstancePrefix "heap-"
#InstanceFrom ""
Table true
Attribute "HeapMemoryUsage"
Type "memory"
InstancePrefix "nonheap-"
#InstanceFrom ""
Table true
Attribute "NonHeapMemoryUsage"
ObjectName "java.lang:type=MemoryPool,*"
InstancePrefix "java_memory_pool-"
InstanceFrom "name"
Type "memory"
#InstancePrefix ""
#InstanceFrom ""
Table true
Attribute "Usage"
ObjectName "java.lang:type=ClassLoading"
InstancePrefix "java"
#InstanceFrom ""
Type "gauge"
InstancePrefix "loaded_classes"
#InstanceFrom ""
Table false
Attribute "LoadedClassCount"
ObjectName "java.lang:type=Compilation"
InstancePrefix "java"
#InstanceFrom ""
Type "total_time_in_ms"
InstancePrefix "compilation_time"
#InstanceFrom ""
Table false
Attribute "TotalCompilationTime"
ObjectName "java.lang:type=GarbageCollector,*"
InstancePrefix "java_gc-"
InstanceFrom "name"
Type "invocations"
#InstancePrefix ""
#InstanceFrom ""
Table false
Attribute "CollectionCount"
Type "total_time_in_ms"
InstancePrefix "collection_time"
#InstanceFrom ""
Table false
Attribute "CollectionTime"
ObjectName "java.lang:type=OperatingSystem"
# Open file descriptors
Type "gauge"
InstancePrefix "os-open_fd_count"
Table false
Attribute "OpenFileDescriptorCount"
# Max. allowed handles for user under which the JavaVM is running
Type "gauge"
InstancePrefix "os-max_fd_count"
Table false
Attribute "MaxFileDescriptorCount"
# Process time used by the JavaVM
Type "counter"
InstancePrefix "os-process_cpu_time"
Table false
Attribute "ProcessCpuTime"
#Host "localhost"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi"
User "monitorRole"
# Confluence
Collect "confluence/IndexingStatistics"
Collect "confluence/MailTaskQueue"
Collect "confluence/RequestMetrics"
Collect "confluence/SystemInformation"
# Hazelcast
Collect "com.hazelcast/HazelcastInstance.OperationService.hazelcast.operationServicehazelcast"
Collect "com.hazelcast/HazelcastInstance.EventService.hazelcast.hazelcast"
# Hibernate
Collect "com.atlassian.confluence/HibernateStatistics"
# C3P0
Collect "com.mchange.v2.c3p0/PooledDataSource"
# Tomcat
Collect "catalina/global_request_processor"
Collect "catalina/detailed_request_processor"
Collect "catalina/thread_pool"
# JVM
Collect "memory"
Collect "memory_pool"
Collect "classes"
Collect "compilation"
Collect "garbage_collector"
Collect "jvm_localhost_os"
Include "/etc/collectd.d"