Commit 63331a74 authored by rpereira2's avatar rpereira2

Stop using priority/weight keys in OOTB metrics dashboards

We're planning on removing the priority and weight keys and ordering
panels and groups in the order that they are defined.
parent e440df08
...@@ -9,7 +9,7 @@ module Metrics ...@@ -9,7 +9,7 @@ module Metrics
DASHBOARD_NAME = 'Cluster' DASHBOARD_NAME = 'Cluster'
# SHA256 hash of dashboard content # SHA256 hash of dashboard content
DASHBOARD_VERSION = '9349afc1d96329c08ab478ea0b77db94ee5cc2549b8c754fba67a7f424666b22' DASHBOARD_VERSION = 'e1a4f8cc2c044cf32273af2cd775eb484729baac0995db687d81d92686bf588e'
SEQUENCE = [ SEQUENCE = [
STAGES::ClusterEndpointInserter, STAGES::ClusterEndpointInserter,
......
...@@ -9,7 +9,7 @@ module Metrics ...@@ -9,7 +9,7 @@ module Metrics
DASHBOARD_NAME = N_('Overview') DASHBOARD_NAME = N_('Overview')
# SHA256 hash of dashboard content # SHA256 hash of dashboard content
DASHBOARD_VERSION = '4685fe386c25b1a786b3be18f79bb2ee9828019003e003816284cdb634fa3e13' DASHBOARD_VERSION = 'ce9ae27d2913f637de851d61099bc4151583eae68b1386a2176339ef6e653223'
SEQUENCE = [ SEQUENCE = [
STAGES::CommonMetricsInserter, STAGES::CommonMetricsInserter,
......
...@@ -2,12 +2,10 @@ dashboard: 'Cluster health' ...@@ -2,12 +2,10 @@ dashboard: 'Cluster health'
priority: 1 priority: 1
panel_groups: panel_groups:
- group: Cluster Health - group: Cluster Health
priority: 10
panels: panels:
- title: "CPU Usage" - title: "CPU Usage"
type: "area-chart" type: "area-chart"
y_label: "CPU (cores)" y_label: "CPU (cores)"
weight: 1
metrics: metrics:
- id: cluster_health_cpu_usage - id: cluster_health_cpu_usage
query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{id="/"}[15m])) by (job)) without (job)' query_range: 'avg(sum(rate(container_cpu_usage_seconds_total{id="/"}[15m])) by (job)) without (job)'
...@@ -24,7 +22,6 @@ panel_groups: ...@@ -24,7 +22,6 @@ panel_groups:
- title: "Memory Usage" - title: "Memory Usage"
type: "area-chart" type: "area-chart"
y_label: "Memory (GiB)" y_label: "Memory (GiB)"
weight: 1
metrics: metrics:
- id: cluster_health_memory_usage - id: cluster_health_memory_usage
query_range: 'avg(sum(container_memory_usage_bytes{id="/"}) by (job)) without (job) / 2^30' query_range: 'avg(sum(container_memory_usage_bytes{id="/"}) by (job)) without (job) / 2^30'
......
...@@ -2,12 +2,10 @@ dashboard: 'Environment metrics' ...@@ -2,12 +2,10 @@ dashboard: 'Environment metrics'
priority: 1 priority: 1
panel_groups: panel_groups:
- group: System metrics (Kubernetes) - group: System metrics (Kubernetes)
priority: 15
panels: panels:
- title: "Memory Usage (Total)" - title: "Memory Usage (Total)"
type: "area-chart" type: "area-chart"
y_label: "Total Memory Used (GB)" y_label: "Total Memory Used (GB)"
weight: 4
metrics: metrics:
- id: system_metrics_kubernetes_container_memory_total - id: system_metrics_kubernetes_container_memory_total
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -18,7 +16,6 @@ panel_groups: ...@@ -18,7 +16,6 @@ panel_groups:
- title: "Core Usage (Total)" - title: "Core Usage (Total)"
type: "area-chart" type: "area-chart"
y_label: "Total Cores" y_label: "Total Cores"
weight: 3
metrics: metrics:
- id: system_metrics_kubernetes_container_cores_total - id: system_metrics_kubernetes_container_cores_total
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -29,7 +26,6 @@ panel_groups: ...@@ -29,7 +26,6 @@ panel_groups:
- title: "Memory Usage (Pod average)" - title: "Memory Usage (Pod average)"
type: "line-chart" type: "line-chart"
y_label: "Memory Used per Pod (MB)" y_label: "Memory Used per Pod (MB)"
weight: 2
metrics: metrics:
- id: system_metrics_kubernetes_container_memory_average - id: system_metrics_kubernetes_container_memory_average
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -40,7 +36,6 @@ panel_groups: ...@@ -40,7 +36,6 @@ panel_groups:
- title: "Canary: Memory Usage (Pod Average)" - title: "Canary: Memory Usage (Pod Average)"
type: "line-chart" type: "line-chart"
y_label: "Memory Used per Pod (MB)" y_label: "Memory Used per Pod (MB)"
weight: 2
metrics: metrics:
- id: system_metrics_kubernetes_container_memory_average_canary - id: system_metrics_kubernetes_container_memory_average_canary
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -52,7 +47,6 @@ panel_groups: ...@@ -52,7 +47,6 @@ panel_groups:
- title: "Core Usage (Pod Average)" - title: "Core Usage (Pod Average)"
type: "line-chart" type: "line-chart"
y_label: "Cores per Pod" y_label: "Cores per Pod"
weight: 1
metrics: metrics:
- id: system_metrics_kubernetes_container_core_usage - id: system_metrics_kubernetes_container_core_usage
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -63,7 +57,6 @@ panel_groups: ...@@ -63,7 +57,6 @@ panel_groups:
- title: "Canary: Core Usage (Pod Average)" - title: "Canary: Core Usage (Pod Average)"
type: "line-chart" type: "line-chart"
y_label: "Cores per Pod" y_label: "Cores per Pod"
weight: 1
metrics: metrics:
- id: system_metrics_kubernetes_container_core_usage_canary - id: system_metrics_kubernetes_container_core_usage_canary
# Remove the second metric (after OR) when we drop support for K8s 1.13 # Remove the second metric (after OR) when we drop support for K8s 1.13
...@@ -75,7 +68,6 @@ panel_groups: ...@@ -75,7 +68,6 @@ panel_groups:
- title: "Knative function invocations" - title: "Knative function invocations"
type: "area-chart" type: "area-chart"
y_label: "Invocations" y_label: "Invocations"
weight: 1
metrics: metrics:
- id: system_metrics_knative_function_invocation_count - id: system_metrics_knative_function_invocation_count
query_range: 'sum(ceil(rate(istio_requests_total{destination_service_namespace="{{kube_namespace}}", destination_service=~"{{function_name}}.*"}[1m])*60))' query_range: 'sum(ceil(rate(istio_requests_total{destination_service_namespace="{{kube_namespace}}", destination_service=~"{{function_name}}.*"}[1m])*60))'
...@@ -83,12 +75,10 @@ panel_groups: ...@@ -83,12 +75,10 @@ panel_groups:
unit: requests unit: requests
# NGINX Ingress metrics for pre-0.16.0 versions # NGINX Ingress metrics for pre-0.16.0 versions
- group: Response metrics (NGINX Ingress VTS) - group: Response metrics (NGINX Ingress VTS)
priority: 10
panels: panels:
- title: "Throughput" - title: "Throughput"
type: "area-chart" type: "area-chart"
y_label: "Requests / Sec" y_label: "Requests / Sec"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_throughput_status_code - id: response_metrics_nginx_ingress_throughput_status_code
query_range: 'sum(rate(nginx_upstream_responses_total{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) by (status_code)' query_range: 'sum(rate(nginx_upstream_responses_total{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) by (status_code)'
...@@ -99,7 +89,6 @@ panel_groups: ...@@ -99,7 +89,6 @@ panel_groups:
y_label: "Latency (ms)" y_label: "Latency (ms)"
y_axis: y_axis:
format: milliseconds format: milliseconds
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_latency_pod_average - id: response_metrics_nginx_ingress_latency_pod_average
query_range: 'avg(nginx_upstream_response_msecs_avg{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"})' query_range: 'avg(nginx_upstream_response_msecs_avg{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"})'
...@@ -110,7 +99,6 @@ panel_groups: ...@@ -110,7 +99,6 @@ panel_groups:
y_label: "HTTP Errors (%)" y_label: "HTTP Errors (%)"
y_axis: y_axis:
format: percentHundred format: percentHundred
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_http_error_rate - id: response_metrics_nginx_ingress_http_error_rate
query_range: 'sum(rate(nginx_upstream_responses_total{status_code="5xx", upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) / sum(rate(nginx_upstream_responses_total{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) * 100' query_range: 'sum(rate(nginx_upstream_responses_total{status_code="5xx", upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) / sum(rate(nginx_upstream_responses_total{upstream=~"{{kube_namespace}}-{{ci_environment_slug}}-.*"}[2m])) * 100'
...@@ -118,12 +106,10 @@ panel_groups: ...@@ -118,12 +106,10 @@ panel_groups:
unit: "%" unit: "%"
# NGINX Ingress metrics for post-0.16.0 versions # NGINX Ingress metrics for post-0.16.0 versions
- group: Response metrics (NGINX Ingress) - group: Response metrics (NGINX Ingress)
priority: 10
panels: panels:
- title: "Throughput" - title: "Throughput"
type: "area-chart" type: "area-chart"
y_label: "Requests / Sec" y_label: "Requests / Sec"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_16_throughput_status_code - id: response_metrics_nginx_ingress_16_throughput_status_code
query_range: 'sum(label_replace(rate(nginx_ingress_controller_requests{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m]), "status_code", "${1}xx", "status", "(.)..")) by (status_code)' query_range: 'sum(label_replace(rate(nginx_ingress_controller_requests{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m]), "status_code", "${1}xx", "status", "(.)..")) by (status_code)'
...@@ -132,7 +118,6 @@ panel_groups: ...@@ -132,7 +118,6 @@ panel_groups:
- title: "Latency" - title: "Latency"
type: "area-chart" type: "area-chart"
y_label: "Latency (ms)" y_label: "Latency (ms)"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_16_latency_pod_average - id: response_metrics_nginx_ingress_16_latency_pod_average
query_range: 'sum(rate(nginx_ingress_controller_ingress_upstream_latency_seconds_sum{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) / sum(rate(nginx_ingress_controller_ingress_upstream_latency_seconds_count{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) * 1000' query_range: 'sum(rate(nginx_ingress_controller_ingress_upstream_latency_seconds_sum{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) / sum(rate(nginx_ingress_controller_ingress_upstream_latency_seconds_count{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) * 1000'
...@@ -141,19 +126,16 @@ panel_groups: ...@@ -141,19 +126,16 @@ panel_groups:
- title: "HTTP Error Rate" - title: "HTTP Error Rate"
type: "area-chart" type: "area-chart"
y_label: "HTTP Errors (%)" y_label: "HTTP Errors (%)"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_ingress_16_http_error_rate - id: response_metrics_nginx_ingress_16_http_error_rate
query_range: 'sum(rate(nginx_ingress_controller_requests{status=~"5.*",namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) / sum(rate(nginx_ingress_controller_requests{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) * 100' query_range: 'sum(rate(nginx_ingress_controller_requests{status=~"5.*",namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) / sum(rate(nginx_ingress_controller_requests{namespace="{{kube_namespace}}",ingress=~".*{{ci_environment_slug}}.*"}[2m])) * 100'
label: 5xx Errors (%) label: 5xx Errors (%)
unit: "%" unit: "%"
- group: Response metrics (HA Proxy) - group: Response metrics (HA Proxy)
priority: 10
panels: panels:
- title: "Throughput" - title: "Throughput"
type: "area-chart" type: "area-chart"
y_label: "Requests / Sec" y_label: "Requests / Sec"
weight: 1
metrics: metrics:
- id: response_metrics_ha_proxy_throughput_status_code - id: response_metrics_ha_proxy_throughput_status_code
query_range: 'sum(rate(haproxy_frontend_http_requests_total{ {{environment_filter}} }[2m])) by (code)' query_range: 'sum(rate(haproxy_frontend_http_requests_total{ {{environment_filter}} }[2m])) by (code)'
...@@ -162,19 +144,16 @@ panel_groups: ...@@ -162,19 +144,16 @@ panel_groups:
- title: "HTTP Error Rate" - title: "HTTP Error Rate"
type: "area-chart" type: "area-chart"
y_label: "Error Rate (%)" y_label: "Error Rate (%)"
weight: 1
metrics: metrics:
- id: response_metrics_ha_proxy_http_error_rate - id: response_metrics_ha_proxy_http_error_rate
query_range: 'sum(rate(haproxy_frontend_http_responses_total{code="5xx",{{environment_filter}} }[2m])) / sum(rate(haproxy_frontend_http_responses_total{ {{environment_filter}} }[2m]))' query_range: 'sum(rate(haproxy_frontend_http_responses_total{code="5xx",{{environment_filter}} }[2m])) / sum(rate(haproxy_frontend_http_responses_total{ {{environment_filter}} }[2m]))'
label: HTTP Errors (%) label: HTTP Errors (%)
unit: "%" unit: "%"
- group: Response metrics (AWS ELB) - group: Response metrics (AWS ELB)
priority: 10
panels: panels:
- title: "Throughput" - title: "Throughput"
type: "area-chart" type: "area-chart"
y_label: "Requests / Sec" y_label: "Requests / Sec"
weight: 1
metrics: metrics:
- id: response_metrics_aws_elb_throughput_requests - id: response_metrics_aws_elb_throughput_requests
query_range: 'sum(aws_elb_request_count_sum{ {{environment_filter}} }) / 60' query_range: 'sum(aws_elb_request_count_sum{ {{environment_filter}} }) / 60'
...@@ -183,7 +162,6 @@ panel_groups: ...@@ -183,7 +162,6 @@ panel_groups:
- title: "Latency" - title: "Latency"
type: "area-chart" type: "area-chart"
y_label: "Latency (ms)" y_label: "Latency (ms)"
weight: 1
metrics: metrics:
- id: response_metrics_aws_elb_latency_average - id: response_metrics_aws_elb_latency_average
query_range: 'avg(aws_elb_latency_average{ {{environment_filter}} }) * 1000' query_range: 'avg(aws_elb_latency_average{ {{environment_filter}} }) * 1000'
...@@ -192,19 +170,16 @@ panel_groups: ...@@ -192,19 +170,16 @@ panel_groups:
- title: "HTTP Error Rate" - title: "HTTP Error Rate"
type: "area-chart" type: "area-chart"
y_label: "Error Rate (%)" y_label: "Error Rate (%)"
weight: 1
metrics: metrics:
- id: response_metrics_aws_elb_http_error_rate - id: response_metrics_aws_elb_http_error_rate
query_range: 'sum(aws_elb_httpcode_backend_5_xx_sum{ {{environment_filter}} }) / sum(aws_elb_request_count_sum{ {{environment_filter}} })' query_range: 'sum(aws_elb_httpcode_backend_5_xx_sum{ {{environment_filter}} }) / sum(aws_elb_request_count_sum{ {{environment_filter}} })'
label: HTTP Errors (%) label: HTTP Errors (%)
unit: "%" unit: "%"
- group: Response metrics (NGINX) - group: Response metrics (NGINX)
priority: 10
panels: panels:
- title: "Throughput" - title: "Throughput"
type: "area-chart" type: "area-chart"
y_label: "Requests / Sec" y_label: "Requests / Sec"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_throughput_status_code - id: response_metrics_nginx_throughput_status_code
query_range: 'sum(rate(nginx_server_requests{server_zone!="*", server_zone!="_", {{environment_filter}} }[2m])) by (code)' query_range: 'sum(rate(nginx_server_requests{server_zone!="*", server_zone!="_", {{environment_filter}} }[2m])) by (code)'
...@@ -213,7 +188,6 @@ panel_groups: ...@@ -213,7 +188,6 @@ panel_groups:
- title: "Latency" - title: "Latency"
type: "area-chart" type: "area-chart"
y_label: "Latency (ms)" y_label: "Latency (ms)"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_latency - id: response_metrics_nginx_latency
query_range: 'avg(nginx_server_requestMsec{ {{environment_filter}} })' query_range: 'avg(nginx_server_requestMsec{ {{environment_filter}} })'
...@@ -224,7 +198,6 @@ panel_groups: ...@@ -224,7 +198,6 @@ panel_groups:
y_label: "HTTP 500 Errors / Sec" y_label: "HTTP 500 Errors / Sec"
y_axis: y_axis:
precision: 0 precision: 0
weight: 1
metrics: metrics:
- id: response_metrics_nginx_http_error_rate - id: response_metrics_nginx_http_error_rate
query_range: 'sum(rate(nginx_server_requests{code="5xx", {{environment_filter}} }[2m]))' query_range: 'sum(rate(nginx_server_requests{code="5xx", {{environment_filter}} }[2m]))'
...@@ -233,7 +206,6 @@ panel_groups: ...@@ -233,7 +206,6 @@ panel_groups:
- title: "HTTP Error Rate" - title: "HTTP Error Rate"
type: "area-chart" type: "area-chart"
y_label: "HTTP Errors (%)" y_label: "HTTP Errors (%)"
weight: 1
metrics: metrics:
- id: response_metrics_nginx_http_error_percentage - id: response_metrics_nginx_http_error_percentage
query_range: 'sum(rate(nginx_server_requests{code=~"5.*", host="*", {{environment_filter}} }[2m])) / sum(rate(nginx_server_requests{code="total", host="*", {{environment_filter}} }[2m])) * 100' query_range: 'sum(rate(nginx_server_requests{code=~"5.*", host="*", {{environment_filter}} }[2m])) / sum(rate(nginx_server_requests{code="total", host="*", {{environment_filter}} }[2m])) * 100'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment