DEV Community

loading...
Cover image for Monitoror - Gitlab

Monitoror - Gitlab

Vu Dao
Awesome Devops || AWS SA || CloudOpz
Updated on ・1 min read

This post describe how to add gitlab pipeline jobs to monitoror dashboard
Alt Text

GITLAB-PIPELINE

Add configs to env

MO_CONFIG_GITLAB=/monitoror/config_gitlab.json
MO_MONITORABLE_GITLAB_URL=https://gitlab.com
MO_MONITORABLE_GITLAB_TOKEN=GwLzYzJh4bezFctgwQDY
MO_MONITORABLE_GITLAB_TIMEOUT=5000
How to generate gitlab token
Enter fullscreen mode Exit fullscreen mode

Create config_gitlab.json

  • Group a project as a tile group and branches are its element
  • Add HTTP-RAW for site demo to monitoring its version (meta.txt)
{
   "version":"2.0",
   "columns":2,
   "tiles":[
      {
         "type":"GROUP",
         "label":"MyProject - CI Jobs Running",
         "rowSpan":4,
         "tiles":[
            {
               "type":"GITLAB-PIPELINE",
               "label":"MyProject",
               "params":{
                  "projectId":21808445,
                  "ref":"master"
               }
            },
            {
               "type":"GITLAB-PIPELINE",
               "label":"MyProject",
               "params":{
                  "projectId":144,
                  "ref":"develop"
               }
            }
         ]
      },
      {
         "type":"GROUP",
         "label":"Serverless - CI Jobs Running",
         "rowSpan":4,
         "tiles":[
            {
               "type":"GITLAB-PIPELINE",
               "label":"Serverless",
               "params":{
                  "projectId":167,
                  "ref":"master"
               }
            },
            {
               "type":"GITLAB-PIPELINE",
               "label":"Serverless",
               "params":{
                  "projectId":167,
                  "ref":"develop"
               }
            }
         ]
      }
   ]
}
Enter fullscreen mode Exit fullscreen mode


Monitoror

Monitoror is a wallboard monitoring app to monitor server status; monitor CI builds progress or even display critical values.

Demo

Go to demo and run run.sh


Visit Monitoror demo

Getting started

Monitoror is a single file app written in Go which can be run on these platforms:

  • Linux (64bits, ARM)
  • macOS
  • Windows (64bits)

The app is divided into two parts: Core and UI.

Core is the server-side Monitoror HTTP API, configured by the environment variables or .env file.

UI is the client-side Monitoror loaded in browser, which is the wallboard itself.

Visit the Monitoror website for more details

Documentation

All details about installation and configuration are on our documentation

Development

See our development guide

To generate the dashboard of gitlab with multiple projects and multple branches

  • Use script to auto generate
python gen_conf.py

alt text






Generate config_gitlab.json with multiple projects and multiple branches

  • Use script to auto generate python gen_conf.py Alt Text

Mirror:

Discussion (0)

Forem Open with the Forem app