github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/templates/components/task-row.hbs (about) 1 <td class="is-narrow"> 2 {{#unless this.task.driverStatus.healthy}} 3 <span 4 data-test-icon="unhealthy-driver" 5 class="tooltip text-center" 6 aria-label="{{this.task.driver}} is unhealthy" 7 > 8 {{x-icon "alert-triangle" class="is-warning"}} 9 </span> 10 {{/unless}} 11 </td> 12 <td data-test-name class="nowrap"> 13 <LinkTo 14 @route="allocations.allocation.task" 15 @models={{array this.task.allocation this.task}} 16 class="is-primary" 17 > 18 {{this.task.name}} 19 {{#if this.task.isConnectProxy}} 20 <ProxyTag @class="bumper-left" /> 21 {{/if}} 22 </LinkTo> 23 </td> 24 <td data-test-state> 25 {{this.task.state}} 26 </td> 27 <td data-test-message> 28 {{#if this.task.events.lastObject.message}} 29 {{this.task.events.lastObject.message}} 30 {{else}} 31 <em> 32 No message 33 </em> 34 {{/if}} 35 </td> 36 <td data-test-time> 37 {{format-ts this.task.events.lastObject.time}} 38 </td> 39 <td data-test-volumes> 40 <ul> 41 {{#each this.task.task.volumeMounts as |volume|}} 42 <li data-test-volume> 43 <strong> 44 {{volume.volume}} 45 : 46 </strong> 47 {{#if volume.isCSI}} 48 <LinkTo 49 @route="csi.volumes.volume" 50 @model={{concat 51 (format-volume-name 52 source=volume.source 53 isPerAlloc=volume.volumeDeclaration.perAlloc 54 volumeExtension=this.task.allocation.volumeExtension) 55 "@" 56 volume.namespace.id 57 }} 58 > 59 {{format-volume-name 60 source=volume.source 61 isPerAlloc=volume.volumeDeclaration.perAlloc 62 volumeExtension=this.task.allocation.volumeExtension}} 63 </LinkTo> 64 {{else}} 65 {{volume.source}} 66 {{/if}} 67 </li> 68 {{/each}} 69 </ul> 70 </td> 71 <td data-test-cpu class="is-1 has-text-centered"> 72 {{#if this.task.isRunning}} 73 {{#if (and (not this.cpu) this.fetchStats.isRunning)}} 74 ... 75 {{else if this.statsError}} 76 <span 77 class="tooltip text-center" 78 role="tooltip" 79 aria-label="Couldn't collect stats" 80 > 81 {{x-icon "alert-triangle" class="is-warning"}} 82 </span> 83 {{else}} 84 <div 85 class="inline-chart is-small tooltip" 86 role="tooltip" 87 aria-label="{{format-hertz this.cpu.used}} 88 / 89 {{format-hertz this.taskStats.reservedCPU}}" 90 > 91 <progress 92 class="progress is-info is-small" 93 value="{{this.cpu.percent}}" 94 max="1" 95 > 96 {{this.cpu.percent}} 97 </progress> 98 </div> 99 {{/if}} 100 {{/if}} 101 </td> 102 <td data-test-mem class="is-1 has-text-centered"> 103 {{#if this.task.isRunning}} 104 {{#if (and (not this.memory) this.fetchStats.isRunning)}} 105 ... 106 {{else if this.statsError}} 107 <span 108 class="tooltip is-small text-center" 109 role="tooltip" 110 aria-label="Couldn't collect stats" 111 > 112 {{x-icon "alert-triangle" class="is-warning"}} 113 </span> 114 {{else}} 115 <div 116 class="inline-chart tooltip" 117 role="tooltip" 118 aria-label="{{format-bytes this.memory.used}} 119 / 120 {{format-bytes this.taskStats.reservedMemory start="MiB"}}" 121 > 122 <progress 123 class="progress is-danger is-small" 124 value="{{this.memory.percent}}" 125 max="1" 126 > 127 {{this.memory.percent}} 128 </progress> 129 </div> 130 {{/if}} 131 {{/if}} 132 </td>