Simpliest exporter for metrics that not covered by vanilla openstack-exporter
# HELP openstack_peepo_exporter_instances_per_hypervisor Number of instances per hypervisor
# TYPE openstack_peepo_exporter_instances_per_hypervisor gauge
openstack_peepo_exporter_instances_per_hypervisor{hypervisor_id="98cdd331-8bea-47fe-93e1-6e3bd24a3c72",hypervisor_name="compute-1"} 1337.0
openstack_peepo_exporter_instances_per_hypervisor{hypervisor_id="9f9b83fe-78b1-470d-9c4a-4eb64fb5116d",hypervisor_name="compute-2"} 228.0
openstack_peepo_exporter_instances_per_hypervisor{hypervisor_id="53785372-dedc-47fb-bd45-6d9e6518abac",hypervisor_name="compute-3"} 322.0
- service: placement
method: GET
path: /resource_providers
- service: placement
method: GET
path: /resource_providers/{provider_id}/allocations
- Create
clouds.yaml
as below with your credentials
clouds:
openstack:
auth:
auth_url: http://1.3.3.7:5000
application_credential_id: "1337"
application_credential_secret: "T0p-s3cr3t"
region_name: "RegionOne"
interface: "public"
identity_api_version: 3
auth_type: "v3applicationcredential"
docker compose up -d
- Create secret from your
clouds.yaml
kubectl create secret generic openstack-clouds-yaml --from-file=clouds.yaml=clouds.yaml
- Create deployment
kubectl apply -f kubernetes/01-deployment.yaml
- Expose through service/ingress/whatever you want