Mateusz Matuszkowiak | 489c84b | 2018-06-28 14:29:20 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | prometheus: |
| 3 | gainsight: |
| 4 | queries: |
Ildar Svetlov | 62c107d | 2020-10-09 15:29:44 +0400 | [diff] [blame] | 5 | vcpu_used: "'vCPU Used','max(sum by (instance) (avg_over_time(openstack_nova_used_vcpus[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 6 | vcpu_free: "'vCPU Free','max(sum by (instance) (avg_over_time(openstack_nova_free_vcpus[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 7 | vstorage_used: "'vStorage Used','max(sum by (instance) (avg_over_time(openstack_nova_used_disk[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 8 | vstorage_free: "'vStorage Free','max(sum by (instance) (avg_over_time(openstack_nova_free_disk[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 9 | vram_used: "'vRAM Used','max(sum by (instance) (avg_over_time(openstack_nova_used_ram[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 10 | vram_free: "'vRAM Free','max(sum by (instance) (avg_over_time(openstack_nova_free_ram[24h]) and on (hostname) (openstack_nova_service_status == 1 and openstack_nova_service_state == 1)))'" |
| 11 | instances: "'Instances','ceil(max(avg_over_time(openstack_nova_instances{state=\"active\"}[24h])))'" |
| 12 | compute_nodes: "'Compute Nodes','max(sum by (instance) (openstack_nova_services{binary=~\"nova.compute\"}))'" |
| 13 | tenants: "'Tenants','ceil(max(avg_over_time(openstack_keystone_tenants_total[24h])))'" |
Ildar Svetlov | 5cc2060 | 2020-08-14 12:24:05 +0400 | [diff] [blame] | 14 | cinder_api: "'Cinder API','avg_over_time(service_name:openstack_api_check_status:avg5m:for5m:ceil:avg5m:floor{service_name=\"cinderv2\"}[24h]) * 100'" |
| 15 | nova_api: "'Nova API','avg_over_time(service_name:openstack_api_check_status:avg5m:for5m:ceil:avg5m:floor{service_name=\"nova\"}[24h]) * 100'" |
| 16 | keystone_api: "'Keystone API','avg_over_time(service_name:openstack_api_check_status:avg5m:for5m:ceil:avg5m:floor{service_name=\"keystone\"}[24h]) * 100'" |
| 17 | glance_api: "'Glance API','avg_over_time(service_name:openstack_api_check_status:avg5m:for5m:ceil:avg5m:floor{service_name=\"glance\"}[24h]) * 100'" |
| 18 | neutron_api: "'Neutron API','avg_over_time(service_name:openstack_api_check_status:avg5m:for5m:ceil:avg5m:floor{service_name=\"neutron\"}[24h]) * 100'" |
Ildar Svetlov | c1a1d2e | 2019-04-27 22:50:07 +0400 | [diff] [blame] | 19 | nova_vm_all: "'Total VM number','avg_over_time(total:openstack_nova_instance_all[1d])'" |
| 20 | nova_vm_failed: "'Failed VM number','avg_over_time(total:openstack_nova_instance_failed[1d])'" |
| 21 | kpi_downtime: "'KPI Downtime','1 - avg_over_time(total:openstack_nova_instance_failed[1d]) / avg_over_time(total:openstack_nova_instance_all[1d])'" |
Michal Kobus | 7e50533 | 2019-05-28 13:16:15 +0200 | [diff] [blame] | 22 | compute_instance_create_start: "'VM creation start','sum(compute_instance_create_start_event_doc_count)'" |
| 23 | compute_instance_create_end: "'VM creation end','sum(compute_instance_create_end_event_doc_count)'" |
| 24 | compute_instance_create_error: "'VM creation error','sum(compute_instance_create_error_event_doc_count)'" |