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 |
|---|---|---|---|---|
|
Gauge |
|
Size of the named Hazelcast queue. The service samples it every |
Yes. A steady rise on |
|
Gauge |
|
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 |
|---|---|---|---|---|
|
Gauge |
|
Row count per |
Yes, on a rising |
|
Gauge |
|
Age of the oldest row in the state. The tag carries |
Yes. Use this meter for the command path, because the queue age of |
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 |
|---|---|---|---|---|
|
Timer |
|
Number of applied acknowledgements. The tag carries |
No. Read it together with the sum. |
|
Timer |
|
Total seconds from the offer of the command to the applied acknowledgement. Divide the sum by the count for the mean. |
No. |
|
Timer |
|
Highest latency in the current time window. |
Yes, on |
|
Counter |
— |
Acknowledgements without a latency. The |
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 |
|---|---|---|---|---|
|
Gauge |
— |
Measurements in the in-memory buffer. The buffer is also the ClickHouse retry queue. The limit is |
Yes. A depth near the limit comes before the first dead letter row. |
|
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 |
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 |
The sampler stops early on a disconnected client. Every queue call would fail with the same offline error. |
|
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 |
|
An empty table reports 0, because that is real information. An unreachable database reports |
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 |
|---|---|
|
Campaigns written into an export document. |
|
Configuration documents read into a campaign form. The service counts one per successful parse. |
|
Speed result rows written to ClickHouse. |
|
Speed result rows with a failed insert. |
|
Latency result rows written to ClickHouse. |
|
Latency result rows with a failed insert. A rise here with a healthy speed counter means the latency table is behind. See Troubleshooting. |
|
Queue messages skipped. The service could not read them as the expected message type. |
|
Failures of a queue consumer loop. |
|
Queue messages dropped after the bounded consume retry. |
|
Runs closed by the watchdog after the measurement window expired. |
|
Runs closed by the watchdog after |
|
Commands accepted by the command queue. |
|
Publish attempts with a failure. The service retries them. |
|
Commands dropped after |
|
Run events applied to a run. |
|
Run events dropped. They name a run this service does not know. |
|
Daily runs never created. The previous run of the campaign never finished. |
|
Planned runs never sent. The campaign settings were no longer valid at dispatch time. |
|
Device states written to |
|
Device states dropped. They name a run this service does not know. |
|
Device states dropped. The message misses a key field, so the ACS sent malformed data. |
|
Legacy result rows read from the |
|
Legacy result rows written to ClickHouse. |
|
Legacy rows skipped. Crash recovery found them in ClickHouse already. |
|
Committed batches of legacy results. |
|
Anchor campaigns created for legacy update groups. |
|
Synthetic runs created for legacy day windows. |
|
Devices added to the frozen fleet of an anchor campaign. |
|
Legacy serial numbers without a live device row. |
|
Import passes that reached the end of their result kind. |
|
Import passes that ended on an unexpected failure. |
|
Results written to the dead letter table instead of ClickHouse. |
|
Results the service could not even park. These are gone. This is the one counter worth a page. |
|
Results returned from the dead letter table into the ingest path. |
|
Dead letter rows dropped. The service could not read their payload back. |
|
Dead letter rows a resend cannot use. They carry the reason |
|
Results already stored under their natural key. This is a correct drop of a repeated delivery. |
|
Results dropped. They name a run this service does not know. |
|
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.