diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-16 20:54:15 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-16 20:54:15 +0200 |
commit | 8b69523b014c9557bcb03bf0e695331ea9621312 (patch) | |
tree | bda7ddfb61bffefb88131266aeff2a2d2ecd1957 /config/prometheus | |
parent | 6e4d5334211d73dd731cb8757b2ef10e8ea428b7 (diff) | |
download | gitlab-ce-8b69523b014c9557bcb03bf0e695331ea9621312.tar.gz |
move additional_metrics.yaml into prometheus/ config folder
Diffstat (limited to 'config/prometheus')
-rw-r--r-- | config/prometheus/additional_metrics.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/config/prometheus/additional_metrics.yml b/config/prometheus/additional_metrics.yml new file mode 100644 index 00000000000..daecde49570 --- /dev/null +++ b/config/prometheus/additional_metrics.yml @@ -0,0 +1,32 @@ +- group: Kubernetes + priority: 1 + metrics: + - title: "Memory usage" + y_label: "Values" + required_metrics: + - container_memory_usage_bytes + weight: 1 + queries: + - query_range: 'avg(container_memory_usage_bytes{%{environment_filter}}) / 2^20' + label: Container memory + unit: MiB + - title: "Current memory usage" + required_metrics: + - container_memory_usage_bytes + weight: 1 + queries: + - query: 'avg(container_memory_usage_bytes{%{environment_filter}}) / 2^20' + display_empty: false + unit: MiB + - title: "CPU usage" + required_metrics: + - container_cpu_usage_seconds_total + weight: 1 + queries: + - query_range: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) * 100' + - title: "Current CPU usage" + required_metrics: + - container_cpu_usage_seconds_total + weight: 1 + queries: + - query: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) * 100' |