fix(docker): the slow-ingest line names which part of the Docker persist took the time (#5181)
CI / lint (push) Successful in 2s
CI / integration (push) Successful in 52s
CI / unit (push) Successful in 1m11s
CI / publish (push) Successful in 1m14s

persist_host_docker marks docker.status, .swarm, .disk, .logs, .metrics,
.events, .containers, .alerts and .reap on the ingest's phase timer, each
flushed before its mark so a part's writes are charged to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 20:50:05 -04:00
co-authored by Claude Opus 5.5
parent de84b2554a
commit 4978d28a51
3 changed files with 55 additions and 1 deletions
+1
View File
@@ -283,6 +283,7 @@ async def ingest():
"docker.persist_host_samples", UserRole.admin,
session, host, docker_snapshots, latest_swarm,
latest_disk, docker_log_batches, docker_status,
phases=phases,
)
except Exception:
current_app.logger.exception(