gitlab-ci-pipelines-exporter
gitlab-ci-pipelines-exporter copied to clipboard
mordenised, remove polystat dep., fix data links, remove logo dep.
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
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? 🤔
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? 🤔
Yes it works out of the box for me. What are the errors you get? 🤔
Here is the main error AFAICT: Failed to upgrade legacy queries Datasource ${DS_PROMETHEUS} was not found
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?
I'm simply trying out the examples/quickstart procedure.