Skip to content

Commit

Permalink
Merge pull request #40 from vyzigold/add_list_cmds
Browse files Browse the repository at this point in the history
Gather telemetry services statuses
  • Loading branch information
openshift-merge-bot[bot] authored Feb 29, 2024
2 parents 215d044 + ea55659 commit 23c6478
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions collection-scripts/gather_services_status
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ get_status() {
get_placement_status
;;
"ironic")
get_ironic_status
;;
get_ironic_status
;;
"aodh")
get_aodh_status
;;
"ceilometer")
get_ceilometer_status
;;
*) ;;
esac
}
Expand Down Expand Up @@ -137,6 +143,25 @@ get_ironic_status() {
# have the required elevated rights "out of the" box to gather it.
}

# Aodh service gathering - alarms
get_aodh_status() {
local AODH_PATH="$BASE_COLLECTION_PATH/ctlplane/aodh"
mkdir -p "$AODH_PATH"
run_bg ${BASH_ALIASES[os]} alarm list '>' "$AODH_PATH"/alarm_list
}

# Ceilometer, sg-core, prometheus service gathering - metrics
get_ceilometer_status() {
local CEILOMETER_PATH="$BASE_COLLECTION_PATH/ctlplane/ceilometer"
if /usr/bin/oc -n openstack get metricstorage metric-storage &> /dev/null; then
# For `openstack metric list` command to work we need ceilometer
# in the openstack as well as metricstorage deployed
# on openshift.
mkdir -p "$CEILOMETER_PATH"
run_bg ${BASH_ALIASES[os]} metric list --disable-rbac '>' "$CEILOMETER_PATH"/metric_list
fi
}

# first we gather generic status of the openstack ctlplane
# then we process the existing services (if an associated
# function has been defined)
Expand Down

0 comments on commit 23c6478

Please sign in to comment.