I have configured Nebula Worker on the Raspberry Pi and Mongo, Nebula Manager, Reporter, Kafka and Zookeeper on the VPS ( Which is a Ubuntu 18.04 machine )
Status if the Remote device is updated or the update failed using an API call.
{
"data": [
{
"_id": {
"$oid": "5d20785900bb37cdd5352c5c"
},
"memory_usage": {
"total": 926,
"used": 159,
"free": 91,
"available": 680
},
"root_disk_usage": {
"total": 14890,
"used": 2140,
"free": 12115
},
"cpu_usage": {
"cores": 4,
"used_percent": 0.6
},
"cron_jobs_containers": [],
"apps_containers": [
{
"read": "0001-01-01T00:00:00Z",
"preread": "0001-01-01T00:00:00Z",
"pids_stats": {},
"blkio_stats": {
"io_service_bytes_recursive": null,
"io_serviced_recursive": null,
"io_queue_recursive": null,
"io_service_time_recursive": null,
"io_wait_time_recursive": null,
"io_merged_recursive": null,
"io_time_recursive": null,
"sectors_recursive": null
},
"num_procs": 0,
"storage_stats": {},
"cpu_stats": {
"cpu_usage": {
"total_usage": 0,
"usage_in_kernelmode": 0,
"usage_in_usermode": 0
},
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"precpu_stats": {
"cpu_usage": {
"total_usage": 0,
"usage_in_kernelmode": 0,
"usage_in_usermode": 0
},
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"memory_stats": {},
"name": "/example-1",
"id": "dafc6f075726d61a6b2bc3feffe0cecb738bd43d04eca89c6f3fa72dd9d50193"
}
],
"current_device_group_config": {
"status_code": 200,
"reply": {
"apps": [
{
"app_id": 1,
"app_name": "example",
"starting_ports": [
8080
],
"containers_per": {
"server": 1
},
"env_vars": {},
"docker_image": "<my_registry_url>/flask",
"running": true,
"networks": [
"nebula"
],
"volumes": [
"/tmp:/tmp/1",
"/var/tmp/:/var/tmp/1:ro"
],
"devices": [],
"privileged": false,
"rolling_restart": false
}
],
"apps_list": [
"example"
],
"prune_id": 1,
"cron_jobs": [],
"cron_jobs_list": [],
"device_group_id": 1
}
},
"device_group": "example",
"report_creation_time": 1562409049,
"hostname": "worker",
"report_insert_date": {
"$date": 1562409049716
}
}
],
"last_id": {
"$oid": "5d20785900bb37cdd5352c5c"
}
}
I am unable to find which key from the above API can help me if the device is updated or failed or is there another API for finding this ( I am unable to find any other API for this purpose. )
# mongo
> use nebula
switched to db nebula
> show collections
nebula_apps
nebula_cron_jobs
nebula_device_groups
nebula_reports
nebula_user_groups
nebula_users