Commit cab6a47c authored by Ben Kochie's avatar Ben Kochie

Fix rules for Prometheus 2.5.0

* Update test to use Prometheus 2.5.0
* Fix problems with alerting templates.
parent b535e5f8
FROM ruby:2.5.1-alpine3.7
ENV PROMETHEUS_VERSION 2.1.0
ENV PROMETHEUS_VERSION 2.5.0
RUN apk add --no-cache wget tar && \
wget -O prometheus.tar.gz https://github.com/prometheus/prometheus/releases/download/v$PROMETHEUS_VERSION/prometheus-$PROMETHEUS_VERSION.linux-amd64.tar.gz && \
......
......@@ -223,14 +223,14 @@ groups:
severity: critical
channel: database
annotations:
description: |
"Really high load in the batabase for the last minute, there are {{
query 'sum(pg_slow_queries_total)' }} slow queries, {{ query
'sum(pg_blocked_queries_total)' }} and {{ query
'sum(pg_locks_count{datname=\'gitlabhq_production\'})' }} locks.
description: >
Really high load in the batabase for the last minute, there are
{{ query "sum(pg_slow_queries_total)" }} slow queries,
{{ query "sum(pg_blocked_queries_total)" }} and
{{ query "sum(pg_locks_count{datname=\"gitlabhq_production\"})" }} locks.
Check http://dashboards.gitlab.net/dashboard/db/postgres-stats and
http://dashboards.gitlab.net/dashboard/db/postgres-queries to get
more data."
more data.
runbook: "troubleshooting/postgres.md#load"
title: 'High load in database {{ $labels.fqdn }}: {{$value}}'
- alert: PostgreSQL_TooManyDeadTuples
......
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