Sign inSign up

nadavami/gitlab-dashboard-proxy

By nadavami

•Updated about 8 years ago

An event based cache for gitlab dashboards using webhooks.

Image
1

651

nadavami/gitlab-dashboard-proxy repository overview

⁠gitlab-dashboard-proxy

An event based cache for gitlab dashboards using webhooks.

⁠Install

docker pull nadavami/gitlab-dashboard-proxy

⁠Usage

  1. Start gitlab-dashboard-proxy using:
docker run -d -e GITLAB_URL=https://gitlab.com -p 8080:3000 nadavami/gitlab-dashboard-proxy
  1. Configure your dashboard to use <gitlab-dashboard-proxy url>/gitlab instead of GitLab's url.
  2. Configure your GitLab project or group to trigger a pipeline event webhook on <gitlab-dashboard-proxy url>/update.
  3. That's it!

⁠Routes

  • GET /gitlab -> Proxies connections to GitLab and caches requests for projects
  • POST /update -> Clears a single project's cache based on a GitLab pipeline webhook
  • GET /cache -> Returns a JSON object containing cached paths
  • GET /cache/clear -> Clears the entire cache

⁠Q&A

⁠When would I need this?

We DDoSed our GitLab instance after having many dashboards monitor many pipelines. Just adding a single display that polls every 10s visibly increases server load. This project provides an event based cache to shield GitLab from the large number of API requests.

⁠Wouldn't it be better to just have an event based pipeline dashboard?

Yes.⁠

Tag summary

Content type

Image

Digest

Size

47.1 MB

Last updated

about 8 years ago

docker pull nadavami/gitlab-dashboard-proxy