Skip to main content
POST
/
api
/
v1
/
client
/
metrics
curl --request POST \
  --url 'https://beaconcha.in/api/v1/client/metrics?apikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": 2,
  "timestamp": 1714500000,
  "process": "system",
  "exporter_version": "1.0.0",
  "cpu_cores": 8,
  "cpu_threads": 16,
  "cpu_node_system_seconds_total": 12345,
  "cpu_node_user_seconds_total": 67890,
  "cpu_node_iowait_seconds_total": 100,
  "cpu_node_idle_seconds_total": 543210,
  "memory_node_bytes_total": 33285996544,
  "memory_node_bytes_free": 8200000000,
  "memory_node_bytes_cached": 12000000000,
  "memory_node_bytes_buffers": 500000000,
  "disk_node_bytes_total": 2000000000000,
  "disk_node_bytes_free": 1500000000000,
  "disk_node_io_seconds": 200,
  "disk_node_reads_total": 1000000,
  "disk_node_writes_total": 500000,
  "network_node_bytes_total_receive": 9876543210,
  "network_node_bytes_total_transmit": 1234567890,
  "misc_node_boot_ts_seconds": 1714000000,
  "misc_os": "linux"
}
'
{
  "status": "OK",
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.beaconcha.in/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

apikey
string
query
required

Query Parameters

apikey
string
required

User API key. Find it at https://beaconcha.in/api/key-management.

machine
string

Optional name to distinguish multiple devices on the same account. Use the same name across the validator-client, beacon-node, and system-metrics submissions for one host.

Body

application/json

A single metrics object or an array of up to 10 metrics objects.

A single machine-metrics submission. The process discriminator selects between the three payload variants: system, beaconnode, and validator.

version
enum<integer>
required

Payload schema version. Currently 1 or 2.

Available options:
1,
2
timestamp
integer<int64>
required

Unix timestamp (seconds) at which the snapshot was taken.

process
enum<string>
required

Discriminator selecting the payload variant.

Available options:
system,
beaconnode,
validator
exporter_version
string

Version string of the exporter that produced the metrics.

cpu_cores
integer

Total physical CPU cores.

cpu_threads
integer

Total CPU threads (hardware threads / vCPUs).

cpu_node_system_seconds_total
integer

Cumulative CPU seconds spent in kernel mode.

cpu_node_user_seconds_total
integer

Cumulative CPU seconds spent in user mode.

cpu_node_iowait_seconds_total
integer

Cumulative CPU seconds spent waiting on I/O.

cpu_node_idle_seconds_total
integer

Cumulative CPU seconds spent idle.

memory_node_bytes_total
integer

Total system memory in bytes.

memory_node_bytes_free
integer

Free system memory in bytes.

memory_node_bytes_cached
integer

Cached memory in bytes.

memory_node_bytes_buffers
integer

Memory used as kernel buffers in bytes.

disk_node_bytes_total
integer

Total disk capacity in bytes.

disk_node_bytes_free
integer

Free disk space in bytes.

disk_node_io_seconds
integer

Cumulative time the disk spent on I/O, in seconds.

disk_node_reads_total
integer

Cumulative number of disk reads.

disk_node_writes_total
integer

Cumulative number of disk writes.

network_node_bytes_total_receive
integer

Cumulative bytes received on the network interface.

network_node_bytes_total_transmit
integer

Cumulative bytes transmitted on the network interface.

misc_node_boot_ts_seconds
integer

Unix timestamp (seconds) at which the host last booted.

misc_os
string

Operating-system identifier (e.g., linux).

Response

Metrics accepted and stored. Response body is the standard ApiResponse envelope with status: OK and a null data field.

Standard success envelope used by all API endpoints.

status
enum<string>

HTTP-independent status of the API operation. For successful responses this is always "OK".

Available options:
OK
data
any | null

Response payload specific to the endpoint.