diff --git a/docs/prometheus-openstack-metrics-exporter.md b/docs/prometheus-openstack-metrics-exporter.md index e72555be..80bccf2f 100644 --- a/docs/prometheus-openstack-metrics-exporter.md +++ b/docs/prometheus-openstack-metrics-exporter.md @@ -17,36 +17,55 @@ Modify genestack/helm-configs/monitoring/openstack-metrics-exporter/clouds-yaml See the [documentation](openstack-clouds.md) on generating your own `clouds.yaml` file which can be used to populate the monitoring configuration file. -From your generated `clouds.yaml` file, create a new manifest for your cloud config. +From your generated `clouds.yaml` file, create a new manifest for your cloud config: ``` shell printf -v m "$(cat ~/.config/openstack/clouds.yaml)"; \ - m="$m" yq -n '."clouds.yaml" = strenv(m)' | \ - tee /tmp/generated-clouds.yaml + m="$m" yq -I6 -n '."clouds.yaml" = strenv(m)' | \ + tee /tmp/generated-clouds-yaml ``` !!! example "generated file will look similar to this" ``` yaml - --8<-- "helm-configs/monitoring/openstack-metrics-exporter/clouds-yaml" + --8<-- "base-helm-configs/monitoring/openstack-metrics-exporter/clouds-yaml" ``` -Add keystone certificates to the generated clouds yaml +If you're using self-signed certs then you may need to add keystone certificates to the generated clouds yaml: ``` shell ks_cert="$(kubectl get secret -n openstack keystone-tls-public -o json | jq -r '.data."tls.crt"' | base64 -d)" \ yq -I6 '."clouds.yaml" |= (from_yaml | .clouds.default.cacert = strenv(ks_cert) | to_yaml)' \ -