A simple dashboard for monitoring GitLab CI builds. Alpha version.
A simple dashboard for monitoring GitLab CI builds. Alpha version.
Gitlab Support: 9.0 (API V4)
This project runs completely in the browser. It expects a few parameters in the query string:
use_cookie
)At least one of groups
or projects
need to be set.
Example:
http://gitlab-ci-monitor.example.com/?gitlab=gitlab.example.com&token=12345&projects=namespace/project1/master,namespace/project1/branch1,namespace/project2/master&order=status.desc,project,author.asc
With these parameters, it will try to fetch the list of projects that this token has access. Then, it will filter the list by the projects parameter and show only the ones that have builds (i.e., that have GitLab CI enabled).
If you set groups
it will show the status of the default branch of those
projects in the group, which are active and have jobs enabled.
Example:
https://gitlab.example.com/?token=use_cookie&groups=group1,base/group2,group3
This requires installation on the gitlab server. With these parameters you see the pipeline state of the default branch of all projects in groups group1, base/group2 and group3.
rm -rf /usr/local/share/gitlab/monitor
mkdir -p /usr/local/share/gitlab/monitor
curl -s -L https://github.com/globocom/gitlab-ci-monitor/archive/master.tar.gz | tar xz -C /usr/local/share/gitlab/monitor --strip-components=1
or
make install
/etc/gitlab/gitlab.rb
(the entry already exists but it commented):nginx['custom_gitlab_server_config'] = <<-NGINX_CONF
location /_internal/monitor/ {
index index.html;
proxy_cache gitlab;
alias /usr/local/share/gitlab/monitor/;
}
NGINX_CONF
gitlab-ctl reconfigure
gitlab
and set token=use_cookie
GitLab CI Monitor is licensed under the MIT license.