Update alerts (remove instance, translations)

This commit is contained in:
pz2891 2021-04-14 19:10:42 +02:00
parent fd5ad8d5ac
commit 226b55b0d1

View file

@ -15,7 +15,7 @@ groups:
labels: labels:
severity: critical severity: critical
annotations: annotations:
summary: Serveur PostgreSQL down (instance {{ raw('$labels.instance') }}) summary: Serveur PostgreSQL down
- alert: PostgresqlRestarted - alert: PostgresqlRestarted
expr: time() - pg_postmaster_start_time_seconds < 60 expr: time() - pg_postmaster_start_time_seconds < 60
@ -23,7 +23,7 @@ groups:
labels: labels:
severity: critical severity: critical
annotations: annotations:
summary: Serveur PostgreSQL redémarré (instance {{ raw('$labels.instance') }}) summary: Serveur PostgreSQL redémarré
- alert: PostgresqlExporterError - alert: PostgresqlExporterError
expr: pg_exporter_last_scrape_error > 0 expr: pg_exporter_last_scrape_error > 0
@ -31,7 +31,7 @@ groups:
labels: labels:
severity: critical severity: critical
annotations: annotations:
summary: Erreur dans l'exporter Postgresql (instance {{ raw('$labels.instance') }}) summary: Erreur dans l'exporter PostgreSQL
- alert: PostgresqlReplicationLag - alert: PostgresqlReplicationLag
expr: expr:
@ -44,7 +44,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
La réplication PostgreSQL lag ({{ raw('$value') }} > 30s) La réplication PostgreSQL lag ({{ raw('$value') }} > 30s)
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname')}} ) (base de données {{ raw('$labels.datname')}} )
- alert: PostgresqlTableNotVaccumed - alert: PostgresqlTableNotVaccumed
expr: expr:
@ -56,7 +56,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Le démon autovacuum n'a pas été lancé depuis 24h Le démon autovacuum n'a pas été lancé depuis 24h
(Instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }} ) (base de données {{ raw('$labels.datname') }} )
- alert: PostgresqlTableNotAnalyzed - alert: PostgresqlTableNotAnalyzed
expr: expr:
@ -68,7 +68,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Table non-analysée depuis 24h Table non-analysée depuis 24h
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}) (base de données {{ raw('$labels.datname') }})
- alert: PostgresqlTooManyConnections - alert: PostgresqlTooManyConnections
expr: expr:
@ -84,7 +84,7 @@ groups:
summary: >- summary: >-
PostgreSQL a trop de connexions PostgreSQL a trop de connexions
({{ raw('$value | printf "%.1f"') }} > 80%) ({{ raw('$value | printf "%.1f"') }} > 80%)
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}) (base de données {{ raw('$labels.datname') }})
- alert: PostgresqlDeadLocks - alert: PostgresqlDeadLocks
expr: increase(pg_stat_database_deadlocks{datname!~"template.*|postgres"}[1m]) > 5 expr: increase(pg_stat_database_deadlocks{datname!~"template.*|postgres"}[1m]) > 5
@ -94,7 +94,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
PostgreSQL a plus de 5 deadlocks. PostgreSQL a plus de 5 deadlocks.
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }} ) (base de données {{ raw('$labels.datname') }} )
- alert: PostgresqlSlowQueries - alert: PostgresqlSlowQueries
expr: pg_slow_queries > 0 expr: pg_slow_queries > 0
@ -104,7 +104,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Présence de requêtes lentes (slow-queries) Présence de requêtes lentes (slow-queries)
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }} ) (base de données {{ raw('$labels.datname') }} )
- alert: PostgresqlHighRollbackRate - alert: PostgresqlHighRollbackRate
expr: expr:
@ -119,7 +119,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
PostgreSQL a un taux de retour en arrière (rollback) élevé PostgreSQL a un taux de retour en arrière (rollback) élevé
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value | printf "%.1f"') }} %) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value | printf "%.1f"') }} %)
- alert: PostgresqlWaleReplicationStopped - alert: PostgresqlWaleReplicationStopped
expr: rate(pg_xlog_position_bytes[1m]) == 0 expr: rate(pg_xlog_position_bytes[1m]) == 0
@ -129,7 +129,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Réplication de PostgreSQL WALE stopée Réplication de PostgreSQL WALE stopée
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }} ) (base de données {{ raw('$labels.datname') }} )
- alert: PostgresqlHighRateStatementTimeout - alert: PostgresqlHighRateStatementTimeout
expr: rate(postgresql_errors_total{type="statement_timeout"}[1m]) > 3 expr: rate(postgresql_errors_total{type="statement_timeout"}[1m]) > 3
@ -139,7 +139,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Beaucoup de requêtes PostgreSQL sont timeout Beaucoup de requêtes PostgreSQL sont timeout
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value | printf "%.1f"') }} ) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value | printf "%.1f"') }} )
- alert: PostgresqlHighRateDeadlock - alert: PostgresqlHighRateDeadlock
expr: increase(postgresql_errors_total{type="deadlock_detected"}[1m]) > 1 expr: increase(postgresql_errors_total{type="deadlock_detected"}[1m]) > 1
@ -149,7 +149,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
PostgreSQL a un fort taux de deadlock PostgreSQL a un fort taux de deadlock
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value | printf "%.1f"') }} ) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value | printf "%.1f"') }} )
# - alert: PostgresqlReplicationLagBytes # - alert: PostgresqlReplicationLagBytes
# expr: # expr:
@ -174,7 +174,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Les tuples morts PostgreSQL sont trop volumineux Les tuples morts PostgreSQL sont trop volumineux
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value | printf "%.1f"') }} ) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value | printf "%.1f"') }} )
- alert: PostgresqlSplitBrain - alert: PostgresqlSplitBrain
expr: count(pg_replication_is_replica == 0) != 1 expr: count(pg_replication_is_replica == 0) != 1
@ -184,7 +184,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Split Brain : trop de bases de données PostgreSQL primaires en mode lecture-écriture Split Brain : trop de bases de données PostgreSQL primaires en mode lecture-écriture
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value') }} ) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value') }} )
- alert: PostgresqlPromotedNode - alert: PostgresqlPromotedNode
expr: expr:
@ -197,7 +197,7 @@ groups:
annotations: annotations:
summary: >- summary: >-
Le serveur de secours PostgreSQL a été promu comme nœud principal Le serveur de secours PostgreSQL a été promu comme nœud principal
(instance {{ raw('$labels.instance') }}, database {{ raw('$labels.datname') }}, value {{ raw('$value') }}) (base de données {{ raw('$labels.datname') }}, valeur {{ raw('$value') }})
- alert: PostgresqlTooManyLocksAcquired - alert: PostgresqlTooManyLocksAcquired
expr: expr:
@ -213,7 +213,7 @@ groups:
Trop de deadlocks acquis sur la base de données. Trop de deadlocks acquis sur la base de données.
Si cette alerte se produit fréquemment, nous devrons peut-être augmenter Si cette alerte se produit fréquemment, nous devrons peut-être augmenter
le paramètre postgres max_locks_per_transaction le paramètre postgres max_locks_per_transaction
(instance {{ raw('$labels.instance') }}, value = {{ raw('$value | printf "%.1f"') }} ) (Valeur = {{ raw('$value | printf "%.1f"') }} )
... ...