diff options
author | Joshua Lambert <joshua@gitlab.com> | 2017-07-03 16:28:08 -0400 |
---|---|---|
committer | Joshua Lambert <joshua@gitlab.com> | 2017-07-03 16:28:08 -0400 |
commit | 7424eb05d7d6ead2cce2e1045f2d00d273f7540e (patch) | |
tree | 61114eac98b7c79d7a146ecd982438dae007afbd /config | |
parent | 049d4baed0f3532359feb729c5f0938d3d4518ef (diff) | |
download | gitlab-ce-7424eb05d7d6ead2cce2e1045f2d00d273f7540e.tar.gz |
Add ELB metrics
Diffstat (limited to 'config')
-rw-r--r-- | config/prometheus/additional_metrics.yml | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml index daecde49570..3f7e897e73a 100644 --- a/config/prometheus/additional_metrics.yml +++ b/config/prometheus/additional_metrics.yml @@ -1,5 +1,33 @@ +- group: AWS Elastic Load Balancer + priority: 10 + metrics: + - title: "Request Rate" + y_label: "Requests/Min" + required_metrics: + - aws_elb_request_count_sum + weight: 1 + queries: + - query_range: 'sum(aws_elb_request_count_sum{%{environment_filter}})' + label: Requests per minute + unit: requests + - title: "Latency" + y_label: "Average Latency" + required_metrics: + - aws_elb_latency_average + weight: 1 + queries: + - query_range: 'avg(aws_elb_latency_average{%{environment_filter}})' + unit: seconds + - title: "Error Rate" + y_label: "Percent HTTP Errors / minute" + required_metrics: + - aws_elb_request_count_sum + - aws_elb_httpcode_backend_5_xx_sum + weight: 1 + queries: + - query_range: 'sum(aws_elb_httpcode_backend_5_xx_sum{%{environment_filter}}) / sum(aws_elb_request_count_sum{%{environment_filter}})' - group: Kubernetes - priority: 1 + priority: 5 metrics: - title: "Memory usage" y_label: "Values" @@ -23,7 +51,13 @@ - container_cpu_usage_seconds_total weight: 1 queries: - - query_range: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) * 100' + - query_range: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) by (cpu) * 100' + series: + label: cpu + - value: cpu00 + color: red + - value: cpu01 + color: blue - title: "Current CPU usage" required_metrics: - container_cpu_usage_seconds_total |