Prometheus-openstack-exporter generates no metrics


I need help to deploy prometheus-openstack-exporter charm. It is deployed successfully on, but when I checked with browser on there is no metric to be found.

I configured os-credentials:

    username: 'admin',
    password: 'xxxxxx',
    tenant_name: '',
    region_name: 'RegionOne',
    auth_url: ''

Did I miss something here? Please kindly help. Thank you.


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.



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:

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!