gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

mordenised, remove polystat dep., fix data links, remove logo dep.

Open R-Studio opened this issue 10 months ago • 5 comments

What I changed:

  • Mordenised (Remove deprecated Angular plugins "Graph plugin")
  • Remove dependencies to
    • grafana-polystat-panel -> Replaced by built-in plugin "stat"
    • GitLab logo (for air-gapped Grafana instances)
  • Fixed data links in dashboards
  • Make Prometheus data source selectable (for multi cluster setups)
  • Export the dashboards for externally (remove hardcoded data source, ...)
  • Added dashboard label
  • ...

If you need the entire commit history, take a look: https://github.com/onzack/grafana-dashboards/tree/main/grafana/gitlab-ci-pipelines-exporter

If someone uses the Grafana Operator, they can import it with a GrafanaDashboard custom resource like the following example:

---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard 
metadata:
  name: gitlab-ci-environments
  labels:
    app: grafana
spec:
  instanceSelector:
    matchLabels:
      grafanaInstance: main
  allowCrossNamespaceImport: true
  datasources:
    - inputName: DS_PROMETHEUS
      datasourceName: ${datasource}
    # Workaround: use "datasources" to overwrite template variable
    - inputName: VAR_GITLAB_HOST
      datasourceName: <YOUR_GITLAB_URL>
  contentCacheDuration: 1h
  folder: "GitLab"
  url: https://raw.githubusercontent.com/onzack/grafana-dashboards/main/grafana/gitlab-ci-pipelines-exporter/environments.json

R-Studio avatar Apr 12 '24 09:04 R-Studio

thanks for your contribution @R-Studio, unfortunately I did not seem to be able to get any dashboard to work out of the box with your branch? 🤔 image

mvisonneau avatar Apr 17 '24 16:04 mvisonneau

thanks for your contribution @R-Studio, unfortunately I did not seem to be able to get any dashboard to work out of the box with your branch? 🤔 image

Yes it works out of the box for me. What are the errors you get? 🤔

R-Studio avatar Apr 18 '24 05:04 R-Studio

Here is the main error AFAICT: Failed to upgrade legacy queries Datasource ${DS_PROMETHEUS} was not found

mvisonneau avatar Apr 18 '24 07:04 mvisonneau

Here is the main error AFAICT: Failed to upgrade legacy queries Datasource ${DS_PROMETHEUS} was not found

How do you import the dashboard, via WebUI?

R-Studio avatar Apr 19 '24 06:04 R-Studio

I'm simply trying out the examples/quickstart procedure.

mvisonneau avatar Apr 29 '24 09:04 mvisonneau