Step: shiftstack-monitor-expose

Uploads metrics from $SHARED_DIR to a well-known Swift container.

Container image used for this step: openstack-installer

openstack-installer resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
OS_CLOUD Parameter[?] (default: openstack)

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/usr/bin/env bash

set -Eeuo pipefail

export OS_CLOUD
export OS_CLIENT_CONFIG_FILE=/var/run/cluster-secrets/openstack/clouds.yaml

for metrics_file in "${SHARED_DIR}"/metrics-*.txt; do
	openstack object create \
		--name "$(basename "$metrics_file")" \
		shiftstack-metrics \
		"$metrics_file"
done

Properties

Property Value Description
Resource requests (cpu) 1000m Used in .resources.requests of the pod running this step.
Resource requests (memory) 100Mi Used in .resources.requests of the pod running this step.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/shiftstack/monitor/expose/shiftstack-monitor-expose-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub