aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunomilitzer <bruno.militzer@est.tech>2022-08-30 09:47:02 +0100
committerLiam Fallon <liam.fallon@est.tech>2022-09-08 12:59:29 +0000
commit841f9712e48828396faff6adcc1b20186e952430 (patch)
tree62be69fd422cff528b09c7da862bc65620d14b70
parent0d5da012af002296a02eb4de542e2c7567265c21 (diff)
Fixed Negative Heap Memory on Grafana Chart
- fixed unit to seconds (so it caulculates time) - fixed formula with time-up variable Issue-ID: POLICY-4326 Change-Id: I324b01d9abc92938027daafa1ebe73dccea5baba Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
-rw-r--r--csit/metrics/dashboards/dashboard-distribution.json261
1 files changed, 155 insertions, 106 deletions
diff --git a/csit/metrics/dashboards/dashboard-distribution.json b/csit/metrics/dashboards/dashboard-distribution.json
index 39b9675e..1a53fcbc 100644
--- a/csit/metrics/dashboards/dashboard-distribution.json
+++ b/csit/metrics/dashboards/dashboard-distribution.json
@@ -22,7 +22,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 8,
+ "id": 5,
"links": [],
"liveNow": false,
"panels": [
@@ -34,18 +34,19 @@
"x": 0,
"y": 0
},
- "id": 2,
+ "id": 19,
"panels": [],
"title": "Quick Info",
"type": "row"
},
{
- "description": "Uptime per pod for Policy Distribution application calculated in days",
+ "description": "Uptime for Policy Distribution application",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "mode": "palette-classic"
},
+ "decimals": 1,
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -59,27 +60,31 @@
"value": 80
}
]
- }
+ },
+ "unit": "s"
},
"overrides": []
},
"gridPos": {
- "h": 6,
- "w": 6,
+ "h": 9,
+ "w": 8,
"x": 0,
"y": 1
},
"id": 4,
"options": {
"colorMode": "value",
- "graphMode": "area",
+ "graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
- "calcs": [],
+ "calcs": [
+ "lastNotNull"
+ ],
"fields": "",
"values": false
},
+ "text": {},
"textMode": "auto"
},
"pluginVersion": "8.3.4",
@@ -89,14 +94,17 @@
"type": "prometheus",
"uid": "dkSf71fnz"
},
- "exemplar": true,
- "expr": "process_start_time_seconds{job=\"distribution-metrics\"} / 86400",
+ "exemplar": false,
+ "expr": "time()-process_start_time_seconds{job=\"distribution-metrics\"}",
+ "format": "time_series",
+ "instant": false,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
- "title": "Process Uptime (days)",
+ "title": "Process Uptime",
+ "transformations": [],
"transparent": true,
"type": "stat"
},
@@ -105,43 +113,43 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "mode": "palette-classic"
},
+ "decimals": 2,
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
- },
- {
- "color": "red",
- "value": 80
}
]
- }
+ },
+ "unit": "percent"
},
"overrides": []
},
"gridPos": {
- "h": 6,
- "w": 8,
- "x": 6,
+ "h": 8,
+ "w": 7,
+ "x": 9,
"y": 1
},
- "id": 6,
+ "id": 26,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
- "lastNotNull"
+ "last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
- "showThresholdMarkers": true
+ "showThresholdMarkers": false
},
"pluginVersion": "8.3.4",
"targets": [
@@ -153,7 +161,7 @@
"exemplar": true,
"expr": "process_cpu_seconds_total{job=\"distribution-metrics\"}",
"interval": "",
- "legendFormat": "process_cpu: {{pod}}",
+ "legendFormat": "",
"refId": "A"
}
],
@@ -165,9 +173,11 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "thresholds"
+ "mode": "palette-classic"
},
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -180,28 +190,29 @@
"value": 80
}
]
- }
+ },
+ "unit": "percent"
},
"overrides": []
},
"gridPos": {
- "h": 6,
- "w": 8,
- "x": 15,
+ "h": 8,
+ "w": 6,
+ "x": 17,
"y": 1
},
- "id": 8,
+ "id": 27,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
- "lastNotNull"
+ "last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
- "showThresholdMarkers": true
+ "showThresholdMarkers": false
},
"pluginVersion": "8.3.4",
"targets": [
@@ -211,23 +222,11 @@
"uid": "dkSf71fnz"
},
"exemplar": true,
- "expr": "100 * sum by(pod)(jvm_memory_bytes_used{area=\"heap\", job=\"distribution-metrics\"}) / sum by(pod)(jvm_memory_bytes_max{area=\"heap\", job=\"distribution-metrics\"})",
+ "expr": "100 * sum by(job)(jvm_memory_bytes_used{area=\"heap\", job=\"distribution-metrics\"}) / sum by(job)(jvm_memory_bytes_max{area=\"heap\", job=\"distribution-metrics\"})",
"hide": false,
"interval": "",
"legendFormat": "Heap : {{pod}}",
"refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "dkSf71fnz"
- },
- "exemplar": true,
- "expr": "100 * sum by(pod)(jvm_memory_bytes_used{area=\"nonheap\", job=\"distribution-metrics\"}) / sum by(pod)(jvm_memory_bytes_max{area=\"nonheap\", job=\"distribution-metrics\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "Non Heap : {{pod}}",
- "refId": "B"
}
],
"title": "Memory Usage",
@@ -239,9 +238,9 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 7
+ "y": 10
},
- "id": 10,
+ "id": 17,
"panels": [],
"title": "System",
"type": "row"
@@ -266,8 +265,11 @@
"viz": false
},
"lineInterpolation": "linear",
+ "lineStyle": {
+ "fill": "solid"
+ },
"lineWidth": 1,
- "pointSize": 5,
+ "pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
@@ -294,7 +296,8 @@
"value": 80
}
]
- }
+ },
+ "unit": "percent"
},
"overrides": []
},
@@ -302,17 +305,24 @@
"h": 14,
"w": 12,
"x": 0,
- "y": 8
+ "y": 11
},
- "id": 12,
+ "id": 2,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom"
+ "calcs": [
+ "max",
+ "mean",
+ "last"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "sortBy": "Max",
+ "sortDesc": true
},
"tooltip": {
- "mode": "single"
+ "mode": "single",
+ "sort": "none"
}
},
"targets": [
@@ -322,7 +332,7 @@
"uid": "dkSf71fnz"
},
"exemplar": true,
- "expr": "process_cpu_seconds_total{job=\"distribution-metrics\"} * 100",
+ "expr": "avg_over_time(process_cpu_seconds_total{job=\"distribution-metrics\"}[1m]) * 100",
"interval": "",
"legendFormat": "system: {{pod}}",
"refId": "A"
@@ -333,11 +343,23 @@
"uid": "dkSf71fnz"
},
"exemplar": true,
- "expr": "process_cpu_seconds_total{job=\"distribution-metrics\"} * 100",
+ "expr": "avg_over_time(process_cpu_seconds_total{job=\"distribution-metrics\"}[5m]) * 100",
"hide": false,
"interval": "",
"legendFormat": "process: {{pod}}",
"refId": "B"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "dkSf71fnz"
+ },
+ "exemplar": true,
+ "expr": "avg_over_time(process_cpu_seconds_total{job=\"distribution-metrics\"}[1h]) * 100",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "process_1h: {{pod}}",
+ "refId": "C"
}
],
"title": "CPU Usage",
@@ -363,8 +385,11 @@
"viz": false
},
"lineInterpolation": "linear",
+ "lineStyle": {
+ "fill": "solid"
+ },
"lineWidth": 1,
- "pointSize": 5,
+ "pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
@@ -391,25 +416,33 @@
"value": 80
}
]
- }
+ },
+ "unit": "percent"
},
"overrides": []
},
"gridPos": {
- "h": 8,
+ "h": 11,
"w": 12,
"x": 12,
- "y": 8
+ "y": 11
},
- "id": 34,
+ "id": 13,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom"
+ "calcs": [
+ "max",
+ "mean",
+ "last"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "sortBy": "Last",
+ "sortDesc": false
},
"tooltip": {
- "mode": "single"
+ "mode": "single",
+ "sort": "none"
}
},
"targets": [
@@ -420,21 +453,10 @@
},
"exemplar": true,
"expr": "100 * sum(jvm_memory_bytes_used{area=\"heap\", job=\"distribution-metrics\"}) / sum(jvm_memory_bytes_max{area=\"heap\", job=\"distribution-metrics\"})",
+ "hide": false,
"interval": "",
"legendFormat": "Heap",
"refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "dkSf71fnz"
- },
- "exemplar": true,
- "expr": "100 * sum(jvm_memory_bytes_used{area=\"nonheap\", job=\"distribution-metrics\"}) / sum(jvm_memory_bytes_max{area=\"nonheap\", job=\"distribution-metrics\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "Non Heap",
- "refId": "B"
}
],
"title": "Memory Usage",
@@ -465,8 +487,8 @@
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "auto",
- "spanNulls": false,
+ "showPoints": "never",
+ "spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
@@ -488,7 +510,8 @@
"value": 80
}
]
- }
+ },
+ "unit": "short"
},
"overrides": []
},
@@ -496,19 +519,24 @@
"h": 13,
"w": 12,
"x": 12,
- "y": 16
+ "y": 22
},
- "id": 16,
+ "id": 8,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
+ "calcs": [
+ "max",
+ "last"
+ ],
+ "displayMode": "table",
"placement": "bottom"
},
"tooltip": {
- "mode": "single"
+ "mode": "multi",
+ "sort": "none"
}
},
+ "pluginVersion": "8.4.5",
"targets": [
{
"datasource": {
@@ -532,6 +560,18 @@
"interval": "",
"legendFormat": "Peak Threads: {{ pod }}",
"refId": "B"
+ },
+ {
+ "datasource": {
+ "type": "prometheus",
+ "uid": "dkSf71fnz"
+ },
+ "exemplar": true,
+ "expr": "jvm_threads_state{job=\"distribution-metrics\"}",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "State Threads: {{ pod }}",
+ "refId": "C"
}
],
"title": "JVM threads",
@@ -543,9 +583,9 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 29
+ "y": 35
},
- "id": 18,
+ "id": 15,
"panels": [],
"title": "Garbage Collection",
"type": "row"
@@ -571,7 +611,7 @@
},
"lineInterpolation": "linear",
"lineWidth": 1,
- "pointSize": 5,
+ "pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
@@ -598,7 +638,8 @@
"value": 80
}
]
- }
+ },
+ "unit": "ops"
},
"overrides": []
},
@@ -606,17 +647,22 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 30
+ "y": 36
},
- "id": 20,
+ "id": 10,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
+ "calcs": [
+ "max",
+ "mean",
+ "last"
+ ],
+ "displayMode": "table",
"placement": "bottom"
},
"tooltip": {
- "mode": "single"
+ "mode": "single",
+ "sort": "none"
}
},
"targets": [
@@ -656,7 +702,7 @@
},
"lineInterpolation": "linear",
"lineWidth": 1,
- "pointSize": 5,
+ "pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
@@ -691,17 +737,20 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 30
+ "y": 36
},
"id": 22,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
+ "calcs": [
+ "last"
+ ],
+ "displayMode": "table",
"placement": "bottom"
},
"tooltip": {
- "mode": "single"
+ "mode": "single",
+ "sort": "none"
}
},
"targets": [
@@ -726,9 +775,9 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 38
+ "y": 44
},
- "id": 24,
+ "id": 21,
"panels": [],
"title": "Statistics",
"type": "row"
@@ -761,7 +810,7 @@
"h": 11,
"w": 12,
"x": 0,
- "y": 39
+ "y": 45
},
"id": 32,
"options": {
@@ -866,13 +915,13 @@
"list": []
},
"time": {
- "from": "now-6h",
+ "from": "now-24h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Policy Distribution",
"uid": "5HkCopg4z",
- "version": 2,
+ "version": 5,
"weekStart": ""
} \ No newline at end of file