# AUTOGENERATED : %TITLE%

    - title: %TITLE%
      showTitle: true
      height: 200px
      panels:
        - title: Build status
          colorBackground: true
          type: singlestat
          valueName: current
          valueMaps:
            - value: 0
              text: "OK"
            - value: 1
              text: "FAILED"
          thresholds: 0.1,0.9
          span: 2
          targets:
            - target: "stats.gauges.nodepool.dib_image_build.%KEY%.status.rc"
          valueFontSize: "50%"

        - title: Last build
          type: singlestat
          span: 2
          format: dateTimeFromNow
          targets:
            - target: "stats.gauges.nodepool.dib_image_build.%KEY%.status.last_build"
          valueFontSize: "50%"

        - title: Image size
          type: graph
          span: 3
          yaxes:
            - format: decbytes
              min: 0
            - format: decbytes
              min: 0
          targets:
            - target: aliasByNode(stats.gauges.nodepool.dib_image_build.%KEY%.*.size, 5)
              refId: A

        - title: Build duration
          type: graph
          span: 3
          yaxes:
            - format: ms
              min: 0
            - format: ms
              min: 0
          targets:
            - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.%KEY%.status.duration.mean, 'None'), "Time")
              refId: A