List hosts where a collector is running

Returns a list of hosts where the specified collector is running.

GET https://telemetry.betterstack.com/api/v1/collectors/{id}/hosts

URL parameters

id
required string

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "101",
      "type": "collector_host",
      "attributes": {
        "hostname": "k8s-node-1.example.com",
        "status": "up",
        "collector_version": "0.1.0",
        "pinged_at": "2023-10-27T10:05:00.000Z",
        "first_pinged_at": "2023-10-26T10:01:00.000Z",
        "last_error": "",
        "installed_as": "kubernetes",
        "system_information": {
          "ebpf_supported": true,
          "kernel_version": "6.1.0-18-amd64",
          "ring_buffer_supported": true,
          "bpf_filesystem_mounted": true,
          "btf_support_available": true,
          "bpf_syscall_enabled": true,
          "bpf_jit_enabled": true,
          "uprobes_available": true,
          "kprobes_available": true,
          "kernel_lockdown": null,
          "fionread_regression_kernel": false,
          "architecture": "x86_64",
          "distribution": "Debian GNU/Linux 12 (bookworm)"
        }
      }
    },
    {
      "id": "102",
      "type": "collector_host",
      "attributes": {
        "hostname": "k8s-node-2.example.com",
        "status": "down",
        "collector_version": "0.1.0",
        "pinged_at": "2023-10-27T09:00:00.000Z",
        "first_pinged_at": "2023-10-26T10:02:00.000Z",
        "last_error": "",
        "installed_as": "kubernetes",
        "system_information": {
          "ebpf_supported": true,
          "kernel_version": "6.1.0-18-amd64",
          "ring_buffer_supported": true,
          "bpf_filesystem_mounted": true,
          "btf_support_available": true,
          "bpf_syscall_enabled": true,
          "bpf_jit_enabled": true,
          "uprobes_available": true,
          "kprobes_available": true,
          "kernel_lockdown": null,
          "fionread_regression_kernel": false,
          "architecture": "x86_64",
          "distribution": "Debian GNU/Linux 12 (bookworm)"
        }
      }
    }
  ]
}
401
404

Response attributes

id
string
type
string
attributes.hostname
string
attributes.status
string
attributes.collector_version
string or null
attributes.pinged_at
string or null
attributes.first_pinged_at
string or null
attributes.last_error
string or null
attributes.installed_as
string
attributes.system_information
object

Example Request

cURL
curl -L -H "Authorization: Bearer $TOKEN" \
     "https://telemetry.betterstack.com/api/v1/collectors/1/hosts"