Confluence
Auto-Discovery
Health Check
Metrics
Logs
To enable metrics gathering, Bleemeo agent needs to be installed with JMX enabled, see Java Metrics for setup details.
In addition Confluence need to expose JMX over a TCP port. To enable JMX you can follow Live Monitoring Using the JMX Interface.
Here is a summary for unauthenticated access:
- Add option
-Dcom.sun.management.jmxremote.port=3333 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=falseto the JVM. Default Confluence startup-script accept them from CATALINA_OPTS or JAVA_OPTS environment variable.
Warning: this will allow unauthenticated access. Make sure no untrusted access to this port is possible or you should setup authenticated JMX access.
Bleemeo agent should auto-detect the JMX port, if some auto-detected parameters are wrong, you
can manually override them by adding the following to /etc/glouton/conf.d/99-local.conf:
service: [...]
# For a Confluence running outside a container - type: "confluence" address: "127.0.0.1" port: 8090 jmx_port: 3333 jmx_username: "monitorRole" # by default, no authentication is done jmx_password: "secret"
# For an additional Confluence running outside a container - type: "confluence" instance: "NAME_ASSOCIATED_WITH_YOUR_ADDITIONAL_SERVICE" address: "127.0.0.1" port: 8091 jmx_port: 3334 jmx_username: "monitorRole" # by default, no authentication is done jmx_password: "secret"
# For a Confluence running in a Docker container - type: "confluence" instance: "CONTAINER_NAME" address: "172.17.0.2" port: 8090 jmx_port: 3333 jmx_username: "monitorRole" # by default, no authentication is done jmx_password: "secret"Agent gathers the following metrics:
| Metric | Description |
|---|---|
| service_status | Status of Confluence |
| confluence_db_query_time | Example for database query time in seconds |
| confluence_jvm_gc | Number of garbage collection per second |
| confluence_jvm_gc_utilization | Garbage collection utilization in percent |
| confluence_jvm_heap_used | Heap memory used in bytes |
| confluence_jvm_non_heap_used | Non-Heap memory used in bytes |
| confluence_last_index_time | Time of last indexing task in seconds |
| confluence_queued_error_mails | Number of mails in error queued |
| confluence_queued_index_tasks | Number of indexing tasks queued |
| confluence_queued_mails | Number of mails queued |
| confluence_request_time | Average time of request in seconds |
| confluence_requests | Number of requests per second |