Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "queries": [
- {
- "datasource": {
- "uid": "<UID>",
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "mem_swap_total{host=<REDACTED>}",
- "hide": true,
- "legendFormat": "total",
- "range": true,
- "refId": "swap_total",
- "interval": "",
- "expression": "",
- "window": "",
- "datasourceId": 1,
- "intervalMs": 15000,
- "maxDataPoints": 1396
- },
- {
- "datasource": {
- "uid": "<UID>",
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "mem_swap_free{host=<REDACTED>} + mem_swap_cached{host=<REDACTED>}",
- "hide": true,
- "legendFormat": "__auto",
- "range": true,
- "refId": "swap_free",
- "interval": "",
- "expression": "",
- "window": "",
- "datasourceId": 1,
- "intervalMs": 15000,
- "maxDataPoints": 1396
- },
- {
- "datasource": {
- "type": "__expr__",
- "uid": "__expr__",
- "name": "Expression"
- },
- "expression": "(($swap_total - $swap_free) / $swap_total) * 100",
- "hide": false,
- "refId": "B",
- "type": "math",
- "window": ""
- }
- ],
- "range": {
- "from": "2022-11-17T14:40:49.738Z",
- "to": "2022-11-17T15:40:49.738Z",
- "raw": {
- "from": "now-1h",
- "to": "now"
- }
- },
- "from": "1668696049738",
- "to": "1668699649738"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement