Created
March 31, 2017 15:33
-
-
Save tomwilkie/3b0a183438ac2f3adf2ba26748ff8fb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"hideControls": false, | |
"id": null, | |
"links": [], | |
"refresh": "10s", | |
"rows": [ | |
{ | |
"collapse": false, | |
"editable": true, | |
"height": "250px", | |
"panels": [ | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"datasource": "Scope-as-a-Service Prometheus", | |
"editable": true, | |
"error": false, | |
"fill": 1, | |
"grid": { | |
"threshold1": null, | |
"threshold1Color": "rgba(216, 200, 27, 0.27)", | |
"threshold2": null, | |
"threshold2Color": "rgba(234, 112, 112, 0.22)" | |
}, | |
"id": 1, | |
"isNew": true, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 2, | |
"links": [], | |
"nullPointMode": "connected", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"span": 12, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "container_memory_rss{image!=\"gcr.io/google_containers/pause-amd64:3.0\",id=~\"/system.slice/.*\",pod_name=\"$pod\"}", | |
"intervalFactor": 2, | |
"legendFormat": "RSS ({{container_name}})", | |
"metric": "", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"expr": "go_memstats_heap_alloc_bytes{instance=\"$pod\"}", | |
"intervalFactor": 2, | |
"legendFormat": "Go Heap", | |
"metric": "", | |
"refId": "B", | |
"step": 10 | |
}, | |
{ | |
"expr": "max_over_time(go_memstats_heap_alloc_bytes{instance=\"$pod\"}[10m])", | |
"intervalFactor": 2, | |
"legendFormat": "max_over_time(heap[10m])", | |
"metric": "", | |
"refId": "C", | |
"step": 10 | |
}, | |
{ | |
"expr": "min_over_time(go_memstats_heap_alloc_bytes{instance=\"$pod\"}[10m])", | |
"intervalFactor": 2, | |
"legendFormat": "min_over_time(heap[10m])", | |
"metric": "", | |
"refId": "D", | |
"step": 10 | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "Memory Usage", | |
"tooltip": { | |
"msResolution": true, | |
"shared": true, | |
"sort": 0, | |
"value_type": "cumulative" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"show": true | |
}, | |
"yaxes": [ | |
{ | |
"format": "bytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": 0, | |
"show": true | |
}, | |
{ | |
"format": "bytes", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": 0, | |
"show": true | |
} | |
] | |
} | |
], | |
"showTitle": false, | |
"title": "New row" | |
} | |
], | |
"schemaVersion": 12, | |
"sharedCrosshair": false, | |
"style": "dark", | |
"tags": [], | |
"templating": { | |
"list": [ | |
{ | |
"allValue": null, | |
"current": { | |
"tags": [], | |
"text": "", | |
"value": "" | |
}, | |
"datasource": "Scope-as-a-Service Prometheus", | |
"hide": 0, | |
"includeAll": false, | |
"label": "Pod", | |
"multi": false, | |
"name": "pod", | |
"options": [], | |
"query": "label_values(k8s_pod_status_ready, name)", | |
"refresh": 1, | |
"regex": "", | |
"sort": 1, | |
"tagValuesQuery": null, | |
"tagsQuery": null, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-1h", | |
"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": "utc", | |
"title": "Kubernetes > Pod Resources", | |
"version": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment