Skip to content

Prometheus Exporter For Confluence

Andrey Markelov edited this page Oct 31, 2017 · 13 revisions

The Confluence plugin Prometheus Exporter For Confluence exposes Confluence JVM and application metrics for pull by Prometheus.

Installation and upgrade:

Open Confluence's plug-in manager, and in the Find new add-ons section search for Prometheus Exporter For Confluence and click Install. Alternatively, you can start from the Atlassian Marketplace page of Prometheus Exporter For Confluence.

Usage:

After plugin is successfully installed the following link can be used to expose metrics: /plugins/servlet/prometheus/metrics

Metrics:

# HELP jvm_threads_current Current thread count of a JVM
# TYPE jvm_threads_current gauge
jvm_threads_current 97.0
# HELP jvm_threads_daemon Daemon thread count of a JVM
# TYPE jvm_threads_daemon gauge
jvm_threads_daemon 76.0
# HELP jvm_threads_peak Peak thread count of a JVM
# TYPE jvm_threads_peak gauge
jvm_threads_peak 141.0
# HELP jvm_threads_started_total Started thread count of a JVM
# TYPE jvm_threads_started_total counter
jvm_threads_started_total 243.0
# HELP jvm_threads_deadlocked Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers
# TYPE jvm_threads_deadlocked gauge
jvm_threads_deadlocked 0.0
# HELP jvm_threads_deadlocked_monitor Cycles of JVM-threads that are in deadlock waiting to acquire object monitors
# TYPE jvm_threads_deadlocked_monitor gauge
jvm_threads_deadlocked_monitor 0.0
# HELP jvm_info JVM version info
# TYPE jvm_info gauge
jvm_info{version="1.8.0_111-b14",vendor="Oracle Corporation",} 1.0
# HELP jvm_memory_bytes_used Used bytes of a given JVM memory area.
# TYPE jvm_memory_bytes_used gauge
jvm_memory_bytes_used{area="heap",} 3.40409728E8
jvm_memory_bytes_used{area="nonheap",} 3.09200744E8
# HELP jvm_memory_bytes_committed Committed (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_committed gauge
jvm_memory_bytes_committed{area="heap",} 5.1380224E8
jvm_memory_bytes_committed{area="nonheap",} 3.32136448E8
# HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area.
# TYPE jvm_memory_bytes_max gauge
jvm_memory_bytes_max{area="heap",} 5.1380224E8
jvm_memory_bytes_max{area="nonheap",} -1.0
# HELP jvm_memory_pool_bytes_used Used bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_used gauge
jvm_memory_pool_bytes_used{pool="Code Cache",} 1.00533248E8
jvm_memory_pool_bytes_used{pool="Metaspace",} 1.85658368E8
jvm_memory_pool_bytes_used{pool="Compressed Class Space",} 2.3009128E7
jvm_memory_pool_bytes_used{pool="PS Eden Space",} 1.1142744E7
jvm_memory_pool_bytes_used{pool="PS Survivor Space",} 1.38268E7
jvm_memory_pool_bytes_used{pool="PS Old Gen",} 3.15440184E8
# HELP jvm_memory_pool_bytes_committed Committed bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_committed gauge
jvm_memory_pool_bytes_committed{pool="Code Cache",} 1.01187584E8
jvm_memory_pool_bytes_committed{pool="Metaspace",} 2.03423744E8
jvm_memory_pool_bytes_committed{pool="Compressed Class Space",} 2.752512E7
jvm_memory_pool_bytes_committed{pool="PS Eden Space",} 1.34217728E8
jvm_memory_pool_bytes_committed{pool="PS Survivor Space",} 2.1495808E7
jvm_memory_pool_bytes_committed{pool="PS Old Gen",} 3.58088704E8
# HELP jvm_memory_pool_bytes_max Max bytes of a given JVM memory pool.
# TYPE jvm_memory_pool_bytes_max gauge
jvm_memory_pool_bytes_max{pool="Code Cache",} 2.5165824E8
jvm_memory_pool_bytes_max{pool="Metaspace",} -1.0
jvm_memory_pool_bytes_max{pool="Compressed Class Space",} 1.073741824E9
jvm_memory_pool_bytes_max{pool="PS Eden Space",} 1.35266304E8
jvm_memory_pool_bytes_max{pool="PS Survivor Space",} 2.1495808E7
jvm_memory_pool_bytes_max{pool="PS Old Gen",} 3.58088704E8
# HELP confluence_cluster_panic_count Cluster Panic Count
# TYPE confluence_cluster_panic_count counter
confluence_cluster_panic_count 0.0
# HELP confluence_label_create_count Label Create Count
# TYPE confluence_label_create_count counter
# HELP confluence_label_remove_count Label Remove Count
# TYPE confluence_label_remove_count counter
# HELP confluence_label_add_count Label Add Count
# TYPE confluence_label_add_count counter
# HELP confluence_label_delete_count Label Delete Count
# TYPE confluence_label_delete_count counter
# HELP confluence_user_login_count User Login Count
# TYPE confluence_user_login_count counter
confluence_user_login_count{username="admin",ip="127.0.0.1",} 1.0
# HELP confluence_user_logout_count User Logout Count
# TYPE confluence_user_logout_count counter
# HELP jvm_classes_loaded The number of classes that are currently loaded in the JVM
# TYPE jvm_classes_loaded gauge
jvm_classes_loaded 33478.0
# HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution
# TYPE jvm_classes_loaded_total counter
jvm_classes_loaded_total 33589.0
# HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution
# TYPE jvm_classes_unloaded_total counter
jvm_classes_unloaded_total 111.0
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 462.83
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.509428705472E9
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 541.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1048576.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 4.472127488E9
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 1.176113152E9
# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.
# TYPE jvm_gc_collection_seconds summary
jvm_gc_collection_seconds_count{gc="PS Scavenge",} 374.0
jvm_gc_collection_seconds_sum{gc="PS Scavenge",} 7.762
jvm_gc_collection_seconds_count{gc="PS MarkSweep",} 12.0
jvm_gc_collection_seconds_sum{gc="PS MarkSweep",} 5.41

Examples:

  1. Cpu
  1. Memory
  1. Login Count
Clone this wiki locally