grafana: fix nodepool-dib page

This must have had some issues later versions of grafana have
revealed.  Scale and use the last value for the "Last Build" field.
Fix a syntax issue with the build duration.

Change-Id: If0ece733a0acef9de059673848420155e4945718
This commit is contained in:
Ian Wienand 2022-03-10 13:46:29 +11:00
parent 6c67a882ef
commit c9529da49b
2 changed files with 54 additions and 36 deletions

View File

@ -21,10 +21,11 @@
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.%KEY%.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.%KEY%.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -48,5 +49,5 @@
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.%KEY%.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.%KEY%.status.duration.mean), "Time")
refId: A

View File

@ -42,10 +42,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.ubuntu-focal.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.ubuntu-focal.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -69,7 +70,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-focal.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-focal.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Ubuntu Bionic
@ -94,10 +95,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.ubuntu-bionic.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -121,7 +123,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Ubuntu Xenial
@ -146,10 +148,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.ubuntu-xenial.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -173,7 +176,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Centos 7
@ -198,10 +201,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.centos-7.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.centos-7.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -225,7 +229,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-7.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-7.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Centos 8 Stream
@ -250,10 +254,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.centos-8-stream.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.centos-8-stream.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -277,7 +282,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-8-stream.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-8-stream.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Centos 9 Stream
@ -302,10 +307,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.centos-9-stream.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.centos-9-stream.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -329,7 +335,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-9-stream.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-9-stream.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Fedora 35
@ -354,10 +360,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.fedora-35.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.fedora-35.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -381,7 +388,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-35.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-35.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Rocky Linux 8
@ -406,10 +413,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.rockylinux-8.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.rockylinux-8.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -433,7 +441,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.rockylinux-8.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.rockylinux-8.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Debian Bullseye
@ -458,10 +466,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.debian-bullseye.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.debian-bullseye.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -485,7 +494,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-bullseye.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-bullseye.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Debian Buster
@ -510,10 +519,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.debian-buster.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.debian-buster.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -537,7 +547,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Gentoo
@ -562,10 +572,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.gentoo-17-0-systemd.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.gentoo-17-0-systemd.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -589,7 +600,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.gentoo-17-0-systemd.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.gentoo-17-0-systemd.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : openSUSE 15.1
@ -614,10 +625,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.opensuse-15.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.opensuse-15.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -641,7 +653,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-15.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-15.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Centos 8-stream arm64
@ -666,10 +678,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.centos-8-stream-arm64.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.centos-8-stream-arm64.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -693,7 +706,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-8-stream-arm64.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-8-stream-arm64.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Debian Bullseye arm64
@ -718,10 +731,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.debian-bullseye-arm64.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.debian-bullseye-arm64.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -745,7 +759,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-bullseye-arm64.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-bullseye-arm64.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Debian Buster arm64
@ -770,10 +784,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.debian-buster-arm64.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.debian-buster-arm64.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -797,7 +812,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster-arm64.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster-arm64.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Ubuntu Focal arm64
@ -822,10 +837,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.ubuntu-focal-arm64.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.ubuntu-focal-arm64.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -849,7 +865,7 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-focal-arm64.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-focal-arm64.status.duration.mean), "Time")
refId: A
# AUTOGENERATED : Ubuntu Bionic arm64
@ -874,10 +890,11 @@ dashboard:
- title: Last build
type: singlestat
valueName: current
span: 2
format: dateTimeFromNow
targets:
- target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic-arm64.status.last_build"
- target: "scale(stats.gauges.nodepool.dib_image_build.ubuntu-bionic-arm64.status.last_build, 1000)"
valueFontSize: "50%"
- title: Image size
@ -901,5 +918,5 @@ dashboard:
- format: ms
min: 0
targets:
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic-arm64.status.duration.mean, 'None'), "Time")
- target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic-arm64.status.duration.mean), "Time")
refId: A