diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 15:08:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 15:08:44 +0000 |
commit | bcc77054ee9aefd1e332e04a4189390fd5a3112e (patch) | |
tree | e6e1908c310e4733038794e932196cae0d66ba9a /config | |
parent | 05b5c609cb8c260b10c2eb1b92b711dc82d32c3f (diff) | |
download | gitlab-ce-bcc77054ee9aefd1e332e04a4189390fd5a3112e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r-- | config/prometheus/self_monitoring_default.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/config/prometheus/self_monitoring_default.yml b/config/prometheus/self_monitoring_default.yml new file mode 100644 index 00000000000..dc2361fb3bc --- /dev/null +++ b/config/prometheus/self_monitoring_default.yml @@ -0,0 +1,39 @@ +dashboard: 'Default dashboard' +priority: 1 +panel_groups: +- group: Web Service + panels: + - title: Web Service - Error Ratio + type: line-chart + y_label: "Unhandled Exceptions (%)" + metrics: + - id: wser_web_service + query_range: 'max(max_over_time(gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="web", stage="main"}[1m])) by (type) * 100' + unit: "%" + label: "Error Ratio" + - id: wser_degradation_slo + query_range: 'avg(slo:max:gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="web", stage="main"}) or avg(slo:max:gitlab_service_errors:ratio{type="web"}) * 100' + unit: "%" + label: "Degradation SLO" + - id: wser_outage_slo + query_range: '2 * (avg(slo:max:gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="web", stage="main"}) or avg(slo:max:gitlab_service_errors:ratio{type="web"})) * 100' + unit: "%" + label: "Outage SLO" +- group: API Service + panels: + - title: API Service - Error Ratio + type: line-chart + y_label: "Unhandled Exceptions (%)" + metrics: + - id: aser_web_service + query_range: 'max(max_over_time(gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="api", stage="main"}[1m])) by (type) * 100' + unit: "%" + label: "Error Ratio" + - id: aser_degradation_slo + query_range: 'avg(slo:max:gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="api", stage="main"}) or avg(slo:max:gitlab_service_errors:ratio{type="web"}) * 100' + unit: "%" + label: "Degradation SLO" + - id: aser_outage_slo + query_range: '2 * (avg(slo:max:gitlab_service_errors:ratio{environment="{{ci_environment_slug}}", type="api", stage="main"}) or avg(slo:max:gitlab_service_errors:ratio{type="web"})) * 100' + unit: "%" + label: "Outage SLO" |