Commit dcdcb377 authored by rpereira2's avatar rpereira2 Committed by syasonik

Remove required_metrics and series attributes

- They are not used by the frontend.
parent 8a51b219
......@@ -8,28 +8,15 @@ panel_groups:
- title: "Throughput"
type: "area-chart"
y_label: "Requests / Sec"
required_metrics:
- nginx_upstream_responses_total
weight: 1
metrics:
- 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)'
unit: req / sec
label: Status Code
series:
- label: status_code
when:
- value: 2xx
color: green
- value: 4xx
color: orange
- value: 5xx
color: red
- title: "Latency"
type: "area-chart"
y_label: "Latency (ms)"
required_metrics:
- nginx_upstream_response_msecs_avg
weight: 1
metrics:
- id: response_metrics_nginx_ingress_latency_pod_average
......@@ -39,8 +26,6 @@ panel_groups:
- title: "HTTP Error Rate"
type: "area-chart"
y_label: "HTTP Errors"
required_metrics:
- nginx_upstream_responses_total
weight: 1
metrics:
- id: response_metrics_nginx_ingress_http_error_rate
......@@ -54,30 +39,15 @@ panel_groups:
- title: "Throughput"
type: "area-chart"
y_label: "Requests / Sec"
required_metrics:
- nginx_ingress_controller_requests
weight: 1
metrics:
- 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)'
unit: req / sec
label: Status Code
series:
- label: status_code
when:
- value: 2xx
color: green
- value: 3xx
color: blue
- value: 4xx
color: orange
- value: 5xx
color: red
- title: "Latency"
type: "area-chart"
y_label: "Latency (ms)"
required_metrics:
- nginx_ingress_controller_ingress_upstream_latency_seconds_sum
weight: 1
metrics:
- id: response_metrics_nginx_ingress_16_latency_pod_average
......@@ -87,8 +57,6 @@ panel_groups:
- title: "HTTP Error Rate"
type: "area-chart"
y_label: "HTTP Errors"
required_metrics:
- nginx_ingress_controller_requests
weight: 1
metrics:
- id: response_metrics_nginx_ingress_16_http_error_rate
......@@ -101,28 +69,15 @@ panel_groups:
- title: "Throughput"
type: "area-chart"
y_label: "Requests / Sec"
required_metrics:
- haproxy_frontend_http_requests_total
weight: 1
metrics:
- id: response_metrics_ha_proxy_throughput_status_code
query_range: 'sum(rate(haproxy_frontend_http_requests_total{%{environment_filter}}[2m])) by (code)'
unit: req / sec
label: Status Code
series:
- label: status_code
when:
- value: 2xx
color: green
- value: 4xx
color: yellow
- value: 5xx
color: red
- title: "HTTP Error Rate"
type: "area-chart"
y_label: "Error Rate (%)"
required_metrics:
- haproxy_frontend_http_responses_total
weight: 1
metrics:
- id: response_metrics_ha_proxy_http_error_rate
......@@ -135,8 +90,6 @@ panel_groups:
- title: "Throughput"
type: "area-chart"
y_label: "Requests / Sec"
required_metrics:
- aws_elb_request_count_sum
weight: 1
metrics:
- id: response_metrics_aws_elb_throughput_requests
......@@ -146,8 +99,6 @@ panel_groups:
- title: "Latency"
type: "area-chart"
y_label: "Latency (ms)"
required_metrics:
- aws_elb_latency_average
weight: 1
metrics:
- id: response_metrics_aws_elb_latency_average
......@@ -157,9 +108,6 @@ panel_groups:
- title: "HTTP Error Rate"
type: "area-chart"
y_label: "Error Rate (%)"
required_metrics:
- aws_elb_request_count_sum
- aws_elb_httpcode_backend_5_xx_sum
weight: 1
metrics:
- id: response_metrics_aws_elb_http_error_rate
......@@ -172,28 +120,15 @@ panel_groups:
- title: "Throughput"
type: "area-chart"
y_label: "Requests / Sec"
required_metrics:
- nginx_server_requests
weight: 1
metrics:
- id: response_metrics_nginx_throughput_status_code
query_range: 'sum(rate(nginx_server_requests{server_zone!="*", server_zone!="_", %{environment_filter}}[2m])) by (code)'
unit: req / sec
label: Status Code
series:
- label: status_code
when:
- value: 2xx
color: green
- value: 4xx
color: orange
- value: 5xx
color: red
- title: "Latency"
type: "area-chart"
y_label: "Latency (ms)"
required_metrics:
- nginx_server_requestMsec
weight: 1
metrics:
- id: response_metrics_nginx_latency
......@@ -203,8 +138,6 @@ panel_groups:
- title: "HTTP Error Rate"
type: "area-chart"
y_label: "HTTP 500 Errors / Sec"
required_metrics:
- nginx_server_requests
weight: 1
metrics:
- id: response_metrics_nginx_http_error_rate
......@@ -217,8 +150,6 @@ panel_groups:
- title: "Memory Usage (Total)"
type: "area-chart"
y_label: "Total Memory Used"
required_metrics:
- container_memory_usage_bytes
weight: 4
metrics:
- id: system_metrics_kubernetes_container_memory_total
......@@ -228,8 +159,6 @@ panel_groups:
- title: "Core Usage (Total)"
type: "area-chart"
y_label: "Total Cores"
required_metrics:
- container_cpu_usage_seconds_total
weight: 3
metrics:
- id: system_metrics_kubernetes_container_cores_total
......@@ -239,8 +168,6 @@ panel_groups:
- title: "Memory Usage (Pod average)"
type: "area-chart"
y_label: "Memory Used per Pod"
required_metrics:
- container_memory_usage_bytes
weight: 2
metrics:
- id: system_metrics_kubernetes_container_memory_average
......@@ -250,8 +177,6 @@ panel_groups:
- title: "Canary: Memory Usage (Pod Average)"
type: "area-chart"
y_label: "Memory Used per Pod"
required_metrics:
- container_memory_usage_bytes
weight: 2
metrics:
- id: system_metrics_kubernetes_container_memory_average_canary
......@@ -262,8 +187,6 @@ panel_groups:
- title: "Core Usage (Pod Average)"
type: "area-chart"
y_label: "Cores per Pod"
required_metrics:
- container_cpu_usage_seconds_total
weight: 1
metrics:
- id: system_metrics_kubernetes_container_core_usage
......@@ -273,8 +196,6 @@ panel_groups:
- title: "Canary: Core Usage (Pod Average)"
type: "area-chart"
y_label: "Cores per Pod"
required_metrics:
- container_cpu_usage_seconds_total
weight: 1
metrics:
- id: system_metrics_kubernetes_container_core_usage_canary
......@@ -285,8 +206,6 @@ panel_groups:
- title: "Knative function invocations"
type: "area-chart"
y_label: "Invocations"
required_metrics:
- istio_revision_request_count
weight: 1
metrics:
- id: system_metrics_knative_function_invocation_count
......
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