diff --git a/grafana/nodepool-dib.image.template b/grafana/nodepool-dib.image.template index fb023bbac5..ff189c585a 100644 --- a/grafana/nodepool-dib.image.template +++ b/grafana/nodepool-dib.image.template @@ -16,7 +16,15 @@ thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.%KEY%.qcow2.rc" + - 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 @@ -40,5 +48,5 @@ - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.%KEY%.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.%KEY%.status.duration.mean, 'None'), "Time") refId: A diff --git a/grafana/nodepool-dib.yaml b/grafana/nodepool-dib.yaml index fb9900b247..91f41ab7ef 100644 --- a/grafana/nodepool-dib.yaml +++ b/grafana/nodepool-dib.yaml @@ -37,7 +37,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic.status.last_build" valueFontSize: "50%" - title: Image size @@ -61,7 +69,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Ubuntu Xenial @@ -81,7 +89,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial.status.last_build" valueFontSize: "50%" - title: Image size @@ -105,7 +121,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Ubuntu Trusty @@ -125,7 +141,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.ubuntu-trusty.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-trusty.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-trusty.status.last_build" valueFontSize: "50%" - title: Image size @@ -149,7 +173,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-trusty.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-trusty.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Centos 7 @@ -169,7 +193,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.centos-7.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.centos-7.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.centos-7.status.last_build" valueFontSize: "50%" - title: Image size @@ -193,7 +225,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-7.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.centos-7.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Fedora 29 @@ -213,7 +245,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.fedora-29.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.fedora-29.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.fedora-29.status.last_build" valueFontSize: "50%" - title: Image size @@ -237,7 +277,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-29.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-29.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Fedora 30 @@ -257,7 +297,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.fedora-30.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.fedora-30.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.fedora-30.status.last_build" valueFontSize: "50%" - title: Image size @@ -281,7 +329,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-30.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.fedora-30.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Debian Buster @@ -301,7 +349,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.debian-buster.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.debian-buster.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.debian-buster.status.last_build" valueFontSize: "50%" - title: Image size @@ -325,7 +381,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-buster.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Debian Stretch @@ -345,7 +401,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.debian-stretch.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.debian-stretch.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.debian-stretch.status.last_build" valueFontSize: "50%" - title: Image size @@ -369,7 +433,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-stretch.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.debian-stretch.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Gentoo @@ -389,7 +453,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.gentoo-17-0-systemd.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.gentoo-17-0-systemd.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.gentoo-17-0-systemd.status.last_build" valueFontSize: "50%" - title: Image size @@ -413,7 +485,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.gentoo-17-0-systemd.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.gentoo-17-0-systemd.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : openSUSE 15.1 @@ -433,7 +505,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.opensuse-15.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.opensuse-15.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.opensuse-15.status.last_build" valueFontSize: "50%" - title: Image size @@ -457,7 +537,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-15.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-15.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : openSUSE Tumbleweed @@ -477,7 +557,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.opensuse-tumbleweed.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.opensuse-tumbleweed.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.opensuse-tumbleweed.status.last_build" valueFontSize: "50%" - title: Image size @@ -501,7 +589,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-tumbleweed.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.opensuse-tumbleweed.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Ubuntu Bionic arm64 @@ -521,7 +609,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic-arm64.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic-arm64.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-bionic-arm64.status.last_build" valueFontSize: "50%" - title: Image size @@ -545,7 +641,7 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic-arm64.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-bionic-arm64.status.duration.mean, 'None'), "Time") refId: A # AUTOGENERATED : Ubuntu Xenial arm64 @@ -565,7 +661,15 @@ dashboard: thresholds: 0.1,0.9 span: 2 targets: - - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial-arm64.qcow2.rc" + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial-arm64.status.rc" + valueFontSize: "50%" + + - title: Last build + type: singlestat + span: 2 + format: dateTimeFromNow + targets: + - target: "stats.gauges.nodepool.dib_image_build.ubuntu-xenial-arm64.status.last_build" valueFontSize: "50%" - title: Image size @@ -589,5 +693,5 @@ dashboard: - format: ms min: 0 targets: - - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial-arm64.qcow2.duration.mean, 'None'), "Time") + - target: alias(keepLastValue(stats.timers.nodepool.dib_image_build.ubuntu-xenial-arm64.status.duration.mean, 'None'), "Time") refId: A