Files
project-config/grafana/zuul-launcher-ir.template
James E. Blair d06a48229f Revise zuul-launcher dashboards
This makes the following changes to the zuul-launcher dashboards:
* Adds gauges that show current/max quota values for
  instances, cores, ram
* Converts the template from YAML to JSON due to the complexity
  required for the gauges
* Since it's not easy to template which quota values are present,
  two templates are provided: one with all 3, and another with only
  instances and ram (for rax)
* Updates the test node history graph to stack (so that we can compare
  the total of building+ready+used+etc to the max line (the max line
  is not stacked)
* Adds a 10% opaque background to all lines except max to make
  the stacking more apparent
* Adds a "requested" node state (which is new in niz)
* Removes the unused "deleted" singlestat and replaces it with
  "requested"

Change-Id: I0d3f28d46fc4bf272bcd3246ce18476073220d73
2025-07-02 09:14:06 -07:00

718 lines
17 KiB
Plaintext

{
"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": 28,
"links": [],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"panels": [],
"title": "Description",
"type": "row"
},
{
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 1
},
"id": 1,
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
"content": "%PROVIDER% Zuul-Launcher Status\n========================\n\nThis dashboard monitors the status of Zuul Launcher in %PROVIDER%.\n\n**This dashboard is managed by [Grafyaml](https://docs.openstack.org/infra/system-config/grafyaml.html).**\nIf you would like to make changes to this dashboard, please see the template in the `grafana` directory in\n[project-config](https://opendev.org/openstack/project-config/src/branch/master/grafana/%TEMPLATE%).\n",
"mode": "markdown"
},
"pluginVersion": "12.0.2",
"title": "",
"type": "text"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 7,
"panels": [],
"title": "Nodes",
"type": "row"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 6
},
"id": 10,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "A",
"target": "sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.requested)"
}
],
"title": "Requested",
"type": "stat"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 6
},
"id": 3,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.building)"
}
],
"title": "Building",
"type": "stat"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 6
},
"id": 4,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.ready)"
}
],
"title": "Ready",
"type": "stat"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "rgb(31, 120, 193)",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 6
},
"id": 5,
"maxDataPoints": 100,
"options": {
"colorMode": "none",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.0.2",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refId": "A",
"target": "sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.in-use)"
}
],
"title": "In Use",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 10
},
"id": 11,
"panels": [],
"title": "Resources",
"type": "row"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"fieldMinMax": false,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 90
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "RAM"
},
"properties": [
{
"id": "unit",
"value": "mbytes"
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 24,
"x": 0,
"y": 11
},
"id": 13,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto",
"text": {
"titleSize": 12
}
},
"pluginVersion": "12.0.2",
"repeat": "region",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"hide": false,
"refCount": 0,
"refId": "A",
"target": "alias(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.usage.instances, 'Instances')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"hide": false,
"refCount": 0,
"refId": "B",
"target": "alias(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.limit.instances, 'instance limit')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"hide": false,
"refCount": 0,
"refId": "E",
"target": "alias(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.usage.ram, 'RAM')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"hide": false,
"refCount": 0,
"refId": "F",
"target": "alias(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.limit.ram, 'ram limit')"
}
],
"title": "Resources - $region",
"transformations": [
{
"id": "configFromData",
"options": {
"applyTo": {
"id": "byName",
"options": "Instances"
},
"configRefId": "B",
"mappings": [
{
"fieldName": "instance limit",
"handlerKey": "max"
}
]
}
},
{
"id": "configFromData",
"options": {
"applyTo": {
"id": "byName",
"options": "RAM"
},
"configRefId": "F",
"mappings": [
{
"fieldName": "ram limit",
"handlerKey": "max"
}
]
}
}
],
"type": "gauge"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
},
"id": 9,
"panels": [],
"title": "Test Nodes",
"type": "row"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Max"
},
"properties": [
{
"id": "custom.stacking",
"value": {
"group": "A",
"mode": "none"
}
},
{
"id": "custom.fillOpacity",
"value": 0
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 17
},
"id": 8,
"maxPerRow": 3,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.0.2",
"repeat": "region",
"repeatDirection": "h",
"targets": [
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "A",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.building), 'Building')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "B",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.ready), 'Ready')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "C",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.in-use), 'In Use')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "D",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.used), 'Used')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "E",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.nodes.state.requested), 'Requested')"
},
{
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"refCount": 0,
"refId": "F",
"target": "alias(sumSeries(stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-$region-main.limit.instances), 'Max')"
}
],
"title": "Test Node History - $region",
"type": "timeseries"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"current": {
"text": "All",
"value": "$__all"
},
"datasource": {
"type": "graphite",
"uid": "d9c17c45a8"
},
"definition": "",
"includeAll": true,
"multi": true,
"name": "region",
"options": [],
"query": {
"queryType": "Default",
"refId": "A",
"target": "stats.gauges.zuul.provider.opendev_org2Fopendev2Fzuul-providers-%STAT_LIST%-*-main"
},
"refresh": 1,
"regex": "/.*?zuul-providers-(%STAT_LIST%-.*?)-main/",
"type": "query"
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {},
"timezone": "utc",
"title": "Zuul Launcher: %PROVIDER%",
"uid": "4caebcfd-6337-4321-826f-b78ef7a4a937",
"version": 4
}