Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 6da0a42

Browse files
JamesGuthriepaulfantom
authored andcommitted
Fix lint warnings on alerts mixin
Closes #1446
1 parent 5523f03 commit 6da0a42

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

deploy/helm-chart/templates/prometheus-rule.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ spec:
2626
labels:
2727
severity: critical
2828
annotations:
29-
summary: Promscale is down
30-
description: No Promscale instance was found.
29+
summary: Promscale is down.
30+
description: "{{ $labels.instance }} of job {{ $labels.job }} is down."
3131
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleDown.md
3232
- name: promscale-ingest
3333
rules:
@@ -45,7 +45,7 @@ spec:
4545
labels:
4646
severity: warning
4747
annotations:
48-
summary: High error rate in Promscale ingestion
48+
summary: High error rate in Promscale ingestion.
4949
description: "Promscale ingestion is having a {{ $value | humanizePercentage }} error rate."
5050
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighErrorRate.md
5151
- alert: PromscaleIngestHighErrorRate
@@ -62,7 +62,7 @@ spec:
6262
labels:
6363
severity: critical
6464
annotations:
65-
summary: High error rate in Promscale ingestion
65+
summary: High error rate in Promscale ingestion.
6666
description: "Promscale ingestion is having a {{ $value | humanizePercentage }} error rate."
6767
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighErrorRate.md
6868
- alert: PromscaleIngestHighLatency
@@ -83,7 +83,7 @@ spec:
8383
labels:
8484
severity: warning
8585
annotations:
86-
summary: Slow Promscale ingestion
86+
summary: Slow Promscale ingestion.
8787
description: "Slowest 10% of ingestion batch took more than {{ $value }} seconds to ingest."
8888
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighLatency.md
8989
- alert: PromscaleIngestHighLatency
@@ -104,7 +104,7 @@ spec:
104104
labels:
105105
severity: critical
106106
annotations:
107-
summary: Slow Promscale ingestion
107+
summary: Slow Promscale ingestion.
108108
description: "Slowest 10% of ingestion batch took more than {{ $value }} seconds to ingest."
109109
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighLatency.md
110110
- name: promscale-query
@@ -123,7 +123,7 @@ spec:
123123
labels:
124124
severity: warning
125125
annotations:
126-
summary: High error rate in querying Promscale
126+
summary: High error rate in querying Promscale.
127127
description: "Evaluating queries via Promscale has {{ $value | humanizePercentage }} error rate."
128128
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighErrorRate.md
129129
- alert: PromscaleQueryHighErrorRate
@@ -140,7 +140,7 @@ spec:
140140
labels:
141141
severity: critical
142142
annotations:
143-
summary: High error rate in querying Promscale
143+
summary: High error rate in querying Promscale.
144144
description: "Evaluating queries via Promscale had {{ $value | humanizePercentage }} error rate."
145145
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighErrorRate.md
146146
- alert: PromscaleQueryHighLatency
@@ -161,7 +161,7 @@ spec:
161161
labels:
162162
severity: warning
163163
annotations:
164-
summary: Slow Promscale querying
164+
summary: Slow Promscale querying.
165165
description: "Slowest 10% of the queries took more than {{ $value }} seconds to evaluate."
166166
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighLatency.md
167167
- alert: PromscaleQueryHighLatency
@@ -182,7 +182,7 @@ spec:
182182
labels:
183183
severity: critical
184184
annotations:
185-
summary: Slow Promscale querying
185+
summary: Slow Promscale querying.
186186
description: "Slowest 10% of the queries took {{ $value }} seconds to evaluate."
187187
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighLatency.md
188188
- name: promscale-cache
@@ -201,7 +201,7 @@ spec:
201201
labels:
202202
severity: warning
203203
annotations:
204-
summary: High cache eviction in Promscale
204+
summary: High cache eviction in Promscale.
205205
description: "Promscale {{ $labels.name }} is evicting at {{ $value }} entries a second."
206206
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCacheHighNumberOfEvictions.md
207207
- alert: PromscaleCacheTooSmall
@@ -218,7 +218,7 @@ spec:
218218
labels:
219219
severity: warning
220220
annotations:
221-
summary: High cache eviction in Promscale
221+
summary: High cache eviction in Promscale.
222222
description: "Promscale {{ $labels.name }} has a hit ratio of {{ $value | humanizePercentage }}."
223223
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCacheTooSmall.md
224224
- name: promscale-database-connection
@@ -238,7 +238,7 @@ spec:
238238
labels:
239239
severity: warning
240240
annotations:
241-
summary: Promscale experiences a high error rate when connecting to the database
241+
summary: Promscale experiences a high error rate when connecting to the database.
242242
description: "Promscale connection with the database has an error of {{ $value | humanizePercentage }}."
243243
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleDBHighErrorRate.md
244244
- alert: PromscaleStorageHighLatency
@@ -257,7 +257,7 @@ spec:
257257
labels:
258258
severity: warning
259259
annotations:
260-
summary: Slow database response
260+
summary: Slow database response.
261261
description: "Slowest 10% of database requests are taking more than {{ $value }} seconds to respond."
262262
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleStorageHighLatency.md
263263
- name: promscale-database
@@ -276,7 +276,7 @@ spec:
276276
labels:
277277
severity: warning
278278
annotations:
279-
summary: Promscale database is unhealthy
279+
summary: Promscale database is unhealthy.
280280
description: "Promscale connection with the database has an error of {{ $value | humanizePercentage }}."
281281
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleStorageUnhealthy.md
282282
- alert: PromscaleMaintenanceJobRunningTooLong
@@ -297,16 +297,16 @@ spec:
297297
labels:
298298
severity: warning
299299
annotations:
300-
summary: Promscale maintenance jobs taking too long to complete
300+
summary: Promscale maintenance jobs taking too long to complete.
301301
description: "Promscale Database is taking {{ $value }} seconds to respond to Promscale's requests."
302302
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleMaintenanceJobRunningTooLong.md
303303
- alert: PromscaleMaintenanceJobFailures
304304
expr: promscale_sql_database_worker_maintenance_job_failed == 1
305305
labels:
306306
severity: warning
307307
annotations:
308-
summary: Promscale maintenance job failed
309-
description: "Promscale maintenance job failed to successfully execute."
308+
summary: Promscale maintenance job failed.
309+
description: "Maintenance job for Promscale instance {{ $labels.instance }} failed to successfully execute."
310310
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleMaintenanceJobFailures.md
311311
- alert: PromscaleCompressionLow
312312
expr: |
@@ -322,7 +322,7 @@ spec:
322322
labels:
323323
severity: warning
324324
annotations:
325-
summary: High uncompressed data
325+
summary: High uncompressed data.
326326
description: "High uncompressed data in Promscale, on average, {{ $value }} uncompressed chunks per metric."
327327
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCompressionLow.md
328328
`}}

docs/mixin/alerts/alerts.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ groups:
88
labels:
99
severity: critical
1010
annotations:
11-
summary: Promscale is down
12-
description: No Promscale instance was found.
11+
summary: Promscale is down.
12+
description: "{{ $labels.instance }} of job {{ $labels.job }} is down."
1313
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleDown.md
1414
- name: promscale-ingest
1515
rules:
@@ -27,7 +27,7 @@ groups:
2727
labels:
2828
severity: warning
2929
annotations:
30-
summary: High error rate in Promscale ingestion
30+
summary: High error rate in Promscale ingestion.
3131
description: "Promscale ingestion is having a {{ $value | humanizePercentage }} error rate."
3232
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighErrorRate.md
3333
- alert: PromscaleIngestHighErrorRate
@@ -44,7 +44,7 @@ groups:
4444
labels:
4545
severity: critical
4646
annotations:
47-
summary: High error rate in Promscale ingestion
47+
summary: High error rate in Promscale ingestion.
4848
description: "Promscale ingestion is having a {{ $value | humanizePercentage }} error rate."
4949
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighErrorRate.md
5050
- alert: PromscaleIngestHighLatency
@@ -65,7 +65,7 @@ groups:
6565
labels:
6666
severity: warning
6767
annotations:
68-
summary: Slow Promscale ingestion
68+
summary: Slow Promscale ingestion.
6969
description: "Slowest 10% of ingestion batch took more than {{ $value }} seconds to ingest."
7070
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighLatency.md
7171
- alert: PromscaleIngestHighLatency
@@ -86,7 +86,7 @@ groups:
8686
labels:
8787
severity: critical
8888
annotations:
89-
summary: Slow Promscale ingestion
89+
summary: Slow Promscale ingestion.
9090
description: "Slowest 10% of ingestion batch took more than {{ $value }} seconds to ingest."
9191
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleIngestHighLatency.md
9292
- name: promscale-query
@@ -105,7 +105,7 @@ groups:
105105
labels:
106106
severity: warning
107107
annotations:
108-
summary: High error rate in querying Promscale
108+
summary: High error rate in querying Promscale.
109109
description: "Evaluating queries via Promscale has {{ $value | humanizePercentage }} error rate."
110110
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighErrorRate.md
111111
- alert: PromscaleQueryHighErrorRate
@@ -122,7 +122,7 @@ groups:
122122
labels:
123123
severity: critical
124124
annotations:
125-
summary: High error rate in querying Promscale
125+
summary: High error rate in querying Promscale.
126126
description: "Evaluating queries via Promscale had {{ $value | humanizePercentage }} error rate."
127127
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighErrorRate.md
128128
- alert: PromscaleQueryHighLatency
@@ -143,7 +143,7 @@ groups:
143143
labels:
144144
severity: warning
145145
annotations:
146-
summary: Slow Promscale querying
146+
summary: Slow Promscale querying.
147147
description: "Slowest 10% of the queries took more than {{ $value }} seconds to evaluate."
148148
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighLatency.md
149149
- alert: PromscaleQueryHighLatency
@@ -164,7 +164,7 @@ groups:
164164
labels:
165165
severity: critical
166166
annotations:
167-
summary: Slow Promscale querying
167+
summary: Slow Promscale querying.
168168
description: "Slowest 10% of the queries took {{ $value }} seconds to evaluate."
169169
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleQueryHighLatency.md
170170
- name: promscale-cache
@@ -183,7 +183,7 @@ groups:
183183
labels:
184184
severity: warning
185185
annotations:
186-
summary: High cache eviction in Promscale
186+
summary: High cache eviction in Promscale.
187187
description: "Promscale {{ $labels.name }} is evicting at {{ $value }} entries a second."
188188
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCacheHighNumberOfEvictions.md
189189
- alert: PromscaleCacheTooSmall
@@ -200,7 +200,7 @@ groups:
200200
labels:
201201
severity: warning
202202
annotations:
203-
summary: High cache eviction in Promscale
203+
summary: High cache eviction in Promscale.
204204
description: "Promscale {{ $labels.name }} has a hit ratio of {{ $value | humanizePercentage }}."
205205
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCacheTooSmall.md
206206
- name: promscale-database-connection
@@ -220,7 +220,7 @@ groups:
220220
labels:
221221
severity: warning
222222
annotations:
223-
summary: Promscale experiences a high error rate when connecting to the database
223+
summary: Promscale experiences a high error rate when connecting to the database.
224224
description: "Promscale connection with the database has an error of {{ $value | humanizePercentage }}."
225225
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleDBHighErrorRate.md
226226
- alert: PromscaleStorageHighLatency
@@ -239,7 +239,7 @@ groups:
239239
labels:
240240
severity: warning
241241
annotations:
242-
summary: Slow database response
242+
summary: Slow database response.
243243
description: "Slowest 10% of database requests are taking more than {{ $value }} seconds to respond."
244244
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleStorageHighLatency.md
245245
- name: promscale-database
@@ -258,7 +258,7 @@ groups:
258258
labels:
259259
severity: warning
260260
annotations:
261-
summary: Promscale database is unhealthy
261+
summary: Promscale database is unhealthy.
262262
description: "Promscale connection with the database has an error of {{ $value | humanizePercentage }}."
263263
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleStorageUnhealthy.md
264264
- alert: PromscaleMaintenanceJobRunningTooLong
@@ -279,16 +279,16 @@ groups:
279279
labels:
280280
severity: warning
281281
annotations:
282-
summary: Promscale maintenance jobs taking too long to complete
282+
summary: Promscale maintenance jobs taking too long to complete.
283283
description: "Promscale Database is taking {{ $value }} seconds to respond to Promscale's requests."
284284
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleMaintenanceJobRunningTooLong.md
285285
- alert: PromscaleMaintenanceJobFailures
286286
expr: promscale_sql_database_worker_maintenance_job_failed == 1
287287
labels:
288288
severity: warning
289289
annotations:
290-
summary: Promscale maintenance job failed
291-
description: "Promscale maintenance job failed to successfully execute."
290+
summary: Promscale maintenance job failed.
291+
description: "Maintenance job for Promscale instance {{ $labels.instance }} failed to successfully execute."
292292
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleMaintenanceJobFailures.md
293293
- alert: PromscaleCompressionLow
294294
expr: |
@@ -304,6 +304,6 @@ groups:
304304
labels:
305305
severity: warning
306306
annotations:
307-
summary: High uncompressed data
307+
summary: High uncompressed data.
308308
description: "High uncompressed data in Promscale, on average, {{ $value }} uncompressed chunks per metric."
309309
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCompressionLow.md

0 commit comments

Comments
 (0)