DEV Community

Cover image for Monitoror - Gitlab
πŸš€ Vu Dao πŸš€
πŸš€ Vu Dao πŸš€

Posted on β€’ Edited on

1 3

Monitoror - Gitlab

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:

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more