Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gather telemetry services statuses #40

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading