Infrastructure Agent API
The Infrastructure Agent is a Go-based service that collects health metrics from Kubernetes infrastructure components and exposes them via HTTP endpoints. Base URL:http://logclaw-agent:8080
Dashboard proxy: /api/agent/*
Health Check
Response
Readiness Check
200 only when all collectors are initialized.
Response (Ready)
Response (Not Ready)
Infrastructure Metrics
Response
Metric Fields
Kafka
| Field | Type | Description |
|---|---|---|
status | string | Overall Kafka health: healthy, degraded, down |
brokers | integer | Number of active Kafka brokers |
topics[].partitions | integer | Number of partitions per topic |
topics[].consumerLag | integer | Consumer lag (unconsumed messages) |
Flink
| Field | Type | Description |
|---|---|---|
status | string | Flink health: healthy, degraded, down |
jobs[].name | string | Job deployment name |
jobs[].state | string | Job state: RUNNING, FAILED, SUSPENDED |
jobs[].taskManagers | integer | Number of active task managers |
OpenSearch
| Field | Type | Description |
|---|---|---|
status | string | Cluster health: green, yellow, red |
nodes | integer | Total cluster nodes |
totalDocs | integer | Total indexed documents |
totalSizeBytes | integer | Total index storage in bytes |
External Secrets Operator
| Field | Type | Description |
|---|---|---|
status | string | ESO health: healthy, degraded, down |
externalSecrets[].status | string | Sync status: SecretSynced, SecretSyncError |
externalSecrets[].lastSyncTime | string | ISO-8601 timestamp of last sync |
Configuration
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
LOGCLAW_TENANT_ID | Yes | — | Tenant identifier for filtering CRDs |
LOGCLAW_NAMESPACE | No | Current namespace | Kubernetes namespace to watch |
PORT | No | 8080 | HTTP server port |