Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/quickstart/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3.8'
version: "3.8"
services:
gitlab-ci-pipelines-exporter:
image: quay.io/mvisonneau/gitlab-ci-pipelines-exporter:v0.5.5
Expand Down Expand Up @@ -31,7 +31,7 @@ services:
ports:
- 3000:3000
environment:
GF_AUTH_ANONYMOUS_ENABLED: 'true'
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_INSTALL_PLUGINS: grafana-polystat-panel,yesoreyeram-boomtable-panel
links:
- prometheus
Expand Down
4 changes: 2 additions & 2 deletions examples/quickstart/gitlab-ci-pipelines-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ log:
level: debug

gitlab:
url: https://gitlab.com
token: <your_token>
url: https://https://gitlab.cee.redhat.com/
token: ${GCPE_GITLAB_TOKEN}

# Pull jobs related metrics on all projects
project_defaults:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: 1

datasources:
# - name: Volkov Labs RSS
# type: volkovlabs-rss-datasource
# access: proxy
# isDefault: true
# uid: rZAdZdf7a
# orgId: 1
# version: 1
# editable: true
# jsonData:
# feed: https://volkovlabs.io/blog/rss.xml
# - name: Volkov Labs YouTube
# type: volkovlabs-rss-datasource
# access: proxy
# orgId: 1
# uid: rZAdZdf82
# version: 1
# editable: true
# jsonData:
# feed: https://www.youtube.com/feeds/videos.xml?channel_id=UCQadniwbukI6ZmTN2oTTb-g
- name: Static
type: marcusolsson-static-datasource
access: proxy
orgId: 1
uid: U0HP2Rv4z
7 changes: 7 additions & 0 deletions examples/quickstart/provisioning/dashboards/defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: 1

providers:
- name: Default # A uniquely identifiable name for the provider
type: file
options:
path: /etc/grafana/provisioning/dashboards
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 6,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "e0926d16-b782-4e30-a478-b8d2a6036775"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"orgSlug!='grafana'": {
"color": "yellow",
"index": 1
},
"orgSlug=='grafana'": {
"color": "green",
"index": 0
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 20,
"w": 16,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"annotations": false,
"annotationsLimit": 100,
"annotationsType": "",
"autoScroll": true,
"calendarType": "bigCalendar",
"colors": "frame",
"descriptionField": "description",
"displayTime": false,
"quickLinks": false,
"textField": "name",
"timeField": "updatedAt"
},
"pluginVersion": "9.5.2",
"targets": [
{
"cacheDurationSeconds": 300,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "e0926d16-b782-4e30-a478-b8d2a6036775"
},
"fields": [
{
"jsonPath": "$.items[*].name"
},
{
"jsonPath": "$.items[*].description",
"language": "jsonpath",
"name": ""
},
{
"jsonPath": "$.items[*].updatedAt",
"language": "jsonpath",
"name": ""
}
],
"method": "GET",
"queryParams": "",
"refId": "A",
"urlPath": ""
}
],
"title": "All available plugins",
"type": "marcusolsson-calendar-panel"
},
{
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "e0926d16-b782-4e30-a478-b8d2a6036775"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 20,
"w": 16,
"x": 0,
"y": 20
},
"id": 2,
"options": {
"annotations": false,
"annotationsLimit": 100,
"annotationsType": "",
"autoScroll": true,
"calendarType": "bigCalendar",
"colors": "frame",
"descriptionField": "description",
"displayTime": false,
"quickLinks": false,
"textField": "name",
"timeField": "updatedAt"
},
"pluginVersion": "9.5.2",
"targets": [
{
"cacheDurationSeconds": 300,
"datasource": {
"type": "marcusolsson-json-datasource",
"uid": "e0926d16-b782-4e30-a478-b8d2a6036775"
},
"fields": [
{
"jsonPath": "$.items[?(@.orgSlug == 'grafana')].name",
"name": ""
},
{
"jsonPath": "$.items[?(@.orgSlug == 'grafana')].description",
"language": "jsonpath",
"name": ""
},
{
"jsonPath": "$.items[?(@.orgSlug == 'grafana')].updatedAt ",
"language": "jsonpath",
"name": ""
}
],
"hide": false,
"method": "GET",
"queryParams": "",
"refId": "B",
"urlPath": ""
}
],
"title": "Only Grafana authored plugins",
"type": "marcusolsson-calendar-panel"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Plugins calendar",
"uid": "b4f075b8-115b-497b-a845-65cd6911559b",
"version": 7,
"weekStart": ""
}