PowerMap.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_TELEMETRY-POSTGRES",
  5. "label": "telemetry-postgres",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "postgres",
  9. "pluginName": "PostgreSQL"
  10. }
  11. ],
  12. "__elements": [],
  13. "__requires": [
  14. {
  15. "type": "grafana",
  16. "id": "grafana",
  17. "name": "Grafana",
  18. "version": "8.3.2"
  19. },
  20. {
  21. "type": "panel",
  22. "id": "hpcviz-idvl-hpcc-stream-net",
  23. "name": "stream-net",
  24. "version": "1.0.0"
  25. },
  26. {
  27. "type": "datasource",
  28. "id": "postgres",
  29. "name": "PostgreSQL",
  30. "version": "1.0.0"
  31. }
  32. ],
  33. "editable": false,
  34. "fiscalYearStartMonth": 0,
  35. "graphTooltip": 0,
  36. "id": null,
  37. "iteration": 1647433675249,
  38. "links": [],
  39. "liveNow": false,
  40. "panels": [
  41. {
  42. "datasource": {
  43. "type": "postgres",
  44. "uid": "telemetry-postgres"
  45. },
  46. "gridPos": {
  47. "h": 15,
  48. "w": 24,
  49. "x": 0,
  50. "y": 0
  51. },
  52. "id": 2,
  53. "options": {
  54. "userEncoded": true
  55. },
  56. "targets": [
  57. {
  58. "datasource": {
  59. "type": "postgres",
  60. "uid": "telemetry-postgres"
  61. },
  62. "format": "table",
  63. "group": [],
  64. "hide": false,
  65. "metricColumn": "none",
  66. "rawQuery": true,
  67. "rawSql": "SELECT\n *\nFROM\n slurm.jobs\nWHERE\n user_id IN ($users)\n AND start_time < ${__to:date:seconds}\n AND end_time BETWEEN ${__from:date:seconds} and ${__to:date:seconds}",
  68. "refId": "jobs",
  69. "select": [
  70. [
  71. {
  72. "params": [
  73. "value"
  74. ],
  75. "type": "column"
  76. }
  77. ]
  78. ],
  79. "timeColumn": "time",
  80. "where": [
  81. {
  82. "name": "$__timeFilter",
  83. "params": [],
  84. "type": "macro"
  85. }
  86. ]
  87. },
  88. {
  89. "datasource": {
  90. "type": "postgres",
  91. "uid": "telemetry-postgres"
  92. },
  93. "format": "time_series",
  94. "group": [],
  95. "hide": false,
  96. "metricColumn": "none",
  97. "rawQuery": true,
  98. "rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n avg(CAST(value AS decimal)) AS \"memory_power\",\n CONCAT('| ',nodes.os_ip_addr) AS name\nFROM timeseries_metrics\nINNER JOIN nodes\nON nodes.servicetag = timeseries_metrics.system\nWHERE\n $__timeFilter(\"time\") AND\n label= 'PowerMetrics TotalMemoryPower'AND\n system IN ($servicetag)\nGROUP BY time,name\nORDER BY time",
  99. "refId": "memory_power",
  100. "select": [
  101. [
  102. {
  103. "params": [
  104. "value"
  105. ],
  106. "type": "column"
  107. }
  108. ]
  109. ],
  110. "timeColumn": "time",
  111. "where": [
  112. {
  113. "name": "$__timeFilter",
  114. "params": [],
  115. "type": "macro"
  116. }
  117. ]
  118. },
  119. {
  120. "datasource": {
  121. "type": "postgres",
  122. "uid": "telemetry-postgres"
  123. },
  124. "format": "time_series",
  125. "group": [],
  126. "hide": false,
  127. "metricColumn": "none",
  128. "rawQuery": true,
  129. "rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n avg(CAST(value AS decimal)) AS \"cpu_power\",\n CONCAT('| ',nodes.os_ip_addr) AS name\nFROM timeseries_metrics\nINNER JOIN nodes\nON nodes.servicetag = timeseries_metrics.system\nWHERE\n $__timeFilter(\"time\") AND\n label= 'PowerMetrics TotalCPUPower'AND\n system IN ($servicetag)\nGROUP BY time,name\nORDER BY time",
  130. "refId": "cpu_power",
  131. "select": [
  132. [
  133. {
  134. "params": [
  135. "value"
  136. ],
  137. "type": "column"
  138. }
  139. ]
  140. ],
  141. "timeColumn": "time",
  142. "where": [
  143. {
  144. "name": "$__timeFilter",
  145. "params": [],
  146. "type": "macro"
  147. }
  148. ]
  149. },
  150. {
  151. "datasource": {
  152. "type": "postgres",
  153. "uid": "telemetry-postgres"
  154. },
  155. "format": "time_series",
  156. "group": [],
  157. "hide": false,
  158. "metricColumn": "none",
  159. "rawQuery": true,
  160. "rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n avg(CAST(value AS decimal)) AS \"cpu1_temp\",\n CONCAT('| ',nodes.os_ip_addr) AS name\nFROM timeseries_metrics\nINNER JOIN nodes\nON nodes.servicetag = timeseries_metrics.system\nWHERE\n $__timeFilter(\"time\") AND\n label= 'CPU1 Temp TemperatureReading'AND\n system IN ($servicetag)\nGROUP BY time,name\nORDER BY time",
  161. "refId": "cpu1_temp",
  162. "select": [
  163. [
  164. {
  165. "params": [
  166. "value"
  167. ],
  168. "type": "column"
  169. }
  170. ]
  171. ],
  172. "timeColumn": "time",
  173. "where": [
  174. {
  175. "name": "$__timeFilter",
  176. "params": [],
  177. "type": "macro"
  178. }
  179. ]
  180. },
  181. {
  182. "datasource": {
  183. "type": "postgres",
  184. "uid": "telemetry-postgres"
  185. },
  186. "format": "time_series",
  187. "group": [],
  188. "hide": false,
  189. "metricColumn": "none",
  190. "rawQuery": true,
  191. "rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n avg(CAST(value AS decimal)) AS \"CPU2_Temp\",\n CONCAT('| ',nodes.os_ip_addr) AS name\nFROM timeseries_metrics\nINNER JOIN nodes\nON nodes.servicetag = timeseries_metrics.system\nWHERE\n $__timeFilter(\"time\") AND\n label= 'CPU2 Temp TemperatureReading' AND\n system IN ($servicetag)\nGROUP BY time,name\nORDER BY time",
  192. "refId": "cpu2_temp",
  193. "select": [
  194. [
  195. {
  196. "params": [
  197. "value"
  198. ],
  199. "type": "column"
  200. }
  201. ]
  202. ],
  203. "timeColumn": "time",
  204. "where": [
  205. {
  206. "name": "$__timeFilter",
  207. "params": [],
  208. "type": "macro"
  209. }
  210. ]
  211. },
  212. {
  213. "datasource": {
  214. "type": "postgres",
  215. "uid": "telemetry-postgres"
  216. },
  217. "format": "time_series",
  218. "group": [],
  219. "hide": false,
  220. "metricColumn": "none",
  221. "rawQuery": true,
  222. "rawSql": "SELECT\n $__timeGroupAlias(\"time\",$__interval),\n avg(CAST(value AS decimal)) AS \"NIC1_Temp\",\n CONCAT('| ',nodes.os_ip_addr) AS name\nFROM timeseries_metrics\nINNER JOIN nodes\nON nodes.servicetag = timeseries_metrics.system\nWHERE\n $__timeFilter(\"time\") AND\n label SIMILAR TO '% NIC 1 Port 1 Partition 1 TemperatureReading' AND\n system IN ($servicetag)\nGROUP BY time,name\nORDER BY time",
  223. "refId": "nic1_temp",
  224. "select": [
  225. [
  226. {
  227. "params": [
  228. "value"
  229. ],
  230. "type": "column"
  231. }
  232. ]
  233. ],
  234. "timeColumn": "time",
  235. "where": [
  236. {
  237. "name": "$__timeFilter",
  238. "params": [],
  239. "type": "macro"
  240. }
  241. ]
  242. }
  243. ],
  244. "title": "PowerMap",
  245. "type": "hpcviz-idvl-hpcc-stream-net"
  246. }
  247. ],
  248. "refresh": "",
  249. "schemaVersion": 33,
  250. "style": "dark",
  251. "tags": [],
  252. "templating": {
  253. "list": [
  254. {
  255. "current": {},
  256. "datasource": {
  257. "type": "postgres",
  258. "uid": "telemetry-postgres"
  259. },
  260. "definition": "SELECT DISTINCT servicetag as __value from nodes\n",
  261. "hide": 0,
  262. "includeAll": true,
  263. "multi": true,
  264. "name": "servicetag",
  265. "options": [],
  266. "query": "SELECT DISTINCT servicetag as __value from nodes\n",
  267. "refresh": 1,
  268. "regex": "",
  269. "skipUrlSync": false,
  270. "sort": 1,
  271. "type": "query"
  272. },
  273. {
  274. "current": {},
  275. "datasource": {
  276. "type": "postgres",
  277. "uid": "telemetry-postgres"
  278. },
  279. "definition": "SELECT\n user_id as __value, user_name as __text, nodes as IP, nodes.os_ip_addr, nodes.servicetag\nFROM\n slurm.jobs\nINNER JOIN nodes\nON nodes.os_ip_addr = ANY(nodes)\nWHERE nodes.servicetag in ($servicetag) AND\n start_time < ${__to:date:seconds} AND end_time > ${__from:date:seconds}",
  280. "hide": 0,
  281. "includeAll": true,
  282. "multi": true,
  283. "name": "users",
  284. "options": [],
  285. "query": "SELECT\n user_id as __value, user_name as __text, nodes as IP, nodes.os_ip_addr, nodes.servicetag\nFROM\n slurm.jobs\nINNER JOIN nodes\nON nodes.os_ip_addr = ANY(nodes)\nWHERE nodes.servicetag in ($servicetag) AND\n start_time < ${__to:date:seconds} AND end_time > ${__from:date:seconds}",
  286. "refresh": 1,
  287. "regex": "",
  288. "skipUrlSync": false,
  289. "sort": 1,
  290. "type": "query"
  291. }
  292. ]
  293. },
  294. "time": {
  295. "from": "now-24h",
  296. "to": "now"
  297. },
  298. "timepicker": {},
  299. "timezone": "",
  300. "title": "PowerMap",
  301. "uid": "ou27WHLnk",
  302. "version": 16,
  303. "weekStart": ""
  304. }