deprecated
  • orbs-v3 overview
  • orbs-vm
    • Introduction
    • Get started
    • Dockerfile
      • Working Directory
      • Entry point
      • Health check
    • Status
    • Deployment
  • orbs-lambda
    • Introduction
    • Getting Started
    • Supported Networks
    • Project Structure
    • Lambda Triggers
      • OnSchedule
      • onBlocks
      • onEvent
      • Subscribing To Triggers
    • Writing Your Lambda Function
    • Test And Run Locally
    • Paying For Your Transactions
    • Submit Your Lambda
Powered by GitBook
On this page
  • introduction
  • json format
  • Error
  • Status
  • Timestamp
  • Payload.Version.Semantic
  • config
  • json folder
  1. orbs-vm

Status

PreviousHealth checkNextDeployment

Last updated 2 years ago

introduction

  • All docker containers on each Orbs Guardian node are monitored by the .

  • Each ORBS-VM gets its own visual representation according to the status.json exported by the ORBS-VM.

  • Your ORBS-VM should write its own /status/status.json (container's path) every 5 minutes in order to be monitored and for the HEALTHCHECK () to work properly.

json format

{
    "Error": "Human readable explanation of current error, field exists only if the status is erroneous.",
    "Status": "Human readable explanation of current status, field always exists.",
    "Timestamp": "2020-03-19T11:50:21.0846185Z",
    "Payload": {
        "Version": {
            "Semantic": "v1.3.1"
        },
        "CustomFieldsGoHere": 17,
        "MoreCustomFields": "any data type"
    },
    "config":{...}
}

Error

  • Human readable explanation of current error; this field exists only if the status is erroneous.

  • Make sure to remove this field from the json in the event that the error has expired or is not informative

  • If an error occurs, the status page responds in yellow color for the ORBS-VM representation box and shows text about the error.

Status

  • Human readable explanation of current status; this field always exists.

Timestamp

  • Used by status to determined validity of a ORBS-VM status.

Payload.Version.Semantic

  • Shows which ORBS-VM version is running, and on which node.

config

  • It is advised to export whatever external config is used by the ORBS-VM instance for debug and monitoring purposes.

json folder

Since the working folder of the ORBS-VM is /opt/orbs, the fill path of the status, in the container's terms is /opt/orbs/status/status.json

In your code, you should simply write to ./status/status.json

e.g

    writeFileSync('./status/status.json', JSON.stringify(myStatus));

Noe that once status is implemented, you should make sure your HEALTHCECK manages to read it properly and calculate it's recency in the Timestamp field

Shows the latest write time of the file in format .

The legacy orbs-v2 service can be found

ISO
here
orbs status page
described here