mirror of
https://github.com/ghndrx/docker-compose.git
synced 2026-02-10 06:45:14 +00:00
1186 lines
32 KiB
JSON
1186 lines
32 KiB
JSON
{
|
||
"annotations": {
|
||
"list": [
|
||
{
|
||
"builtIn": 1,
|
||
"datasource": {
|
||
"type": "grafana",
|
||
"uid": "-- Grafana --"
|
||
},
|
||
"enable": true,
|
||
"hide": true,
|
||
"iconColor": "rgba(0, 211, 255, 1)",
|
||
"name": "Annotations & Alerts",
|
||
"type": "dashboard"
|
||
}
|
||
]
|
||
},
|
||
"description": "",
|
||
"editable": true,
|
||
"fiscalYearStartMonth": 0,
|
||
"graphTooltip": 0,
|
||
"id": 1,
|
||
"links": [],
|
||
"liveNow": false,
|
||
"panels": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"description": "Jenkins Status",
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [
|
||
{
|
||
"options": {
|
||
"0": {
|
||
"color": "red",
|
||
"index": 1,
|
||
"text": "DOWN"
|
||
},
|
||
"1": {
|
||
"color": "green",
|
||
"index": 0,
|
||
"text": "UP"
|
||
}
|
||
},
|
||
"type": "value"
|
||
}
|
||
],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 3,
|
||
"x": 0,
|
||
"y": 0
|
||
},
|
||
"id": 1,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "area",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_node_online_value",
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Jenkins Status",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "palette-classic"
|
||
},
|
||
"custom": {
|
||
"hideFrom": {
|
||
"legend": false,
|
||
"tooltip": false,
|
||
"viz": false
|
||
}
|
||
},
|
||
"mappings": []
|
||
},
|
||
"overrides": [
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "Success"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "color",
|
||
"value": {
|
||
"fixedColor": "green",
|
||
"mode": "fixed"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "Failure"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "color",
|
||
"value": {
|
||
"fixedColor": "red",
|
||
"mode": "fixed"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "Aborted"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "color",
|
||
"value": {
|
||
"fixedColor": "orange",
|
||
"mode": "fixed"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "Unstable"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "color",
|
||
"value": {
|
||
"fixedColor": "purple",
|
||
"mode": "fixed"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"gridPos": {
|
||
"h": 16,
|
||
"w": 6,
|
||
"x": 3,
|
||
"y": 0
|
||
},
|
||
"id": 6,
|
||
"options": {
|
||
"displayLabels": [
|
||
"value",
|
||
"name"
|
||
],
|
||
"legend": {
|
||
"displayMode": "list",
|
||
"placement": "bottom",
|
||
"showLegend": true
|
||
},
|
||
"pieType": "pie",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"tooltip": {
|
||
"mode": "single",
|
||
"sort": "none"
|
||
}
|
||
},
|
||
"targets": [
|
||
{
|
||
"alias": "Success",
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "SELECT count(build_number) FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND (\"build_result\" = 'SUCCESS' OR \"build_result\" = 'CompletedSuccess' ) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
},
|
||
{
|
||
"alias": "Failure",
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"hide": false,
|
||
"query": "SELECT count(build_number) FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND (\"build_result\" = 'FAILURE' OR \"build_result\" = 'CompletedError' ) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "B",
|
||
"resultFormat": "time_series"
|
||
},
|
||
{
|
||
"alias": "Aborted",
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"hide": false,
|
||
"query": "SELECT count(build_number) FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND (\"build_result\" = 'ABORTED' OR \"build_result\" = 'Aborted' ) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "C",
|
||
"resultFormat": "time_series"
|
||
},
|
||
{
|
||
"alias": "Unstable",
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"hide": false,
|
||
"query": "SELECT count(build_number) FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND (\"build_result\" = 'UNSTABLE' OR \"build_result\" = 'Unstable' ) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "D",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Overall",
|
||
"type": "piechart"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 3,
|
||
"x": 9,
|
||
"y": 0
|
||
},
|
||
"id": 5,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "area",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "select count(DISTINCT project_name) FROM jenkins_data WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Number of Pipelines Ran",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 3,
|
||
"x": 12,
|
||
"y": 0
|
||
},
|
||
"id": 7,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "area",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "SELECT count(build_number) FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Total number of builds",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
},
|
||
"unit": "clocks"
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 3,
|
||
"x": 15,
|
||
"y": 0
|
||
},
|
||
"id": 8,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "none",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "value"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "select build_time/1000 FROM jenkins_data WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Average Build Time ",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 2,
|
||
"x": 18,
|
||
"y": 0
|
||
},
|
||
"id": 2,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "none",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_plugins_active",
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Active Plugins",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 2,
|
||
"x": 20,
|
||
"y": 0
|
||
},
|
||
"id": 4,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "none",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_plugins_withUpdate",
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Plugins with Updates",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 2,
|
||
"x": 22,
|
||
"y": 0
|
||
},
|
||
"id": 3,
|
||
"options": {
|
||
"colorMode": "value",
|
||
"graphMode": "none",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_plugins_inactive",
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "A"
|
||
}
|
||
],
|
||
"title": "Inactive Plugins",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "thresholds"
|
||
},
|
||
"mappings": [
|
||
{
|
||
"options": {
|
||
"ABORTED": {
|
||
"color": "yellow",
|
||
"index": 0,
|
||
"text": "Aborted"
|
||
},
|
||
"FAILURE": {
|
||
"color": "red",
|
||
"index": 2,
|
||
"text": "Failure"
|
||
},
|
||
"SUCCESS": {
|
||
"color": "green",
|
||
"index": 1,
|
||
"text": "Success"
|
||
},
|
||
"UNSTABLE": {
|
||
"color": "purple",
|
||
"index": 3,
|
||
"text": "Unstable"
|
||
}
|
||
},
|
||
"type": "value"
|
||
}
|
||
],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": []
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 3,
|
||
"x": 0,
|
||
"y": 8
|
||
},
|
||
"id": 9,
|
||
"options": {
|
||
"colorMode": "background",
|
||
"graphMode": "area",
|
||
"justifyMode": "auto",
|
||
"orientation": "auto",
|
||
"reduceOptions": {
|
||
"calcs": [
|
||
"lastNotNull"
|
||
],
|
||
"fields": "/^jenkins_data\\.build_result$/",
|
||
"values": false
|
||
},
|
||
"textMode": "auto"
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "SELECT build_result FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND $timeFilter ORDER BY time DESC LIMIT 1",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Latest Build Status",
|
||
"type": "stat"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"mode": "palette-classic"
|
||
},
|
||
"custom": {
|
||
"axisCenteredZero": false,
|
||
"axisColorMode": "text",
|
||
"axisLabel": "",
|
||
"axisPlacement": "auto",
|
||
"barAlignment": 0,
|
||
"drawStyle": "line",
|
||
"fillOpacity": 0,
|
||
"gradientMode": "none",
|
||
"hideFrom": {
|
||
"legend": false,
|
||
"tooltip": false,
|
||
"viz": false
|
||
},
|
||
"insertNulls": false,
|
||
"lineInterpolation": "linear",
|
||
"lineWidth": 1,
|
||
"pointSize": 5,
|
||
"scaleDistribution": {
|
||
"type": "linear"
|
||
},
|
||
"showPoints": "auto",
|
||
"spanNulls": false,
|
||
"stacking": {
|
||
"group": "A",
|
||
"mode": "none"
|
||
},
|
||
"thresholdsStyle": {
|
||
"mode": "off"
|
||
}
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
},
|
||
{
|
||
"color": "red",
|
||
"value": 80
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": [
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "{__name__=\"jenkins_executor_count_value\", instance=\"10.1.10.26:8080\", job=\"jenkins\"}"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Executor Count"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "{__name__=\"jenkins_queue_size_value\", instance=\"10.1.10.26:8080\", job=\"jenkins\"}"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Queue Size"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "{__name__=\"jenkins_node_count_value\", instance=\"10.1.10.26:8080\", job=\"jenkins\"}"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Node Count"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 15,
|
||
"x": 9,
|
||
"y": 8
|
||
},
|
||
"id": 11,
|
||
"options": {
|
||
"legend": {
|
||
"calcs": [],
|
||
"displayMode": "list",
|
||
"placement": "bottom",
|
||
"showLegend": true
|
||
},
|
||
"tooltip": {
|
||
"mode": "single",
|
||
"sort": "none"
|
||
}
|
||
},
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_executor_count_value\r\n",
|
||
"instant": false,
|
||
"interval": "",
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "A"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_queue_size_value",
|
||
"hide": false,
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "B"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "prometheus",
|
||
"uid": "eb3234ad-8489-410b-a297-cee8c2b81b16"
|
||
},
|
||
"editorMode": "code",
|
||
"expr": "jenkins_node_count_value",
|
||
"hide": false,
|
||
"instant": false,
|
||
"legendFormat": "__auto",
|
||
"range": true,
|
||
"refId": "C"
|
||
}
|
||
],
|
||
"title": "Jenkins node, queue, executor stats",
|
||
"type": "timeseries"
|
||
},
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"fieldConfig": {
|
||
"defaults": {
|
||
"color": {
|
||
"fixedColor": "transparent",
|
||
"mode": "fixed"
|
||
},
|
||
"custom": {
|
||
"align": "center",
|
||
"cellOptions": {
|
||
"mode": "gradient",
|
||
"type": "color-background"
|
||
},
|
||
"filterable": true,
|
||
"inspect": false
|
||
},
|
||
"mappings": [],
|
||
"thresholds": {
|
||
"mode": "absolute",
|
||
"steps": [
|
||
{
|
||
"color": "green",
|
||
"value": null
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overrides": [
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "Time"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "custom.hidden",
|
||
"value": true
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.build_exec_time"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "unit",
|
||
"value": "dateTimeAsUS"
|
||
},
|
||
{
|
||
"id": "displayName",
|
||
"value": "Build Start"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.project_path"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Pipeline Path"
|
||
},
|
||
{
|
||
"id": "links",
|
||
"value": [
|
||
{
|
||
"title": "Jenkins Job",
|
||
"url": "http://10.1.10.26:8080/job/${__data.fields[\"jenkins_data.project_path\"]}/${__data.fields[\"jenkins_data.build_number\"]}"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "mappings",
|
||
"value": [
|
||
{
|
||
"options": {
|
||
"pattern": "/(\\/)/g",
|
||
"result": {
|
||
"index": 0,
|
||
"text": "/job$1"
|
||
}
|
||
},
|
||
"type": "regex"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.build_number"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Build Number"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.build_causer"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Causer"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.build_time"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Build Time"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"matcher": {
|
||
"id": "byName",
|
||
"options": "jenkins_data.build_result"
|
||
},
|
||
"properties": [
|
||
{
|
||
"id": "displayName",
|
||
"value": "Build Result"
|
||
},
|
||
{
|
||
"id": "mappings",
|
||
"value": [
|
||
{
|
||
"options": {
|
||
"ABORTED": {
|
||
"color": "orange",
|
||
"index": 3,
|
||
"text": "Aborted"
|
||
},
|
||
"FAILURE": {
|
||
"color": "red",
|
||
"index": 1,
|
||
"text": "Failure"
|
||
},
|
||
"SUCCESS": {
|
||
"color": "green",
|
||
"index": 0,
|
||
"text": "Success"
|
||
},
|
||
"UNSTABLE": {
|
||
"color": "purple",
|
||
"index": 2,
|
||
"text": "Unstable"
|
||
}
|
||
},
|
||
"type": "value"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"gridPos": {
|
||
"h": 13,
|
||
"w": 24,
|
||
"x": 0,
|
||
"y": 16
|
||
},
|
||
"id": 10,
|
||
"options": {
|
||
"cellHeight": "sm",
|
||
"footer": {
|
||
"countRows": false,
|
||
"fields": "",
|
||
"reducer": [
|
||
"sum"
|
||
],
|
||
"show": false
|
||
},
|
||
"showHeader": true
|
||
},
|
||
"pluginVersion": "10.1.5",
|
||
"targets": [
|
||
{
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"query": "SELECT \"build_exec_time\",\"project_path\",\"build_number\",\"build_causer\",\"build_time\",\"build_result\" FROM \"jenkins_data\" WHERE (\"project_name\" =~ /^(?i)$job$/ AND \"project_path\" =~ /.*(?i)$folder.*$/) AND $timeFilter ",
|
||
"rawQuery": true,
|
||
"refId": "A",
|
||
"resultFormat": "time_series"
|
||
}
|
||
],
|
||
"title": "Build Details",
|
||
"transformations": [
|
||
{
|
||
"id": "joinByField",
|
||
"options": {}
|
||
}
|
||
],
|
||
"type": "table"
|
||
}
|
||
],
|
||
"refresh": "",
|
||
"schemaVersion": 38,
|
||
"style": "dark",
|
||
"tags": [],
|
||
"templating": {
|
||
"list": [
|
||
{
|
||
"current": {
|
||
"selected": false,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"definition": "SHOW TAG VALUES FROM job WITH KEY = \"owner\"\n",
|
||
"description": "folder",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": "Folder",
|
||
"multi": false,
|
||
"name": "folder",
|
||
"options": [],
|
||
"query": "SHOW TAG VALUES FROM job WITH KEY = \"owner\"\n",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 0,
|
||
"type": "query"
|
||
},
|
||
{
|
||
"current": {
|
||
"selected": false,
|
||
"text": "All",
|
||
"value": "$__all"
|
||
},
|
||
"datasource": {
|
||
"type": "influxdb",
|
||
"uid": "c9700b4e-79ba-4648-991c-de4e9525cb4e"
|
||
},
|
||
"definition": "SHOW TAG VALUES FROM job WITH KEY = repo WHERE \"owner\" =~ /^($folder)$/",
|
||
"description": "job",
|
||
"hide": 0,
|
||
"includeAll": true,
|
||
"label": "Job",
|
||
"multi": false,
|
||
"name": "job",
|
||
"options": [],
|
||
"query": "SHOW TAG VALUES FROM job WITH KEY = repo WHERE \"owner\" =~ /^($folder)$/",
|
||
"refresh": 1,
|
||
"regex": "",
|
||
"skipUrlSync": false,
|
||
"sort": 0,
|
||
"type": "query"
|
||
}
|
||
]
|
||
},
|
||
"time": {
|
||
"from": "now-6h",
|
||
"to": "now"
|
||
},
|
||
"timepicker": {},
|
||
"timezone": "",
|
||
"title": "Jenkins Dashboard",
|
||
"uid": "f5583e67-c225-4b92-80e9-368d1b0a0032",
|
||
"version": 10,
|
||
"weekStart": ""
|
||
} |