diff --git a/grafana/fly-app.json b/grafana/fly-app.json index 6252744..632e4ea 100644 --- a/grafana/fly-app.json +++ b/grafana/fly-app.json @@ -720,6 +720,30 @@ "legendFormat": "{{instance}} - {{region}}", "range": true, "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus_on_fly" + }, + "editorMode": "code", + "expr": "(fly_instance_memory_swap_total{app=\"$app\"} -\nfly_instance_memory_swap_free{app=\"$app\"}) > 0", + "hide": false, + "legendFormat": "SwapUsed - Memory which has been evicted from RAM, and is temporarily on the disk", + "range": true, + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus_on_fly" + }, + "editorMode": "code", + "expr": "(fly_instance_memory_swap_total{app=\"$app\"}) > 0", + "hide": false, + "legendFormat": "SwapTotal - total amount of swap space available", + "range": true, + "refId": "I" } ], "title": "Memory Utilization", @@ -1080,6 +1104,18 @@ "unit": "short" }, "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "Swap.*" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + }, { "matcher": { "id": "byName",