@leverege/build-tools 2.66.0 → 2.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/bash-funcs +1 -0
- package/src/helm-charts/cnpg-db-pgbench/cluster.yaml.ovh +2 -0
- package/src/helm-charts/cnpg-db-tsdb-basic/cluster.yaml.ovh +3 -1
- package/src/helm-charts/cnpg-db-tsdb-dense/cluster.yaml.ovh +2 -0
- package/src/helm-charts/elasticsearch8/helmup.plugin +1 -1
- package/src/helm-charts/prom-operator/prometheus-stack.yaml.ovh +2 -2
- package/src/helm-charts/prom-operator/rules/awesome-base/elasticsearch-rules.yaml +219 -0
- package/src/helm-charts/prom-operator/rules/awesome-base/google-cadvisor.yaml +108 -0
- package/src/helm-charts/prom-operator/rules/{new-awesome.yaml → awesome-base/kubestate-exporter.yaml} +2 -1
- package/src/helm-charts/prom-operator/rules/awesome-base/prometheus-rules.yaml +318 -0
- package/src/helm-charts/prom-operator/rules/awesome-base/redis-rules.yaml +142 -0
- package/src/helm-charts/prom-operator/rules/awesome-base/traefik-rules.yaml +43 -0
- package/src/helm-charts/prom-operator/rules/cadvisor-rules.yaml +109 -0
- package/src/helm-charts/prom-operator/rules/cnpg-rules.yaml +3 -2
- package/src/helm-charts/prom-operator/rules/elasticsearch-rules.yaml +212 -94
- package/src/helm-charts/prom-operator/rules/gcp-rules.yaml +2 -2
- package/src/helm-charts/prom-operator/rules/kubestate-rules.yaml +412 -0
- package/src/helm-charts/prom-operator/rules/po-k8s-selective.yaml +23 -0
- package/src/helm-charts/prom-operator/rules/prometheus-rules.yaml +312 -73
- package/src/helm-charts/prom-operator/rules/redis-rules.yaml +135 -74
- package/src/helm-charts/prom-operator/rules/traefik-rules.yaml +47 -20
- package/src/helm-charts/prom-operator/update-rules.sh +32 -0
- package/src/helm-charts/redis/helmup.plugin +1 -1
- package/src/helm-charts/velero/helmup.plugin +1 -1
- package/src/helmup.sh +2 -2
- package/src/awesome-fetch.mjs +0 -44
- package/src/helm-charts/prom-operator/apply-rules +0 -15
- package/src/helm-charts/prom-operator/gitignore +0 -2
- package/src/helm-charts/prom-operator/rules/awesome-k8s.yaml +0 -326
- package/src/helm-charts/prom-operator/rules/kubernetes-rules.yaml +0 -109
- /package/src/helm-charts/prom-operator/rules/{postgres-rules.yaml → postgres-rules.yaml.disabled} +0 -0
|
@@ -1,101 +1,219 @@
|
|
|
1
|
+
# https://samber.github.io/awesome-prometheus-alerts/rules#elasticsearch
|
|
1
2
|
apiVersion: monitoring.coreos.com/v1
|
|
2
3
|
kind: PrometheusRule
|
|
3
4
|
metadata:
|
|
4
5
|
name: elasticsearch-rules
|
|
5
6
|
namespace: prometheus
|
|
6
|
-
|
|
7
7
|
spec:
|
|
8
8
|
groups:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
9
|
+
- name: Elasticsearch (awesome) # PrometheusCommunityElasticsearchExporter-rules
|
|
10
|
+
rules:
|
|
11
|
+
- alert: ElasticsearchHeapUsageTooHigh
|
|
12
|
+
expr: (elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}) * 100 > 90
|
|
13
|
+
for: 2m
|
|
14
|
+
labels:
|
|
15
|
+
severity: critical
|
|
16
|
+
annotations:
|
|
17
|
+
summary: Elasticsearch Heap Usage Too High (instance {{ $labels.instance }})
|
|
18
|
+
description: |-
|
|
19
|
+
The heap usage is over 90%
|
|
20
|
+
VALUE = {{ $value }}
|
|
21
|
+
LABELS = {{ $labels }}
|
|
22
|
+
- alert: ElasticsearchHeapUsageWarning
|
|
23
|
+
expr: (elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}) * 100 > 80
|
|
24
|
+
for: 2m
|
|
25
|
+
labels:
|
|
26
|
+
severity: warning
|
|
27
|
+
annotations:
|
|
28
|
+
summary: Elasticsearch Heap Usage warning (instance {{ $labels.instance }})
|
|
29
|
+
description: |-
|
|
30
|
+
The heap usage is over 80%
|
|
31
|
+
VALUE = {{ $value }}
|
|
32
|
+
LABELS = {{ $labels }}
|
|
33
|
+
- alert: ElasticsearchDiskOutOfSpace
|
|
34
|
+
expr: elasticsearch_filesystem_data_available_bytes / elasticsearch_filesystem_data_size_bytes * 100 < 10
|
|
35
|
+
for: 0m
|
|
36
|
+
labels:
|
|
37
|
+
severity: critical
|
|
38
|
+
annotations:
|
|
39
|
+
summary: Elasticsearch disk out of space (instance {{ $labels.instance }})
|
|
40
|
+
description: |-
|
|
41
|
+
The disk usage is over 90%
|
|
42
|
+
VALUE = {{ $value }}
|
|
43
|
+
LABELS = {{ $labels }}
|
|
44
|
+
- alert: ElasticsearchDiskSpaceLow
|
|
45
|
+
expr: elasticsearch_filesystem_data_available_bytes / elasticsearch_filesystem_data_size_bytes * 100 < 20
|
|
46
|
+
for: 2m
|
|
47
|
+
labels:
|
|
48
|
+
severity: warning
|
|
49
|
+
annotations:
|
|
50
|
+
summary: Elasticsearch disk space low (instance {{ $labels.instance }})
|
|
51
|
+
description: |-
|
|
52
|
+
The disk usage is over 80%
|
|
53
|
+
VALUE = {{ $value }}
|
|
54
|
+
LABELS = {{ $labels }}
|
|
55
|
+
- alert: ElasticsearchClusterRed
|
|
56
|
+
expr: elasticsearch_cluster_health_status{color="red"} == 1
|
|
57
|
+
for: 0m
|
|
58
|
+
labels:
|
|
59
|
+
severity: critical
|
|
60
|
+
annotations:
|
|
61
|
+
summary: Elasticsearch Cluster Red (instance {{ $labels.instance }})
|
|
62
|
+
description: |-
|
|
63
|
+
Elastic Cluster Red status
|
|
64
|
+
VALUE = {{ $value }}
|
|
65
|
+
LABELS = {{ $labels }}
|
|
66
|
+
- alert: ElasticsearchClusterYellow
|
|
67
|
+
expr: elasticsearch_cluster_health_status{color="yellow"} == 1
|
|
68
|
+
for: 0m
|
|
69
|
+
labels:
|
|
70
|
+
severity: warning
|
|
71
|
+
annotations:
|
|
72
|
+
summary: Elasticsearch Cluster Yellow (instance {{ $labels.instance }})
|
|
73
|
+
description: |-
|
|
74
|
+
Elastic Cluster Yellow status
|
|
75
|
+
VALUE = {{ $value }}
|
|
76
|
+
LABELS = {{ $labels }}
|
|
77
|
+
- alert: ElasticsearchHealthyNodes
|
|
78
|
+
expr: elasticsearch_cluster_health_number_of_nodes < 3
|
|
79
|
+
for: 0m
|
|
80
|
+
labels:
|
|
81
|
+
severity: critical
|
|
82
|
+
annotations:
|
|
83
|
+
summary: Elasticsearch Healthy Nodes (instance {{ $labels.instance }})
|
|
84
|
+
description: |-
|
|
85
|
+
Missing node in Elasticsearch cluster
|
|
86
|
+
VALUE = {{ $value }}
|
|
87
|
+
LABELS = {{ $labels }}
|
|
88
|
+
- alert: ElasticsearchHealthyDataNodes
|
|
89
|
+
expr: elasticsearch_cluster_health_number_of_data_nodes < 3
|
|
90
|
+
for: 0m
|
|
91
|
+
labels:
|
|
92
|
+
severity: critical
|
|
93
|
+
annotations:
|
|
94
|
+
summary: Elasticsearch Healthy Data Nodes (instance {{ $labels.instance }})
|
|
95
|
+
description: |-
|
|
96
|
+
Missing data node in Elasticsearch cluster
|
|
97
|
+
VALUE = {{ $value }}
|
|
98
|
+
LABELS = {{ $labels }}
|
|
99
|
+
- alert: ElasticsearchRelocatingShards
|
|
100
|
+
expr: elasticsearch_cluster_health_relocating_shards > 0
|
|
101
|
+
for: 0m
|
|
102
|
+
labels:
|
|
103
|
+
severity: info
|
|
104
|
+
annotations:
|
|
105
|
+
summary: Elasticsearch relocating shards (instance {{ $labels.instance }})
|
|
106
|
+
description: |-
|
|
107
|
+
Elasticsearch is relocating shards
|
|
108
|
+
VALUE = {{ $value }}
|
|
109
|
+
LABELS = {{ $labels }}
|
|
110
|
+
- alert: ElasticsearchRelocatingShardsTooLong
|
|
111
|
+
expr: elasticsearch_cluster_health_relocating_shards > 0
|
|
112
|
+
for: 15m
|
|
113
|
+
labels:
|
|
114
|
+
severity: warning
|
|
115
|
+
annotations:
|
|
116
|
+
summary: Elasticsearch relocating shards too long (instance {{ $labels.instance }})
|
|
117
|
+
description: |-
|
|
118
|
+
Elasticsearch has been relocating shards for 15min
|
|
119
|
+
VALUE = {{ $value }}
|
|
120
|
+
LABELS = {{ $labels }}
|
|
121
|
+
- alert: ElasticsearchInitializingShards
|
|
122
|
+
expr: elasticsearch_cluster_health_initializing_shards > 0
|
|
123
|
+
for: 0m
|
|
124
|
+
labels:
|
|
125
|
+
severity: info
|
|
126
|
+
annotations:
|
|
127
|
+
summary: Elasticsearch initializing shards (instance {{ $labels.instance }})
|
|
128
|
+
description: |-
|
|
129
|
+
Elasticsearch is initializing shards
|
|
130
|
+
VALUE = {{ $value }}
|
|
131
|
+
LABELS = {{ $labels }}
|
|
132
|
+
- alert: ElasticsearchInitializingShardsTooLong
|
|
133
|
+
expr: elasticsearch_cluster_health_initializing_shards > 0
|
|
134
|
+
for: 15m
|
|
135
|
+
labels:
|
|
136
|
+
severity: warning
|
|
137
|
+
annotations:
|
|
138
|
+
summary: Elasticsearch initializing shards too long (instance {{ $labels.instance }})
|
|
139
|
+
description: |-
|
|
140
|
+
Elasticsearch has been initializing shards for 15 min
|
|
141
|
+
VALUE = {{ $value }}
|
|
142
|
+
LABELS = {{ $labels }}
|
|
143
|
+
- alert: ElasticsearchUnassignedShards
|
|
144
|
+
expr: elasticsearch_cluster_health_unassigned_shards > 0
|
|
145
|
+
for: 0m
|
|
146
|
+
labels:
|
|
147
|
+
severity: critical
|
|
148
|
+
annotations:
|
|
149
|
+
summary: Elasticsearch unassigned shards (instance {{ $labels.instance }})
|
|
150
|
+
description: |-
|
|
151
|
+
Elasticsearch has unassigned shards
|
|
152
|
+
VALUE = {{ $value }}
|
|
153
|
+
LABELS = {{ $labels }}
|
|
154
|
+
- alert: ElasticsearchPendingTasks
|
|
155
|
+
expr: elasticsearch_cluster_health_number_of_pending_tasks > 0
|
|
156
|
+
for: 15m
|
|
157
|
+
labels:
|
|
158
|
+
severity: warning
|
|
159
|
+
annotations:
|
|
160
|
+
summary: Elasticsearch pending tasks (instance {{ $labels.instance }})
|
|
161
|
+
description: |-
|
|
162
|
+
Elasticsearch has pending tasks. Cluster works slowly.
|
|
163
|
+
VALUE = {{ $value }}
|
|
164
|
+
LABELS = {{ $labels }}
|
|
165
|
+
- alert: ElasticsearchNoNewDocuments
|
|
166
|
+
expr: increase(elasticsearch_indices_indexing_index_total{es_data_node="true"}[10m]) < 1
|
|
167
|
+
for: 0m
|
|
168
|
+
labels:
|
|
169
|
+
severity: warning
|
|
170
|
+
annotations:
|
|
171
|
+
summary: Elasticsearch no new documents (instance {{ $labels.instance }})
|
|
172
|
+
description: |-
|
|
173
|
+
No new documents for 10 min!
|
|
174
|
+
VALUE = {{ $value }}
|
|
175
|
+
LABELS = {{ $labels }}
|
|
176
|
+
- alert: ElasticsearchHighIndexingLatency
|
|
177
|
+
expr: elasticsearch_indices_indexing_index_time_seconds_total / elasticsearch_indices_indexing_index_total > 0.0005
|
|
178
|
+
for: 10m
|
|
179
|
+
labels:
|
|
180
|
+
severity: warning
|
|
181
|
+
annotations:
|
|
182
|
+
summary: Elasticsearch High Indexing Latency (instance {{ $labels.instance }})
|
|
183
|
+
description: |-
|
|
184
|
+
The indexing latency on Elasticsearch cluster is higher than the threshold.
|
|
185
|
+
VALUE = {{ $value }}
|
|
186
|
+
LABELS = {{ $labels }}
|
|
187
|
+
- alert: ElasticsearchHighIndexingRate
|
|
188
|
+
expr: sum(rate(elasticsearch_indices_indexing_index_total[1m]))> 10000
|
|
189
|
+
for: 5m
|
|
190
|
+
labels:
|
|
191
|
+
severity: warning
|
|
192
|
+
annotations:
|
|
193
|
+
summary: Elasticsearch High Indexing Rate (instance {{ $labels.instance }})
|
|
194
|
+
description: |-
|
|
195
|
+
The indexing rate on Elasticsearch cluster is higher than the threshold.
|
|
196
|
+
VALUE = {{ $value }}
|
|
197
|
+
LABELS = {{ $labels }}
|
|
198
|
+
- alert: ElasticsearchHighQueryRate
|
|
199
|
+
expr: sum(rate(elasticsearch_indices_search_query_total[1m])) > 100
|
|
200
|
+
for: 5m
|
|
201
|
+
labels:
|
|
202
|
+
severity: warning
|
|
203
|
+
annotations:
|
|
204
|
+
summary: Elasticsearch High Query Rate (instance {{ $labels.instance }})
|
|
205
|
+
description: |-
|
|
206
|
+
The query rate on Elasticsearch cluster is higher than the threshold.
|
|
207
|
+
VALUE = {{ $value }}
|
|
208
|
+
LABELS = {{ $labels }}
|
|
209
|
+
- alert: ElasticsearchHighQueryLatency
|
|
210
|
+
expr: elasticsearch_indices_search_fetch_time_seconds / elasticsearch_indices_search_fetch_total > 1
|
|
211
|
+
for: 5m
|
|
212
|
+
labels:
|
|
213
|
+
severity: warning
|
|
214
|
+
annotations:
|
|
215
|
+
summary: Elasticsearch High Query Latency (instance {{ $labels.instance }})
|
|
216
|
+
description: |-
|
|
217
|
+
The query latency on Elasticsearch cluster is higher than the threshold.
|
|
218
|
+
VALUE = {{ $value }}
|
|
219
|
+
LABELS = {{ $labels }}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
apiVersion: monitoring.coreos.com/v1
|
|
2
2
|
kind: PrometheusRule
|
|
3
3
|
metadata:
|
|
4
|
-
name:
|
|
4
|
+
name: stackdriver-rules
|
|
5
5
|
namespace: prometheus
|
|
6
6
|
|
|
7
7
|
spec:
|
|
8
8
|
groups:
|
|
9
|
-
- name:
|
|
9
|
+
- name: Stackdriver
|
|
10
10
|
rules:
|
|
11
11
|
- alert: StackdriverFailedScrape
|
|
12
12
|
expr: absent(stackdriver_pubsub_topic_pubsub_googleapis_com_topic_message_sizes_count) == 1
|