Skip to content

Commit 566858a

Browse files
Put instance, alias and job in quotes in Proemtheus alert messages
1 parent 4c23b40 commit 566858a

File tree

2 files changed

+64
-64
lines changed

2 files changed

+64
-64
lines changed

example/prometheus/alerts.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ groups:
88
labels:
99
severity: page
1010
annotations:
11-
summary: "Instance {{ $labels.instance }} ({{ $labels.job }}) down"
12-
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than a minute."
11+
summary: "Instance '{{ $labels.instance }}' ('{{ $labels.job }}') down"
12+
description: "'{{ $labels.instance }}' of job '{{ $labels.job }}' has been down for more than a minute."
1313

1414

1515
- name: tarantool-common
@@ -21,8 +21,8 @@ groups:
2121
labels:
2222
severity: warning
2323
annotations:
24-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) Lua runtime warning"
25-
description: "{{ $labels.alias }} instance of job {{ $labels.job }} uses too much Lua memory
24+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') Lua runtime warning"
25+
description: "'{{ $labels.alias }}' instance of job '{{ $labels.job }}' uses too much Lua memory
2626
and may hit threshold soon."
2727

2828
# Alert for any instance that uses too Lua runtime memory.
@@ -32,8 +32,8 @@ groups:
3232
labels:
3333
severity: page
3434
annotations:
35-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) Lua runtime alert"
36-
description: "{{ $labels.alias }} instance of job {{ $labels.job }} uses too much Lua memory
35+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') Lua runtime alert"
36+
description: "'{{ $labels.alias }}' instance of job '{{ $labels.job }}' uses too much Lua memory
3737
and likely to hit threshold soon."
3838

3939
# Warning for any instance that have low remaining arena memory.
@@ -43,8 +43,8 @@ groups:
4343
labels:
4444
severity: warning
4545
annotations:
46-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) low arena memory remaining"
47-
description: "Low arena memory (tuples and indexes) remaining for {{ $labels.alias }} instance of job {{ $labels.job }}.
46+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') low arena memory remaining"
47+
description: "Low arena memory (tuples and indexes) remaining for '{{ $labels.alias }}' instance of job '{{ $labels.job }}'.
4848
Consider increasing memtx_memory or number of storages in case of sharded data."
4949

5050
# Alert for any instance that have low remaining arena memory.
@@ -54,8 +54,8 @@ groups:
5454
labels:
5555
severity: page
5656
annotations:
57-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) low arena memory remaining"
58-
description: "Low arena memory (tuples and indexes) remaining for {{ $labels.alias }} instance of job {{ $labels.job }}.
57+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') low arena memory remaining"
58+
description: "Low arena memory (tuples and indexes) remaining for '{{ $labels.alias }}' instance of job '{{ $labels.job }}'.
5959
You are likely to hit limit soon.
6060
It is strongly recommended to increase memtx_memory or number of storages in case of sharded data."
6161

@@ -66,8 +66,8 @@ groups:
6666
labels:
6767
severity: warning
6868
annotations:
69-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) low items memory remaining"
70-
description: "Low items memory (tuples) remaining for {{ $labels.alias }} instance of job {{ $labels.job }}.
69+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') low items memory remaining"
70+
description: "Low items memory (tuples) remaining for '{{ $labels.alias }}' instance of job '{{ $labels.job }}'.
7171
Consider increasing memtx_memory or number of storages in case of sharded data."
7272

7373
# Alert for any instance that have low remaining arena memory.
@@ -77,8 +77,8 @@ groups:
7777
labels:
7878
severity: page
7979
annotations:
80-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) low items memory remaining"
81-
description: "Low items memory (tuples) remaining for {{ $labels.alias }} instance of job {{ $labels.job }}.
80+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') low items memory remaining"
81+
description: "Low items memory (tuples) remaining for '{{ $labels.alias }}' instance of job '{{ $labels.job }}'.
8282
You are likely to hit limit soon.
8383
It is strongly recommended to increase memtx_memory or number of storages in case of sharded data."
8484

@@ -89,8 +89,8 @@ groups:
8989
labels:
9090
severity: warning
9191
annotations:
92-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) has 'warning'-level Cartridge issues"
93-
description: "Instance {{ $labels.alias }} of job {{ $labels.job }} has 'warning'-level Cartridge issues.
92+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') has 'warning'-level Cartridge issues"
93+
description: "Instance '{{ $labels.alias }}' of job '{{ $labels.job }}' has 'warning'-level Cartridge issues.
9494
Possible reasons: high replication lag, replication long idle,
9595
failover or switchover issues, clock issues, memory fragmentation,
9696
configuration issues, alien members."
@@ -102,8 +102,8 @@ groups:
102102
labels:
103103
severity: page
104104
annotations:
105-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) has 'critical'-level Cartridge issues"
106-
description: "Instance {{ $labels.alias }} of job {{ $labels.job }} has 'critical'-level Cartridge issues.
105+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') has 'critical'-level Cartridge issues"
106+
description: "Instance '{{ $labels.alias }}' of job '{{ $labels.job }}' has 'critical'-level Cartridge issues.
107107
Possible reasons: replication process critical fail,
108108
running out of available memory."
109109

@@ -114,8 +114,8 @@ groups:
114114
labels:
115115
severity: warning
116116
annotations:
117-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) have high replication lag"
118-
description: "Instance {{ $labels.alias }} of job {{ $labels.job }} have high replication lag,
117+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') have high replication lag"
118+
description: "Instance '{{ $labels.alias }}' of job '{{ $labels.job }}' have high replication lag,
119119
check up your network and cluster state."
120120

121121
- name: tarantool-business
@@ -130,9 +130,9 @@ groups:
130130
labels:
131131
severity: warning
132132
annotations:
133-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) high HTTP latency"
133+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') high HTTP latency"
134134
description: "Some {{ $labels.method }} requests to {{ $labels.path }} path with {{ $labels.status }} response status
135-
on {{ $labels.alias }} instance of job {{ $labels.job }} are processed too long."
135+
on '{{ $labels.alias }}' instance of job '{{ $labels.job }}' are processed too long."
136136

137137
# Warning for any endpoint of an instance in tarantool_app job that sends too much 4xx responses.
138138
# Beware that metric name depends on name of the collector you use in HTTP metrics middleware
@@ -144,9 +144,9 @@ groups:
144144
labels:
145145
severity: warning
146146
annotations:
147-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) high rate of client error responses"
147+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') high rate of client error responses"
148148
description: "Too many {{ $labels.method }} requests to {{ $labels.path }} path
149-
on {{ $labels.alias }} instance of job {{ $labels.job }} get client error (4xx) responses."
149+
on '{{ $labels.alias }}' instance of job '{{ $labels.job }}' get client error (4xx) responses."
150150

151151
# Warning for any endpoint in tarantool_app job that sends too much 4xx responses (cluster overall).
152152
# Beware that metric name depends on name of the collector you use in HTTP metrics middleware
@@ -158,9 +158,9 @@ groups:
158158
labels:
159159
severity: warning
160160
annotations:
161-
summary: "Job {{ $labels.job }} high rate of client error responses"
161+
summary: "Job '{{ $labels.job }}' high rate of client error responses"
162162
description: "Too many {{ $labels.method }} requests to {{ $labels.path }} path
163-
on instances of job {{ $labels.job }} get client error (4xx) responses."
163+
on instances of job '{{ $labels.job }}' get client error (4xx) responses."
164164

165165
# Warning for any endpoint of an instance in tarantool_app job that sends 5xx responses.
166166
# Beware that metric name depends on name of the collector you use in HTTP metrics middleware
@@ -172,9 +172,9 @@ groups:
172172
labels:
173173
severity: warning
174174
annotations:
175-
summary: "Instance {{ $labels.alias }} ({{ $labels.job }}) server error responses"
175+
summary: "Instance '{{ $labels.alias }}' ('{{ $labels.job }}') server error responses"
176176
description: "Some {{ $labels.method }} requests to {{ $labels.path }} path
177-
on {{ $labels.alias }} instance of job {{ $labels.job }} get server error (5xx) responses."
177+
on '{{ $labels.alias }}' instance of job '{{ $labels.job }}' get server error (5xx) responses."
178178

179179
# Warning for any endpoint of a router instance (with "router" in alias) in tarantool_app job that gets too little requests.
180180
# Beware that metric name depends on name of the collector you use in HTTP metrics middleware
@@ -186,6 +186,6 @@ groups:
186186
labels:
187187
severity: warning
188188
annotations:
189-
summary: "Router {{ $labels.alias }} ({{ $labels.job }}) low activity"
190-
description: Router {{ $labels.alias }} instance of job {{ $labels.job }} gets too little requests.
189+
summary: "Router '{{ $labels.alias }}' ('{{ $labels.job }}') low activity"
190+
description: Router '{{ $labels.alias }}' instance of job '{{ $labels.job }}' gets too little requests.
191191
Please, check up your balancer middleware."

0 commit comments

Comments
 (0)