Hi,
I need help to deploy prometheus-openstack-exporter charm. It is deployed successfully on 10.5.40.60, but when I checked with browser on 10.5.40.60:9183 there is no metric to be found.
I configured os-credentials:
{
username: 'admin',
password: 'xxxxxx',
tenant_name: '',
region_name: 'RegionOne',
auth_url: 'https://10.5.40.112:5000/v3'
}
Did I miss something here? Please kindly help. Thank you.
freyes
(Felipe Reyes)
20 July 2022 20:35
2
Hi,
The way I configure the prometheus-openstack-exporter charm is relating it to the keystone via the identity-credentials interface
juju add-relation keystone:identity-credentials prometheus-openstack-exporter:identity-credentials
I recommend you to try that approach instead of passing the credentials over the configuration.
Best,
Hi,
Thank you for your reply. I related the prometheus-openstack-exporter to keystone as your recommendation, but still get nothing on http://a.b.c.d:9183/metrics .
Do I need to relate it to other charms or install other charms? Thank you.
Update: I’ve checked inside the container and found that prometheus-openstack-exporter service failed SSL cert verification:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
Since I’m using self-signed certificate, is there any way to disable this check?
I checked this link:
https://docs.openstack.org/os-client-config/latest/user/configuration.html
And modify file /var/snap/prometheus-openstack-exporter/34/prometheus-openstack-exporter.yaml inside the container, added following lines:
#cloud: RegionOne
clouds:
default:
region_name: RegionOne
verify: false
Restart the service but still have the problem.
Please kindly help. Thanks!