Support for gitlab-metrics-exporter
Overview
We are replacing the Ruby server that serves application metrics into Prometheus with a Golang server written from scratch: https://gitlab.com/gitlab-org/gitlab-metrics-exporter
In the first iteration of this system, it will run as a sidecar process to Rails and Sidekiq, read their mmap
metric files, and serve them via /metrics
. The server is started by the application during boot.
This should all happen transparently to users and developers, so we need to provide Makefiles and related build setup to checkout, build, and install the server binary in GDK, and put it on PATH
so that Rails/Sidekiq can see it.
We can use similar integrations as a blueprint, for instance gitlab-elasticsearch-indexer
.
Related links
- Rails integration issue: gitlab-metrics-exporter#3 (closed)
- ESI integration: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/support/makefiles/Makefile.gitlab-elasticsearch.mk
- GCK integration: gitlab-compose-kit!199 (merged)
Edited by Matthias Käppler