How It Works
Metric Types
| Type | Description | Example Use Case |
|---|---|---|
| Counter | Counts occurrences | HTTP requests, errors, events |
| Gauge | Point-in-time value | Temperature, queue size, connections |
| Histogram | Value distributions | Response times, payload sizes |
Configuration Structure
Version Control
Metric configs use optimistic locking to prevent conflicts:- Each config has a
versionfield - When updating, include the current version
- If version doesn’t match, update fails with
409 Conflict - Re-fetch, resolve conflicts, and retry
Deployment to Agents
When you create or update a metric config:- Config is stored in LogFleet platform
- Agents sync configs periodically via
/edge/sync-config - Agents apply new extraction rules immediately
- New metrics start flowing to cloud
Config changes typically propagate to all agents within 60 seconds.