From 24b052b3f8e4e421d03d3f78ca69c7ed28351391 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Mon, 2 Oct 2023 14:28:11 +0200 Subject: [PATCH] Create grafana-dashboard-dora-metrics.configmap.yaml --- ...fana-dashboard-dora-metrics.configmap.yaml | 2357 +++++++++++++++++ 1 file changed, 2357 insertions(+) create mode 100644 dashboards/grafana-dashboard-dora-metrics.configmap.yaml diff --git a/dashboards/grafana-dashboard-dora-metrics.configmap.yaml b/dashboards/grafana-dashboard-dora-metrics.configmap.yaml new file mode 100644 index 0000000..eafdf16 --- /dev/null +++ b/dashboards/grafana-dashboard-dora-metrics.configmap.yaml @@ -0,0 +1,2357 @@ +apiVersion: v1 +data: + dora-metrics.json: |- + { + "__inputs": [ + { + "name": "DS_TELEMETER-RECENT-PRODUCTION", + "label": "telemeter-recent-production", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_RHTAP-OBSERVATORIUM-STAGE", + "label": "rhtap-observatorium-stage", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + }, + { + "name": "DS_RHTAP-OBSERVATORIUM-PRODUCTION", + "label": "rhtap-observatorium-production", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "alertlist", + "name": "Alert list", + "version": "" + }, + { + "type": "panel", + "id": "dashlist", + "name": "Dashboard list", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.3.8" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph (old)", + "version": "" + }, + { + "type": "panel", + "id": "heatmap", + "name": "Heatmap", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "table-old", + "name": "Table (old)", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "datasource": { + "type": "prometheus", + "uid": "PD776AFABBE26000A" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 4, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 9, + "w": 20, + "x": 0, + "y": 49 + }, + "id": 28, + "links": [], + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "# How to bulid a dashboard using this Playground\n\n## Full documentation on creating Dashboards\n\nhttps://gitlab.cee.redhat.com/service/app-interface/-/blob/master/docs/app-sre/monitoring.md#VisualizationwithGrafana\n\n## Getting started with the Playground dashboard\n\nBelow you wil find all available panels to be used for a dashboard.\n\nTo start, select a panel to use, and duplicate it (`Panel options > More > Duplicate`).\n\nDrag it to the top of the screen (above the Building blocks Row) and change the panel title, metrics, and any other settings as required.\n\n\n## Saving your dashboard to Grafana\n\nSince all dashboards are managed through source control, saving dashboards is not enabled.\n\nTo save your new dashboard, export it to a JSON file (through the options on the top right of the screen) and save it locally. You will now need to create a merge request to app-interface.\n\nPlease see: https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/docs/app-sre/monitoring.md#adding-dashboards\n\n## Tips and Tricks\n\n* Keep the `Building blocks` Row as part of the dashboard in case you require changes in the future\n* Export the dashboard with the `Building blocks` Row collapsed\n* Group panels together using a Row object (you may find some below)\n\n\nGood luck!", + "mode": "markdown" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Playground usage", + "type": "text" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 5, + "x": 0, + "y": 58 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.3.8", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Graph", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 5, + "y": 58 + }, + "id": 6, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "SingleStat", + "type": "stat" + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "fontSize": "100%", + "gridPos": { + "h": 7, + "w": 5, + "x": 10, + "y": 58 + }, + "id": 8, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "number", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Table", + "transform": "timeseries_to_columns", + "type": "table-old" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 15, + "y": 58 + }, + "id": 10, + "links": [], + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "# title", + "mode": "markdown" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Text", + "type": "text" + }, + { + "cards": {}, + "color": { + "cardColor": "#b4ff00", + "colorScale": "sqrt", + "colorScheme": "interpolateOranges", + "exponent": 0.5, + "mode": "spectrum" + }, + "dataFormat": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "scaleDistribution": { + "type": "linear" + } + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 0, + "y": 65 + }, + "heatmap": {}, + "hideZeroBuckets": false, + "highlightCards": true, + "id": 12, + "legend": { + "show": false + }, + "links": [], + "options": { + "calculate": true, + "calculation": {}, + "cellGap": 2, + "cellValues": {}, + "color": { + "exponent": 0.5, + "fill": "#b4ff00", + "mode": "scheme", + "reverse": false, + "scale": "exponential", + "scheme": "Oranges", + "steps": 128 + }, + "exemplars": { + "color": "rgba(255,0,255,0.7)" + }, + "filterValues": { + "le": 1e-9 + }, + "legend": { + "show": false + }, + "rowsFrame": { + "layout": "auto" + }, + "showValue": "never", + "tooltip": { + "show": true, + "yHistogram": false + }, + "yAxis": { + "axisPlacement": "left", + "reverse": false, + "unit": "short" + } + }, + "pluginVersion": "9.3.8", + "reverseYBuckets": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Heatmap", + "tooltip": { + "show": true, + "showHistogram": false + }, + "type": "heatmap", + "xAxis": { + "show": true + }, + "yAxis": { + "format": "short", + "logBase": 1, + "show": true + }, + "yBucketBound": "auto" + }, + { + "dashboardFilter": "", + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 5, + "y": 65 + }, + "id": 14, + "limit": 10, + "links": [], + "nameFilter": "", + "onlyAlertsOnDashboard": false, + "options": { + "alertInstanceLabelFilter": "", + "alertName": "", + "dashboardAlerts": false, + "groupBy": [], + "groupMode": "default", + "maxItems": 20, + "sortOrder": 1, + "stateFilter": { + "error": true, + "firing": true, + "noData": false, + "normal": false, + "pending": true + }, + "viewMode": "list" + }, + "show": "current", + "sortOrder": 1, + "stateFilter": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Alert list", + "type": "alertlist" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 10, + "y": 65 + }, + "id": 16, + "links": [], + "options": { + "maxItems": 10, + "query": "", + "showHeadings": true, + "showRecentlyViewed": false, + "showSearch": false, + "showStarred": true, + "tags": [] + }, + "pluginVersion": "9.3.8", + "tags": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Dashboard list", + "type": "dashlist" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 7, + "w": 5, + "x": 15, + "y": 65 + }, + "id": 20, + "links": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Plugin list", + "type": "pluginlist" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PD776AFABBE26000A" + }, + "refId": "A" + } + ], + "title": "Building blocks", + "type": "row" + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "PD776AFABBE26000A" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 22, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PD776AFABBE26000A" + }, + "refId": "A" + } + ], + "title": "Dora Metrics for RHTAP", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 4, + "w": 10, + "x": 0, + "y": 2 + }, + "id": 59, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "Values have to be intended as the global average of all clusters in stage enviroment.\n\nDeployment Frequency is referring to unique deployments (image_name/commit_hash) among all clusters in staging environments. \n", + "mode": "markdown" + }, + "pluginVersion": "9.3.8", + "title": "Stage", + "type": "text" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 4, + "w": 10, + "x": 10, + "y": 2 + }, + "id": 62, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "Values have to be intended as the global average of all clusters in production enviroment.\n\nDeployment Frequency is referring to unique deployments (image_name/commit_hash) among all clusters in production environments. \n\n", + "mode": "markdown" + }, + "pluginVersion": "9.3.8", + "title": "Production", + "type": "text" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "gridPos": { + "h": 24, + "w": 4, + "x": 20, + "y": 2 + }, + "id": 34, + "links": [], + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "**DEPLOYMENT FREQUENCY**\n\nTracks the number of successfull deployments over time. Here is displayed as the total count in the selected time range.\n\nData here is obtained from the Openshift cluster deployments metadata. \n\n**LEAD TIME FOR CHANGE**\n\nMeasures the time it takes for a code commit to successfully make it to production.\nHere is shown the average value of all successfull deployments in the selected time range.\n\nData here is obtained from the cluster deployments and Github's commit timestamps.\n\n**Change Failure Rate**\n\nDetermines the changes that lead to failures after they reach production.\nIt is calculated by dividing the number of failed deployments in production by the total number of product deployments.\n\nData here is obtained from PagerDuty.\n\n**MEAN TIME TO RESTORE**\n\nDescribes the average time to recover from a failed deployment or an incident.\nIt is calculated by obtaining the difference in time between an incident creation time and it resolution time.\n\nData here is obtained from PagerDuty.\n\n**Untracked Deployments**\nShow the number of deployment that were not used to calculate the metrics due to missing data (usually the commit time is not obtained from Github).", + "mode": "markdown" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_TELEMETER-RECENT-PRODUCTION}" + }, + "refId": "A" + } + ], + "title": "Info", + "type": "text" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 6 + }, + "id": 29, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "expr": "avg(\n (( min by (image, commit_hash)( min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range]) - on (image) group_left (commit_hash) (min by (image, commit_hash) (min_over_time(dora:committime{app!~\".*gitopsdepl.*\"}[$__range]))))))\n)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Lead Time for Change", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 6 + }, + "id": 61, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(count by (image)(count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Deployment Frequency", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 8, + "y": 6 + }, + "id": 31, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(\n min(min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])) by (image) * 1000 unless min(min_over_time(dora:committime[$__range])) by (image) * 1000\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Untracked Deployments", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 10, + "y": 6 + }, + "id": 39, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "expr": "avg(\n (( min by (image, commit_hash)( min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range]) - on (image) group_left (commit_hash) (min by (image, commit_hash) (min_over_time(dora:committime{app!~\".*gitopsdepl.*\"}[$__range]))))))\n)", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Lead Time for Change", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 14, + "y": 6 + }, + "id": 40, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(count by (image)(count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Deployment Frequency", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 18, + "y": 6 + }, + "id": 52, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count(\n min(min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])) by (image) * 1000 unless min(min_over_time(dora:committime[$__range])) by (image) * 1000\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Untracked Deployments", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 0, + "y": 10 + }, + "id": 32, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(\n (( min by (image, commit_hash)( min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range]) - on (image) group_left (commit_hash) (min by (image, commit_hash) (min_over_time(dora:committime{app!~\".*gitopsdepl.*\"}[$__range]))))))\n)", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Lead Time for Change over time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "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 + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 5, + "y": 10 + }, + "id": 33, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "expr": "count(count by (image)(count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Deployment Frequency over time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 10, + "y": 10 + }, + "id": 53, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "avg(\n (( min by (image, commit_hash)( min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range]) - on (image) group_left (commit_hash) (min by (image, commit_hash) (min_over_time(dora:committime{app!~\".*gitopsdepl.*\"}[$__range]))))))\n)", + "format": "time_series", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Lead Time for Change over time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "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 + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 5, + "x": 15, + "y": 10 + }, + "id": 54, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "expr": "count(count by (image)(count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Deployment Frequency over time", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 0, + "y": 15 + }, + "id": 36, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count( min by (app) (min_over_time(dora:failure_creation_time[$__range])) )\n/ \n( \ncount( count by (image) (count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n+ \n(count(min by (image) (min_over_time(dora:deployinactive[$__range]))) OR on() vector(0))\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Change Failure Rate", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 5, + "y": 15 + }, + "id": 46, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count( min by (app) (min_over_time(dora:failure_creation_time[$__range])) )\n/ \n( \ncount( count by (image) (count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n+ \n(count(min by (image) (min_over_time(dora:deployinactive[$__range]))) OR on() vector(0))\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Mean Time to Restore", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 10, + "y": 15 + }, + "id": 55, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count( min by (app) (min_over_time(dora:failure_creation_time[$__range])) )\n/ \n( \ncount( count by (image) (count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n+ \n(count(min by (image) (min_over_time(dora:deployinactive[$__range]))) OR on() vector(0))\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Change Failure Rate", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 5, + "x": 15, + "y": 15 + }, + "id": 56, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "allValues" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "count( min by (app) (min_over_time(dora:failure_creation_time[$__range])) )\n/ \n( \ncount( count by (image) (count_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])))\n+ \n(count(min by (image) (min_over_time(dora:deployinactive[$__range]))) OR on() vector(0))\n)", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Mean Time to Restore", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "decimals": 2, + "displayName": "", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "displayName", + "value": "Time" + }, + { + "id": "unit", + "value": "time: YYYY-MM-DD HH:mm:ss" + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "app" + }, + "properties": [ + { + "id": "custom.width", + "value": 431 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "unit", + "value": "dateTimeAsIso" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "image" + }, + "properties": [ + { + "id": "custom.width", + "value": 499 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 10, + "x": 0, + "y": 19 + }, + "id": 48, + "links": [], + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Value" + } + ] + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-STAGE}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])) by (image) * 1000", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Recent Go Lives", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "commit_hash": true + }, + "indexByName": {}, + "renameByName": { + "Value": "Date" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "decimals": 2, + "displayName": "", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "displayName", + "value": "Time" + }, + { + "id": "unit", + "value": "time: YYYY-MM-DD HH:mm:ss" + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "app" + }, + "properties": [ + { + "id": "custom.width", + "value": 431 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "unit", + "value": "dateTimeAsIso" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "image" + }, + "properties": [ + { + "id": "custom.width", + "value": 499 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 10, + "x": 10, + "y": 19 + }, + "id": 57, + "links": [], + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "Value" + } + ] + }, + "pluginVersion": "9.3.8", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "min(min_over_time(dora:deploytime{app!~\".*gitopsdepl.*\"}[$__range])) by (image) * 1000", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Recent Go Lives", + "transformations": [ + { + "id": "seriesToColumns", + "options": { + "reducers": [] + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "commit_hash": true + }, + "indexByName": {}, + "renameByName": { + "Value": "Date" + } + } + } + ], + "type": "table" + } + ], + "schemaVersion": 37, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_RHTAP-OBSERVATORIUM-PRODUCTION}" + }, + "definition": "label_values(dora:deployactive{app!~\\\".*gitopsdepl.*\\\"}, app)", + "hide": 0, + "includeAll": false, + "label": "Service", + "multi": false, + "name": "service", + "options": [], + "query": { + "query": "label_values(dora:deployactive{app!~\\\".*gitopsdepl.*\\\"}, app)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "Playground", + "uid": "playground", + "version": 1, + "weekStart": "" + } +kind: ConfigMap +metadata: + creationTimestamp: null + name: grafana-dashboard-dora-metrics + labels: + grafana_dashboard: "true" + annotations: + grafana-folder: /grafana-dashboard-definitions/RHTAP