Commit fb614429 authored by Joshua Lambert's avatar Joshua Lambert

Add NGINX metrics and other minor changes

parent 7424eb05
- group: AWS Elastic Load Balancer - group: AWS Elastic Load Balancer
priority: 10 priority: 10
metrics: metrics:
- title: "Request Rate" - title: "Throughput"
y_label: "Requests/Min" y_label: "Requests / Sec"
required_metrics: required_metrics:
- aws_elb_request_count_sum - aws_elb_request_count_sum
weight: 1 weight: 1
queries: queries:
- query_range: 'sum(aws_elb_request_count_sum{%{environment_filter}})' - query_range: 'sum(aws_elb_request_count_sum{%{environment_filter}}) * 60'
label: Requests per minute label: Total
unit: requests unit: req / sec
- title: "Latency" - title: "Latency"
y_label: "Average Latency" y_label: "Latency (ms)"
required_metrics: required_metrics:
- aws_elb_latency_average - aws_elb_latency_average
weight: 1 weight: 1
queries: queries:
- query_range: 'avg(aws_elb_latency_average{%{environment_filter}})' - query_range: 'avg(aws_elb_latency_average{%{environment_filter}}) * 1000'
unit: seconds label: Average
- title: "Error Rate" unit: ms
y_label: "Percent HTTP Errors / minute" - title: "HTTP Error Rate"
y_label: "Error Rate (%)"
required_metrics: required_metrics:
- aws_elb_request_count_sum - aws_elb_request_count_sum
- aws_elb_httpcode_backend_5_xx_sum - aws_elb_httpcode_backend_5_xx_sum
weight: 1 weight: 1
queries: queries:
- 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}})'
- group: Kubernetes label: HTTP Errors
priority: 5 unit: "%"
- group: NGINX
priority: 10
metrics: metrics:
- title: "Memory usage" - title: "Throughput"
y_label: "Values" y_label: "Requests / Sec"
required_metrics: required_metrics:
- container_memory_usage_bytes - nginx_requests_total
weight: 1 weight: 1
queries: queries:
- query_range: 'avg(container_memory_usage_bytes{%{environment_filter}}) / 2^20' - query_range: 'sum(rate(nginx_requests_total{server_zone!="*", server_zone!="_", %{environment_filter}}[2m]))'
label: Container memory label: Total
unit: MiB unit: req / sec
- title: "Current memory usage" - title: "Latency"
y_label: "Latency (ms)"
required_metrics: required_metrics:
- container_memory_usage_bytes - nginx_upstream_response_msecs_avg
weight: 1 weight: 1
queries: queries:
- query: 'avg(container_memory_usage_bytes{%{environment_filter}}) / 2^20' - query_range: 'avg(nginx_upstream_response_msecs_avg{%{environment_filter}}) * 1000'
display_empty: false label: Upstream
unit: MiB unit: ms
- title: "CPU usage" - title: "HTTP Error Rate"
y_label: "Error Rate (%)"
required_metrics: required_metrics:
- container_cpu_usage_seconds_total - nginx_responses_total
weight: 1
queries:
- query_range: 'sum(nginx_responses_total{status_code="5xx", %{environment_filter}}) / sum(nginx_responses_total{server_zone!="*", server_zone!="_", %{environment_filter}})'
label: HTTP Errors
unit: "%"
- group: Kubernetes
priority: 5
metrics:
- title: "Memory Usage"
y_label: "Memory Usage (MB)"
required_metrics:
- container_memory_usage_bytes
weight: 1 weight: 1
queries: queries:
- query_range: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) by (cpu) * 100' - query_range: '(sum(container_memory_usage_bytes{container_name!="POD",%{environment_filter}}) / count(container_memory_usage_bytes{container_name!="POD",%{environment_filter}})) /1024/1024'
series: label: Average
label: cpu unit: MB
- value: cpu00 - title: "CPU Utilization"
color: red y_label: "CPU Utilization (%)"
- value: cpu01
color: blue
- title: "Current CPU usage"
required_metrics: required_metrics:
- container_cpu_usage_seconds_total - container_cpu_usage_seconds_total
weight: 1 weight: 1
queries: queries:
- query: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) * 100' - query_range: 'sum(rate(container_cpu_usage_seconds_total{container_name!="POD",%{environment_filter}}[2m])) / count(container_cpu_usage_seconds_total{container_name!="POD",%{environment_filter}}) * 100'
label: Average
unit: "%"
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