CrushMFT Documentation

Metrics#

The server can publish numbers about itself in the format that Prometheus and the tools built on it read. Turning that on, protecting it and what to put an alarm on is in Metrics. This page lists the numbers.

The list is taken from a running test server of version 27: 61 families. A family is one name; it has one value, or one per combination of its labels.

Reading the tables#

Column Is
Name the name of the family
Kind counter: only goes up, from the start of the server; read it as a rate. gauge: the value now.
Labels what the family is split by. A value per protocol, per job, per port.
Says the server's own description of the family

The server#

Name Kind Labels Says
crushmft_build_info gauge app version java_version os Server version and runtime; the value is always 1.
crushmft_start_time_seconds gauge When the server started, in seconds since the epoch.
crushmft_enterprise_license gauge 1 with an Enterprise license.
crushmft_dmz_mode gauge 1 when this server runs as a DMZ server.

Health#

Name Kind Labels Says
crushmft_health_ok gauge check 1 when a health check is OK, 0 when it is impaired; disabled checks are left out.

Totals#

Name Kind Labels Says
crushmft_server_sent_bytes_total counter Bytes sent to clients, kept across restarts.
crushmft_server_received_bytes_total counter Bytes received from clients, kept across restarts.
crushmft_server_logins_successful_total counter Successful logins, kept across restarts.
crushmft_server_logins_failed_total counter Failed logins since the server started.
crushmft_server_uploaded_files_total counter Files uploaded, kept across restarts.
crushmft_server_downloaded_files_total counter Files downloaded, kept across restarts.

Logins and sessions#

Name Kind Labels Says
crushmft_logins_allowed gauge 0 while logins are stopped from the admin console.
crushmft_logins_total counter protocol outcome Login attempts by protocol and outcome.
crushmft_logouts_total counter protocol Sessions that ended, by protocol.
crushmft_sessions_active gauge Sessions in the user list now.
crushmft_connected_unique_ips gauge Distinct client IPs connected now.

Transfers and files#

Name Kind Labels Says
crushmft_file_operations_total counter operation protocol outcome File operations by operation, protocol and outcome.
crushmft_transferred_bytes_total counter direction protocol File bytes moved by direction and protocol.
crushmft_transfers_in_progress gauge direction Uploads and downloads in progress.
crushmft_transfer_speed_kilobytes_per_second gauge direction Current server wide transfer speed.

Jobs#

Name Kind Labels Says
crushmft_tasks_running gauge Job tasks running now.
crushmft_job_engine_memory_used_bytes gauge Java heap in use by the job engine.
crushmft_job_engine_memory_max_bytes gauge Java heap limit of the job engine.
crushmft_job_engine_cpu_percent gauge CPU used by the job engine, percent.

Ports#

Name Kind Labels Says
crushmft_server_events_total counter event Server and port starts and stops.
crushmft_listener_up gauge type ip port name 1 when the port is running.
crushmft_listener_connections gauge type ip port name Sessions connected to the port now.
crushmft_listener_connections_total counter type ip port name Connections the port accepted since it started.

The machine#

Name Kind Labels Says
crushmft_threads_busy gauge Worker threads busy now.
crushmft_threads_max gauge The worker thread limit (max_threads).
crushmft_server_cpu_percent gauge CPU used by the server process, percent.
crushmft_os_cpu_percent gauge CPU used by the whole machine, percent.
crushmft_memory_used_bytes gauge Java heap in use.
crushmft_memory_max_bytes gauge Java heap limit.
crushmft_memory_pending_bytes gauge Transfer data held in memory waiting to be written.
crushmft_open_files gauge Open file handles of the server process.
crushmft_open_files_max gauge The open file handle limit.
crushmft_disk_free_bytes gauge path Free space on the log folder's disk and on the drives Disk Space alerts watch.
crushmft_cpu_cores gauge Processors available to the JVM.

Cluster and replication#

Name Kind Labels Says
crushmft_replication_peers gauge Replication peers configured.
crushmft_replication_pending gauge kind Replication items waiting to be sent, by kind.
crushmft_replication_queue gauge Messages queued for each replication peer.

Logging#

Name Kind Labels Says
crushmft_log_lines_queued gauge Log lines waiting for the log writer.
crushmft_log_target_records_total counter Records each log target sent (result=sent) or threw away (result=dropped).
crushmft_log_target_queued gauge Records waiting in each log target's queue.
crushmft_log_target_error gauge 1 when the log target's last send failed.

Administration#

Name Kind Labels Says
crushmft_admin_changes_total counter command outcome Admin commands that change something, by command and outcome.

The metrics themselves#

Name Kind Labels Says
crushmft_metrics_series_dropped_total counter Counter increments not kept because a family reached its series limit.

Other#

Name Kind Labels Says
crushmft_event_threads_running gauge Event threads running now.

Java and the process#

Name Kind Labels Says
jvm_memory_used_bytes gauge area Used bytes of a JVM memory area.
jvm_memory_committed_bytes gauge area Committed bytes of a JVM memory area.
jvm_memory_max_bytes gauge area Max bytes of a JVM memory area (-1 when unbounded).
jvm_gc_collection_seconds summary gc Time spent in each garbage collector.
jvm_threads_current gauge Live JVM threads.
jvm_threads_daemon gauge Live daemon threads.
jvm_threads_peak gauge Peak live threads.
jvm_classes_currently_loaded gauge Classes loaded now.
process_start_time_seconds gauge Process start time in seconds since the epoch.
process_cpu_seconds_total counter CPU time of the process.
process_open_fds gauge Open file descriptors.
process_max_fds gauge File descriptor limit.

Families that appear with their part of the server#

A server shows these only when the part they belong to is in use, or once there is something to count. The test server did not show them; they are read from the server's code.

Name Says
crushmft_alerts_total Alerts that fired, by alert type.
crushmft_ip_bans_total IP bans by reason.
crushmft_password_changes_total Password changes by outcome.
crushmft_sessions_kicked_total Sessions kicked by the server or an administrator.
crushmft_access_audit_total Access audit events by event and decision.
crushmft_snmp_traps_total SNMP traps sent for alerts, by result.
crushmft_cluster_members_in_sync 1 when every server has this server's member list.
crushmft_fips_restrictions_in_force Catalog rows of what FIPS mode turns off, limits or sets that this server meets.
crushmft_fips_job_engines_not_fips Job engines this server knows that did not say they run in FIPS mode.
crushmft_fips_job_engines_refused Job engines whose link is refused for their FIPS mode.
crushmft_fips_dmz_refused DMZ ports whose link is refused for the DMZ's FIPS mode.
crushmft_fips_crypto_not_module_total Crypto calls since start that the validated module did not answer; it stays 0.
crushmft_fips_mode whether the server runs in FIPS mode
crushmft_cluster_node_state, crushmft_cluster_link_up, crushmft_cluster_link_rtt_seconds, crushmft_cluster_record_age_seconds in a cluster: the state of each node, whether the link to each is up and how long an answer takes, and how old the last word from each is
crushmft_as2v2_up and the other families that start with crushmft_as2v2_ when AS2 version 2 is on: messages by outcome and by partner, bytes received, messages in flight, deliveries, receipts sent later, addresses blocked, and the room of the quarantine disk

Things to know#

  • Most counters start at zero with the server. A restart sets them back; monitoring tools expect that. The totals that say "kept across restarts" go on counting.
  • Labels are kept few on purpose. There is no label for a user name or a file: the numbers are for the health of the server, not for who did what. For that, see Reports.
  • A family has a limit on its label combinations. What does not fit is counted in crushmft_metrics_series_dropped_total; if that number rises, something sends unexpected label values.
  • The Java families (jvm_…, process_…) are the usual ones of every Java program, so ready-made dashboards for Java work with them.
  • Names can be added by a later version. Build alarms on the names you use, and look at this list again after an update.

Where this list comes from#

The families, their kinds, labels and descriptions are the answer of a test server's metrics address. Only the names of labels were taken from it, not their values. The last table is read from the code.