Remove required_metrics and series attributes

- They are not used by the frontend.
This commit is contained in:
rpereira2 2019-04-15 22:02:40 +05:30 committed by syasonik
parent 8a51b21918
commit dcdcb37776

View file

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