diff --git a/.rhcicd/grafana/grafana-dashboard-subscription-watch-payg-metrics.configmap.yaml b/.rhcicd/grafana/grafana-dashboard-subscription-watch-payg-metrics.configmap.yaml new file mode 100644 index 0000000000..02398c78bb --- /dev/null +++ b/.rhcicd/grafana/grafana-dashboard-subscription-watch-payg-metrics.configmap.yaml @@ -0,0 +1,1318 @@ +apiVersion: v1 +data: + subscription-watch-payg-metrics.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" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 995732, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "panels": [], + "title": "Metered end-to-end stats", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value #Metered" + }, + "properties": [ + { + "id": "displayName", + "value": "Metered" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #Tallied" + }, + "properties": [ + { + "id": "displayName", + "value": "Tallied" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #Covered" + }, + "properties": [ + { + "id": "displayName", + "value": "Covered by Contract" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #Billing Pending" + }, + "properties": [ + { + "id": "displayName", + "value": "Billing Pending" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #Remitted Failed" + }, + "properties": [ + { + "id": "displayName", + "value": "Remitted Failed" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #Remitted Success" + }, + "properties": [ + { + "id": "displayName", + "value": "Remitted Success" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 1 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "repeat": "product", + "repeatDirection": "v", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "sum(increase(swatch_metrics_ingested_usage_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\"}[$__range]))", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "__auto", + "range": true, + "refId": "Metered", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_tally_tallied_usage_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\"}[$__range]))", + "format": "table", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "Tallied" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_contract_usage_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\"}[$__range]))", + "format": "table", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "Covered" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_billable_usage_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\"}[$__range]))", + "format": "table", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "Billing Pending" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_producer_metered_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\", status=\"failed\"}[$__range]))", + "format": "table", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "Remitted Failed" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_producer_metered_total{metric_id=\"$metric_id\", product=\"$product\", billing_provider=\"$billing_provider\", status=\"succeeded\"}[$__range]))", + "format": "table", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "Remitted Success" + } + ], + "title": "Stats for \"$product\"", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 41 + }, + "id": 4, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 2 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_metrics_ingested_usage_total{product=\"$product\", billing_provider=\"$billing_provider\"}[$__range])) by (metric_id)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Metered", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 2 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_tally_tallied_usage_total{product=\"$product\", billing_provider=\"$billing_provider\"}[$__range])) by (metric_id)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Tallied", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 7, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_contract_usage_total{product=\"$product\", billing_provider=\"$billing_provider\"}[$__range])) by (metric_id)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Covered by contract", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 8, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_billable_usage_total{product=\"$product\", billing_provider=\"$billing_provider\"}[$__range])) by (metric_id)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Billing Pending", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 18 + }, + "id": 9, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_producer_metered_total{product=\"$product\", billing_provider=\"$billing_provider\", status=\"succeeded\"}[$__range])) by (metric_id)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Remitted Success", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Instance-Hours\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Instance-Hours (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Instance-Hours\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Instance-Hours (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Managed-Nodes\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Managed-Nodes (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Managed-Nodes\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Managed-Nodes (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Cores\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Cores (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Cores\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Cores (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Sockets\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Sockets (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Sockets\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Sockets (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"vCPUs\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "vCPUs (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"vCPUs\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "vCPUs (succeeded)" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 18 + }, + "id": 15, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_producer_metered_total{product=\"$product\", billing_provider=\"$billing_provider\", status!=\"succeeded\",error_code=\"subscription_not_found\"}[$__range])) by (metric_id, error_code)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Remitted Failed with Subscription Not Found", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "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 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Instance-Hours\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Instance-Hours (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Instance-Hours\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Instance-Hours (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Managed-Nodes\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Managed-Nodes (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Managed-Nodes\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Managed-Nodes (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Cores\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Cores (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Cores\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Cores (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Sockets\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Sockets (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"Sockets\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Sockets (succeeded)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"vCPUs\", status=\"failed\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "vCPUs (failed)" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "{metric_id=\"vCPUs\", status=\"succeeded\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "vCPUs (succeeded)" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 10, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PDD8BE47D10408F45" + }, + "editorMode": "code", + "expr": "sum(increase(swatch_producer_metered_total{product=\"$product\", billing_provider=\"$billing_provider\", status!=\"succeeded\",error_code!=\"subscription_not_found\"}[$__range])) by (metric_id, error_code)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Remitted Failed with Unknown", + "type": "timeseries" + } + ], + "repeat": "product", + "repeatDirection": "h", + "title": "Stats by metrics for $product", + "type": "row" + } + ], + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "current": { + "selected": false, + "text": "crcs02ue1-prometheus", + "value": "PDD8BE47D10408F45" + }, + "hide": 0, + "includeAll": false, + "label": "", + "multi": false, + "name": "datasource", + "options": [], + "query": "prometheus", + "queryValue": "", + "refresh": 1, + "regex": "/crc[sp]\\d[^-]*-prometheus/", + "skipUrlSync": false, + "type": "datasource" + }, + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(swatch_metrics_ingested_usage_total,product)", + "hide": 0, + "includeAll": true, + "label": "Product", + "multi": true, + "name": "product", + "options": [], + "query": { + "qryType": 5, + "query": "label_values(swatch_metrics_ingested_usage_total,product)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "Cores", + "value": "Cores" + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(swatch_metrics_ingested_usage_total,metric_id)", + "hide": 0, + "includeAll": false, + "label": "Metric", + "multi": false, + "name": "metric_id", + "options": [], + "query": { + "qryType": 5, + "query": "label_values(swatch_metrics_ingested_usage_total,metric_id)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "aws", + "value": "aws" + }, + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "definition": "label_values(swatch_metrics_ingested_usage_total,billing_provider)", + "hide": 0, + "includeAll": false, + "label": "Billing Provider", + "multi": false, + "name": "billing_provider", + "options": [], + "query": { + "qryType": 5, + "query": "label_values(swatch_metrics_ingested_usage_total,billing_provider)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-90d", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Subscription Watch - PAYG metrics", + "uid": "aec1blbwi445cf", + "version": 1, + "weekStart": "" + } +kind: ConfigMap +metadata: + creationTimestamp: null + name: grafana-dashboard-subscription-watch + annotations: + grafana-folder: /grafana-dashboard-definitions/Insights + labels: + grafana_dashboard: "true"