Merge pull request #12754 from kdelee/fix_metrics_consumed_capacity

calcuate consumed capacity in same way in metrics
This commit is contained in:
Alan Rominger
2022-08-29 16:37:53 -04:00
committed by GitHub
3 changed files with 122 additions and 34 deletions

View File

@@ -85,10 +85,96 @@
},
"gridPos": {
"h": 8,
"w": 12,
"w": 24,
"x": 0,
"y": 0
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "awx_status_total",
"refId": "A"
}
],
"title": "job status",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"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"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 12,
"options": {
"legend": {
@@ -199,7 +285,7 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"x": 12,
"y": 8
},
"id": 10,
@@ -458,8 +544,8 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 24
"x": 12,
"y": 16
},
"id": 18,
"options": {
@@ -556,9 +642,9 @@
"h": 8,
"w": 12,
"x": 0,
"y": 32
"y": 24
},
"id": 8,
"id": 14,
"options": {
"legend": {
"calcs": [],
@@ -576,11 +662,14 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"expr": "awx_status_total",
"editorMode": "builder",
"expr": "awx_database_connections_total",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "job status",
"title": "Database",
"type": "timeseries"
},
{
@@ -641,10 +730,10 @@
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 40
"x": 12,
"y": 24
},
"id": 14,
"id": 20,
"options": {
"legend": {
"calcs": [],
@@ -663,13 +752,13 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "builder",
"expr": "awx_database_connections_total",
"expr": "awx_instance_consumed_capacity",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Database",
"title": "Consumed Instance Capacity",
"type": "timeseries"
}
],
@@ -688,6 +777,6 @@
"timezone": "",
"title": "awx-demo",
"uid": "GISWZOXnk",
"version": 2,
"version": 4,
"weekStart": ""
}