blob: b5b1693c8ed48f5ffa088607d6b75f6f165e0c7d [file] [log] [blame]
{%- from "nova/map.jinja" import compute with context %}
parameters:
{%- if compute is defined and compute.get('enabled', False) and compute.get('ceph', {}).get('ephemeral', False) %}
nova_compute_ceph_ephemeral: True
{%- endif %}
dashboard:
{%- if pillar.get('fluentd', {}).get('agent', {}).get('enabled', False) %}
nova_overview_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/nova_overview_prometheus.json
{%- else %}
nova_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/nova_prometheus.json
{%- endif %}
nova_hypervisor_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/nova_hypervisor_prometheus.json
nova_utilization_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/nova_utilization_prometheus.json
nova_instances_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/nova_instances_prometheus.json
openstack_overview_prometheus:
datasource: prometheus
format: json
template: nova/files/grafana_dashboards/openstack_overview_prometheus.json
nova_influxdb:
datasource: influxdb
format: json
template: nova/files/grafana_dashboards/nova_influxdb.json
hypervisor_influxdb:
datasource: influxdb
format: json
template: nova/files/grafana_dashboards/hypervisor_influxdb.json
service_level:
datasource: influxdb
row:
nova-service-level:
title: Nova Service Levels
panel:
nova-control-uptime:
title: Nova Control Uptime
target:
nova-control-healthy-status:
alias: "Healthy"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-control' AND value = 0 AND $timeFilter
nova-control-degraded-unknwon-status:
alias: "Degraded or Unknwon"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-control' AND (value = 1 OR value = 2 OR value = 3) AND $timeFilter
nova-control-down-status:
alias: "Down"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-control' AND value = 4 AND $timeFilter
nova-data-uptime:
title: Nova Data Uptime
target:
nova-data-healthy-status:
alias: "Healthy"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-data' AND value = 0 AND $timeFilter
nova-data-degraded-unknwon-status:
alias: "Degraded or Unknwon"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-data' AND (value = 1 OR value = 2 OR value = 3) AND $timeFilter
nova-data-down-status:
alias: "Down"
rawQuery: true
query: SELECT count(value) FROM cluster_status WHERE environment_label = '$environment' AND cluster_name = 'nova-data' AND value = 4 AND $timeFilter
nova-api-availability:
title: Nova API Availability
target:
nova-api-up-status:
alias: "Up"
rawQuery: true
query: SELECT count(value) FROM openstack_check_api WHERE environment_label = '$environment' AND service = 'nova-api' AND value = 1 AND $timeFilter
nova-api-down-status:
alias: "Down"
rawQuery: true
query: SELECT count(value) FROM openstack_check_api WHERE environment_label = '$environment' AND service = 'nova-api' AND value = 0 AND $timeFilter
nova-api-requests:
title: Nova API Requests
target:
nova-api-okay-status:
alias: "Okay"
rawQuery: true
query: SELECT count(max) FROM openstack_nova_http_response_times WHERE environment_label = '$environment' AND (http_status = '2xx' OR http_status = '3xx') AND $timeFilter
nova-api-error-status:
alias: "Error"
rawQuery: true
query: SELECT count(max) FROM openstack_nova_http_response_times WHERE environment_label = '$environment' AND http_status = '4xx' AND $timeFilter
nova-api-fatal-status:
alias: "Fatal"
rawQuery: true
query: SELECT count(max) FROM openstack_nova_http_response_times WHERE environment_label = '$environment' AND http_status = '5xx' AND $timeFilter
main_influxdb:
datasource: influxdb
row:
ost-control-plane:
title: OpenStack Control Plane
panel:
nova:
title: Nova
links:
- dashboard: Nova
title: Nova
type: dashboard
target:
cluster_status:
rawQuery: true
query: SELECT last(value) FROM cluster_status WHERE cluster_name = 'nova-control' AND environment_label = '$environment' AND $timeFilter GROUP BY time($interval) fill(null)
ost-data-plane:
title: OpenStack Data Plane
panel:
nova:
title: Nova
links:
- dashboard: Nova
title: Nova
type: dashboard
target:
cluster_status:
rawQuery: true
query: SELECT last(value) FROM cluster_status WHERE cluster_name = 'nova-data' AND environment_label = '$environment' AND $timeFilter GROUP BY time($interval) fill(null)
main_prometheus:
datasource: prometheus
row:
ost-control-plane:
title: OpenStack Control Plane
panel:
nova:
title: Nova
links:
- dashboard: Nova
title: Nova
type: dashboard
target:
cluster_status:
expr: avg(openstack_api_check_status{service="nova"})