{"id":21361552,"url":"https://github.com/orbs-network/health-check","last_synced_at":"2025-03-16T06:44:09.137Z","repository":{"id":54092700,"uuid":"199811750","full_name":"orbs-network/health-check","owner":"orbs-network","description":"Contract + cron jobs that sends transaction every min","archived":false,"fork":false,"pushed_at":"2021-03-09T13:31:44.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T19:16:14.544Z","etag":null,"topics":["health-check","heartbeat","monitoring","stability"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orbs-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-31T08:17:21.000Z","updated_at":"2019-09-19T11:33:24.000Z","dependencies_parsed_at":"2022-08-13T06:40:34.243Z","dependency_job_id":null,"html_url":"https://github.com/orbs-network/health-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbs-network%2Fhealth-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbs-network%2Fhealth-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbs-network%2Fhealth-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbs-network%2Fhealth-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orbs-network","download_url":"https://codeload.github.com/orbs-network/health-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835937,"owners_count":20355611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["health-check","heartbeat","monitoring","stability"],"created_at":"2024-11-22T06:10:16.275Z","updated_at":"2025-03-16T06:44:09.093Z","avatar_url":"https://github.com/orbs-network.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Health Check\n\u003e Orbs network node heart beat\n\n## Overview\nHealth-check is a set of checks performed against various vchains. Each check sends a transaction at a given period of time. \u003cbr /\u003e\nMetrics are read from nodes. If the node is healthy, we should see the transactions in [graphana dashboard](https://orbsnetwork.grafana.net/d/a-3pW-3mk/orbs-production).\n\n## Adding health check\n### 1. Add check file\nFolder `/src` contains files with checks. Create a new file with relevant call. \u003cbr /\u003e\n**Important!** It's your responsibility to invoke the function periodically. You can do it either by `setInterval` or using any other library for cron jobs.\n\n### 2. Invoke your check\nEdit `index.js` file to add another fork process. Your check will run as a separate process independently from others, meaning, if other checks throw exception, your process will keep running.\n\n## Deployment\n1. Open a terminal\n1. `ssh -o StrictHostKeyChecking=no ubuntu@13.57.221.146` [assuming you have a valid certificate to enter]\n1. `cd /opt/health-check/`\n1. `git pull`\n1. Kill previous process `screen -S healthcheck -X quit`\n1. Start a new detached process `screen -dmS healthcheck npm start`\n\n## Licence\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbs-network%2Fhealth-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forbs-network%2Fhealth-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbs-network%2Fhealth-check/lists"}