Skip to main content
POST
/
api
/
v1
/
edge
/
metrics
Submit metrics
curl --request POST \
  --url https://api.logfleet.io/api/v1/edge/metrics \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metrics": [
    {
      "name": "<string>",
      "value": 123,
      "timestamp": 123,
      "tags": {}
    }
  ]
}
'
{
  "status": "accepted",
  "metrics_received": 123
}
Pushes extracted metrics from the edge agent to LogFleet. Called every 60 seconds with batched metrics. Metrics are extracted at the edge based on the configured metric extraction rules, significantly reducing bandwidth compared to shipping raw logs.

Authorizations

X-API-Key
string
header
required

API key for edge agents

Body

application/json
agent_id
string<uuid>
required
metrics
object[]
required
Minimum array length: 1

Response

Metrics accepted

status
string
Example:

"accepted"

metrics_received
integer