Files
project-config/grafana/create-nodepool.sh
James E. Blair d709e82f70 Add zuul-launcher dashboards
This adds dashboards for the newly-available zuul-launcher stats.

Change-Id: I35174a2af2d57f12a20ba88e4324d84648931bc9
Depends-On: https://review.opendev.org/c/opendev/grafyaml/+/949248
2025-05-12 12:03:19 -07:00

46 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
#
# Creates graphs for nodepool regions from a given provider
#
# Note we are somewhat particular about keeping these separate to
# avoid the idea that we are providing some sort of cross-provider
# benchmark.
#
function create {
local provider="$1"
local stat_list="$2"
local output_file="$3"
sed -e "s/%PROVIDER%/${provider}/; " \
-e "s/%STAT_LIST%/${stat_list}/" \
-e "s/%OUTPUT_FILE%/${output_file}/" \
nodepool.template > ${output_file}
}
create Rackspace 'rax-*' nodepool-rax.yaml
create Rackspace-Flex 'raxflex-*' nodepool-raxflex.yaml
create OVH 'ovh-*' nodepool-ovh.yaml
create Vexxhost 'vexxhost-*' nodepool-vexxhost.yaml
create OSUOSL 'osuosl-*' nodepool-osuosl.yaml
create OpenMetal 'openmetal-*' nodepool-openmetal.yaml
function create_zuul {
local provider="$1"
local stat_list="$2"
local output_file="$3"
sed -e "s/%PROVIDER%/${provider}/; " \
-e "s/%STAT_LIST%/${stat_list}/" \
-e "s/%OUTPUT_FILE%/${output_file}/" \
zuul-launcher.template > ${output_file}
}
create_zuul Rackspace 'rax' zuul-launcher-rax.yaml
create_zuul Rackspace-Flex 'raxflex' zuul-launcher-raxflex.yaml
create_zuul OVH 'ovh' zuul-launcher-ovh.yaml
create_zuul Vexxhost 'vexxhost' zuul-launcher-vexxhost.yaml
create_zuul OSUOSL 'osuosl' zuul-launcher-osuosl.yaml
create_zuul OpenMetal 'openmetal' zuul-launcher-openmetal.yaml