Advertisement
Guest User

query inspector grafana

a guest
Nov 21st, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. {
  2. "queries": [
  3. {
  4. "datasource": {
  5. "uid": "<UID>",
  6. "type": "prometheus"
  7. },
  8. "editorMode": "code",
  9. "expr": "mem_swap_total{host=<REDACTED>}",
  10. "hide": true,
  11. "legendFormat": "total",
  12. "range": true,
  13. "refId": "swap_total",
  14. "interval": "",
  15. "expression": "",
  16. "window": "",
  17. "datasourceId": 1,
  18. "intervalMs": 15000,
  19. "maxDataPoints": 1396
  20. },
  21. {
  22. "datasource": {
  23. "uid": "<UID>",
  24. "type": "prometheus"
  25. },
  26. "editorMode": "code",
  27. "expr": "mem_swap_free{host=<REDACTED>} + mem_swap_cached{host=<REDACTED>}",
  28. "hide": true,
  29. "legendFormat": "__auto",
  30. "range": true,
  31. "refId": "swap_free",
  32. "interval": "",
  33. "expression": "",
  34. "window": "",
  35. "datasourceId": 1,
  36. "intervalMs": 15000,
  37. "maxDataPoints": 1396
  38. },
  39. {
  40. "datasource": {
  41. "type": "__expr__",
  42. "uid": "__expr__",
  43. "name": "Expression"
  44. },
  45. "expression": "(($swap_total - $swap_free) / $swap_total) * 100",
  46. "hide": false,
  47. "refId": "B",
  48. "type": "math",
  49. "window": ""
  50. }
  51. ],
  52. "range": {
  53. "from": "2022-11-17T14:40:49.738Z",
  54. "to": "2022-11-17T15:40:49.738Z",
  55. "raw": {
  56. "from": "now-1h",
  57. "to": "now"
  58. }
  59. },
  60. "from": "1668696049738",
  61. "to": "1668699649738"
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement