Skip to content
[monitor] UI dashboard for monitoring kerjaan by sarjana.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.example
.gitignore
LICENSE
Procfile
README.md
index.js
package.json
screenshot.png
yarn.lock

README.md

pengangguran

UI dashboard for monitoring kerjaan by sarjana.

Screenshot

screenshot

Technology stacks

  • Express as Web Server
  • Arena as The Monitor
  • Redis as In-memory database. Shared usage with sarjana.

Prerequisites

  • Make sure Node.js & Yarn are installed
  • Make sure Redis was installed
  • Make sure Redis was running

Development

  • Clone this repo
  • Install dependencies (yarn install)
  • Run (yarn start)
  • Done

Configuration

Take a look to arenaConfig variable, and change it with your own needs:

const arenaConfig = new Arena({
  queues: [
    {
      name: '<queue_name>',
      hostId: '<arena_identifier>',
      prefix: '<prefix_same_as_used_with_our_worker>',
      redis: process.env.NODE_ENV === 'production' ? process.env.REDIS_URL : ''
    }
  ]
}, { disableListen: true, basePath: '/arena' })

If our worker has queue name get data with prefix sarjana, so it should be monitor that worker.

After all done, you can access your UI dashboard by visiting /arena (see basePath). You need to set SECRET_WORD env variables to prevent the bad folk trying to access your UI (so they can delete/update any failed/pending jobs)

Deployment

Nothing special step here.

Demo

https://pengangguran.108kb.io, obviously.

LICENSE

The MIT License (MIT)
Copyright (c) 2019 Fariz Rizaldy


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
You can’t perform that action at this time.