Metrics

The service publishes its meters on GET /actuator/prometheus, on the same port 8080 as the REST API. There is no separate metrics port. The property management.endpoints.web.exposure.include lists the open endpoints: health, info and prometheus. See Deployment for the HTTP endpoints this service publishes.

Write your scrape configuration from this page. The pattern is fcc_<area>_<what>.

Queue metrics

The tag queue has five values: fccCommandQueue, fccCommandAck, fccResultQueue, fccDeviceStateQueue and fccActivationEventQueue.

Name Type Tags Measures Alert

fcc_queue_depth

Gauge

queue

Size of the named Hazelcast queue. The service samples it every ft.fcc.metrics.sample-interval, 15 seconds by default.

Yes. A steady rise on fccCommandQueue or fccResultQueue means the consumer stopped draining the queue.

fcc_queue_age_seconds

Gauge

queue

Age of the first element. The service reads the publish time inside the message. An empty queue reports 0.

Yes, on the three queues with a value. See Where NaN appears. A rising age with a small depth points to a stuck consumer.

Outbox metrics

Name Type Tags Measures Alert

fcc_outbox_rows

Gauge

state

Row count per fcc_acs_outbox state. The tag carries all five live states.

Yes, on a rising ABANDONED count. See Troubleshooting.

fcc_outbox_age_seconds

Gauge

state

Age of the oldest row in the state. The tag carries PENDING and SENT only.

Yes. Use this meter for the command path, because the queue age of fccCommandQueue has no value.

The PENDING and SENT counts refresh on every sample tick, every 15 seconds. The ABANDONED count refreshes every five minutes. An abandoned row waits for nothing, and nothing deletes it, so the count only grows. A slower cadence on that one tag is correct, not a stuck sampler.

An abandoned row has no age, so fcc_outbox_age_seconds has no ABANDONED tag.

Command acknowledgement latency

Name Type Tags Measures Alert

fcc_command_ack_latency_seconds_count

Timer

result

Number of applied acknowledgements. The tag carries ACCEPTED, REJECTED or DUPLICATE.

No. Read it together with the sum.

fcc_command_ack_latency_seconds_sum

Timer

result

Total seconds from the offer of the command to the applied acknowledgement. Divide the sum by the count for the mean.

No.

fcc_command_ack_latency_seconds_max

Timer

result

Highest latency in the current time window.

Yes, on ACCEPTED. A rising maximum means ft.fcc.command-ack-timeout, 60 seconds by default, no longer fits reality.

fcc_command_ack_untimed_total

Counter

 — 

Acknowledgements without a latency. The sent_at column of the outbox row is null, so the service has no start time.

Yes, on any rise. Something outside the dispatcher wrote that outbox row.

A republished command keeps its own DUPLICATE series. The service does not merge it into ACCEPTED.

A timer without observations is absent from the scrape. The service registers no fake zero, because a zero would distort a latency alert.

Result buffer and Hazelcast connection

Name Type Tags Measures Alert

fcc_result_buffer_depth

Gauge

 — 

Measurements in the in-memory buffer. The buffer is also the ClickHouse retry queue. The limit is ft.fcc.result.queue-capacity, 10000 by default.

Yes. A depth near the limit comes before the first dead letter row.

fcc_hazelcast_connected

Gauge

 — 

1 when the Hazelcast client has a live cluster connection, 0 otherwise. The check needs a running client and a member list.

Yes. A 0 also explains the ten fcc_queue_* series without a value.

Where NaN appears

The service samples every gauge on a timer. An unknown value is reported as NaN, never as 0. A 0 is a statement: the queue is empty, or the outbox is drained. NaN means the service could not take the sample.

Four cases produce NaN:

Series Reason

All ten fcc_queue_* series, while fcc_hazelcast_connected is 0

The sampler stops early on a disconnected client. Every queue call would fail with the same offline error.

fcc_queue_age_seconds{queue="fccCommandQueue"} and {queue="fccCommandAck"}, always

The age needs a publish time inside the message, and these two message types carry none. The message shape is a shared contract, so this service cannot add a field alone. Use fcc_outbox_age_seconds for the command path.

fcc_outbox_rows and fcc_outbox_age_seconds, every tag, while ftfcc is unreachable

An empty table reports 0, because that is real information. An unreachable database reports NaN, because a failed query is not an empty result.

The three other queue ages do have a value, and they carry clock skew. The Auto Configuration Server (ACS) stamps the publish time on its own host. This service subtracts that time from its own clock. An ACS clock behind this clock inflates all three ages. An ACS clock ahead would give a negative age, and the service reports 0 instead.

Use this as a diagnostic. The three ages rise together and fcc_outbox_age_seconds stays flat: suspect the clock of the ACS host first. The outbox age contains no ACS clock at all.

All other meters

Every counter below has no tags.

Name Measures

fcc_config_export_tests_total

Campaigns written into an export document.

fcc_config_import_documents_total

Configuration documents read into a campaign form. The service counts one per successful parse.

fcc_clickhouse_result_inserted_total

Speed result rows written to ClickHouse.

fcc_clickhouse_result_failed_total

Speed result rows with a failed insert.

fcc_clickhouse_latency_inserted_total

Latency result rows written to ClickHouse.

fcc_clickhouse_latency_failed_total

Latency result rows with a failed insert. A rise here with a healthy speed counter means the latency table is behind. See Troubleshooting.

fcc_queue_message_unreadable_total

Queue messages skipped. The service could not read them as the expected message type.

fcc_queue_consumer_error_total

Failures of a queue consumer loop.

fcc_queue_message_lost_total

Queue messages dropped after the bounded consume retry.

fcc_watchdog_window_closed_total

Runs closed by the watchdog after the measurement window expired.

fcc_watchdog_stop_closed_total

Runs closed by the watchdog after ft.fcc.stop-grace expired.

fcc_outbox_published_total

Commands accepted by the command queue.

fcc_outbox_publish_failed_total

Publish attempts with a failure. The service retries them.

fcc_outbox_abandoned_total

Commands dropped after ft.fcc.outbox-max-attempts, 10 by default. See Troubleshooting.

fcc_activation_event_applied_total

Run events applied to a run.

fcc_activation_event_dropped_total

Run events dropped. They name a run this service does not know.

fcc_reactivation_not_planned_total

Daily runs never created. The previous run of the campaign never finished.

fcc_reactivation_dispatch_skipped_total

Planned runs never sent. The campaign settings were no longer valid at dispatch time.

fcc_device_state_applied_total

Device states written to fcc_device_state.

fcc_device_state_unroutable_total

Device states dropped. They name a run this service does not know.

fcc_device_state_invalid_total

Device states dropped. The message misses a key field, so the ACS sent malformed data.

fcc_legacy_import_rows_read_total

Legacy result rows read from the ftacs schema.

fcc_legacy_import_rows_written_total

Legacy result rows written to ClickHouse.

fcc_legacy_import_rows_skipped_total

Legacy rows skipped. Crash recovery found them in ClickHouse already.

fcc_legacy_import_batches_total

Committed batches of legacy results.

fcc_legacy_import_anchors_total

Anchor campaigns created for legacy update groups.

fcc_legacy_import_activations_total

Synthetic runs created for legacy day windows.

fcc_legacy_import_devices_snapshotted_total

Devices added to the frozen fleet of an anchor campaign.

fcc_legacy_import_devices_unresolved_total

Legacy serial numbers without a live device row.

fcc_legacy_import_passes_completed_total

Import passes that reached the end of their result kind.

fcc_legacy_import_passes_failed_total

Import passes that ended on an unexpected failure.

fcc_result_parked_total

Results written to the dead letter table instead of ClickHouse.

fcc_result_lost_total

Results the service could not even park. These are gone. This is the one counter worth a page.

fcc_result_resent_total

Results returned from the dead letter table into the ingest path.

fcc_result_discarded_total

Dead letter rows dropped. The service could not read their payload back.

fcc_result_resend_skipped_late_total

Dead letter rows a resend cannot use. They carry the reason LATE from an earlier build. See Troubleshooting.

fcc_result_dedup_skipped_total

Results already stored under their natural key. This is a correct drop of a repeated delivery.

fcc_result_unroutable_total

Results dropped. They name a run this service does not know.

fcc_result_late_total

Results that arrived after the stop grace of their run. The service excludes them on purpose. See Results after a stop.

Not exposed here

Two numbers of the legacy import have no meter: rowsLateSkipped and rowsInvalid. You see them in the import status response and in the log. See Watch the progress.