cluttrdev / gitlab-exporter

An exporter for GitLab observability and analytics.
MIT License
7 stars 1 forks source link

Grafana Dashboards #1

Open pathcl opened 4 months ago

pathcl commented 4 months ago

Hello there!

Thanks for making this project opensource. I was wondering if you have the grafana dashboards for this: https://raw.githubusercontent.com/cluttrdev/gitlab-exporter/main/assets/pipeline-trace.webp

Thanks in advance,

cluttrdev commented 4 months ago

Hi, glad I can contribute something that others find useful :) You can find the json model for this dashboard here.

pathcl commented 4 months ago

@cluttrdev thanks for the quick reply! if I understood correctly I'd need a clickhouse instance right ?

cluttrdev commented 4 months ago

Yes and no.

Before v0.5.0 the data storage logic was implemented directly in the gitlab-exporter which meant that you required a ClickHouse database, because that's what I chose as a storage backend. Now, it's more flexible since I split it in two parts. The gitlab-exporter is basically just a client that fetches the data from GitLab and sends it to configured servers which must implement a specific interface but can use a storage backend of their choice. One such server implementation, naturally, is gitlab-clickhouse-exporter (may have to come up with a better name to make the distinction clearer).

If you're fine with using ClickHouse there's a docker-compose example to help getting started and I'm currently working on an example for a kubernetes deployment.

If you tell me the storage backend you'd like to use (which would then be the data source in Grafana, for example) maybe I can implement the corresponding server. Might be a fun exercise to make sure this approach really is as flexible as I imagine.

pathcl commented 4 months ago

Thanks for the detailed explanation @cluttrdev ! . Honestly Im fine using ClickHouse.The most interesting part for me is enable trace for pipelines as is shown here: https://github.com/cluttrdev/gitlab-exporter/blob/main/assets/pipeline-trace.webp