@leverege/build-tools 2.40.1 → 2.41.0
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/helm-charts/api-server/values-local.yaml +13 -0
- package/src/helm-charts/authz-server/values-local.yaml +5 -0
- package/src/helm-charts/db-curator/values-local.yaml +7 -0
- package/src/helm-charts/emailer/values-local.yaml +9 -0
- package/src/helm-charts/fota-server/values-local.yaml +8 -0
- package/src/helm-charts/geotile-server/values-local.yaml +7 -0
- package/src/helm-charts/imagine/values-local.yaml +5 -0
- package/src/helm-charts/message-processor/values-local.yaml +5 -0
- package/src/helm-charts/messenger/values-local.yaml +5 -0
- package/src/helm-charts/prometheus/helmup.plugin +1 -1
- package/src/helm-charts/prometheus/values-local.yaml +1 -44
- package/src/helm-charts/reason/values-local.yaml +14 -0
- package/src/helm-charts/resource-server/values-local.yaml +9 -0
- package/src/helm-charts/rule-engine/values-local.yaml +5 -0
- package/src/helm-charts/scheduler/values-local.yaml +5 -0
- package/src/helm-charts/transponder-bq/values-local.yaml +29 -0
- package/src/helm-charts/transponder-rt/values-local.yaml +30 -0
- package/src/helm-charts/transponder-tsdb/values-local.yaml +35 -0
- package/src/helmup.sh +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.41.0",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@leverege/eslint-config-leverege": "^4.2.0",
|
|
73
|
-
"npm": "^10.
|
|
73
|
+
"npm": "^10.2.0"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -8,7 +8,7 @@ kubectl delete deploy -n monitoring -l app.kubernetes.io/name=prometheus &> $DEV
|
|
|
8
8
|
|
|
9
9
|
addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
|
|
10
10
|
|
|
11
|
-
[ -z "$PROMETHEUS_CHART_VERSION" ] && PROMETHEUS_CHART_VERSION="
|
|
11
|
+
[ -z "$PROMETHEUS_CHART_VERSION" ] && PROMETHEUS_CHART_VERSION="25"
|
|
12
12
|
helm upgrade --install prometheus prometheus-community/prometheus \
|
|
13
13
|
--namespace monitoring --create-namespace \
|
|
14
14
|
--values prometheus/values.yaml \
|
|
@@ -59,8 +59,7 @@ alertmanager:
|
|
|
59
59
|
strategy:
|
|
60
60
|
type: Recreate
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
alertmanager.yml:
|
|
62
|
+
config:
|
|
64
63
|
receivers:
|
|
65
64
|
- name: slack
|
|
66
65
|
slack_configs:
|
|
@@ -105,15 +104,6 @@ alertmanagerFiles:
|
|
|
105
104
|
serverFiles:
|
|
106
105
|
alerting_rules.yml:
|
|
107
106
|
groups:
|
|
108
|
-
# UNCOMMENT IF YOU NEED ANOMALY DETECTION
|
|
109
|
-
# - name: PubSubRules
|
|
110
|
-
# rules:
|
|
111
|
-
# - record: job:pubsub_message_size:rate5m
|
|
112
|
-
# expr: sum by (topic_id) (rate(stackdriver_pubsub_topic_pubsub_googleapis_com_topic_message_sizes_count[5m]) )
|
|
113
|
-
# - record: job:pubsub_message_size:rate5m:avg_over_time_1w
|
|
114
|
-
# expr: avg_over_time(job:pubsub_message_size:rate5m[1w])
|
|
115
|
-
# - record: job:pubsub_message_size:rate5m:stddev_over_time_1w
|
|
116
|
-
# expr: stddev_over_time(job:pubsub_message_size:rate5m[1w])
|
|
117
107
|
|
|
118
108
|
- name: Kubernetes
|
|
119
109
|
rules:
|
|
@@ -345,39 +335,6 @@ serverFiles:
|
|
|
345
335
|
description: "{{ $labels.app }} is in a crash loop"
|
|
346
336
|
dashboard: "OVH:<MONITORING>/stackdriver"
|
|
347
337
|
|
|
348
|
-
# - name: MySQL
|
|
349
|
-
# rules:
|
|
350
|
-
# - alert: MysqlDown
|
|
351
|
-
# expr: mysql_up == 0
|
|
352
|
-
# for: 5m
|
|
353
|
-
# labels:
|
|
354
|
-
# severity: page
|
|
355
|
-
# priority: P3
|
|
356
|
-
# annotations:
|
|
357
|
-
# summary: "MySQL down (instance {{ $labels.instance }})"
|
|
358
|
-
# description: "MySQL pod is down. Look into manually restarting."
|
|
359
|
-
# dashboard: "OVH:<MONITORING>/mysql"
|
|
360
|
-
|
|
361
|
-
# - alert: MysqlSlowQueries
|
|
362
|
-
# expr: mysql_global_status_slow_queries > 0
|
|
363
|
-
# for: 5m
|
|
364
|
-
# labels:
|
|
365
|
-
# severity: warning
|
|
366
|
-
# annotations:
|
|
367
|
-
# summary: "MySQL slow queries detected"
|
|
368
|
-
# description: "MySQL server is detected {{ $value }} slow queries."
|
|
369
|
-
# dashboard: "OVH:<MONITORING>/mysql"
|
|
370
|
-
|
|
371
|
-
# - alert: MysqlRestarted
|
|
372
|
-
# expr: mysql_global_status_uptime < 60
|
|
373
|
-
# for: 5m
|
|
374
|
-
# labels:
|
|
375
|
-
# severity: warning
|
|
376
|
-
# annotations:
|
|
377
|
-
# summary: "MySQL restarted"
|
|
378
|
-
# description: "MySQL has just been restarted, less than one minute ago."
|
|
379
|
-
# dashboard: "OVH:<MONITORING>/mysql"
|
|
380
|
-
|
|
381
338
|
- name: Postgres
|
|
382
339
|
rules:
|
|
383
340
|
- alert: PostgresqlDown
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
nameOverride: transponder-bq
|
|
2
|
+
|
|
3
|
+
image:
|
|
4
|
+
tag: # v5.0.1
|
|
5
|
+
|
|
6
|
+
config:
|
|
7
|
+
TRANSPONDER_RUN_MODE: "bigQueryJson"
|
|
8
|
+
LOG_CONFIG: '{"type":"pino","level":"warn"}'
|
|
9
|
+
|
|
10
|
+
TRANSPORT_CONFIG: '{
|
|
11
|
+
"type": "pubsub",
|
|
12
|
+
"projectId": "OVH:<PROJECT_ID>",
|
|
13
|
+
"publisher": {
|
|
14
|
+
"batching": {
|
|
15
|
+
"maxMilliseconds": 0,
|
|
16
|
+
"maxMessages": 999
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"subscriptionOptions": {
|
|
20
|
+
"flowControl": {
|
|
21
|
+
"allowExcessMessages": false,
|
|
22
|
+
"maxMessages": 50
|
|
23
|
+
},
|
|
24
|
+
"streamingOptions": {
|
|
25
|
+
"maxStreams": 5
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"channel": "writer-bq"
|
|
29
|
+
}'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
nameOverride: transponder-rt
|
|
2
|
+
|
|
3
|
+
image:
|
|
4
|
+
tag: v5.0.1
|
|
5
|
+
|
|
6
|
+
config:
|
|
7
|
+
TRANSPONDER_RUN_MODE: "rt"
|
|
8
|
+
LOG_CONFIG: '{"type":"pino","level":"warn"}'
|
|
9
|
+
|
|
10
|
+
ELASTICSEARCH_DATA_METADATA_ENABLED: "false"
|
|
11
|
+
TRANSPORT_CONFIG: '{
|
|
12
|
+
"type": "pubsub",
|
|
13
|
+
"projectId": "OVH:<PROJECT_ID>",
|
|
14
|
+
"publisher": {
|
|
15
|
+
"batching": {
|
|
16
|
+
"maxMilliseconds": 0,
|
|
17
|
+
"maxMessages": 999
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"subscriptionOptions": {
|
|
21
|
+
"flowControl": {
|
|
22
|
+
"allowExcessMessages": false,
|
|
23
|
+
"maxMessages": 10
|
|
24
|
+
},
|
|
25
|
+
"streamingOptions": {
|
|
26
|
+
"maxStreams": 5
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"channel": "writer-rt"
|
|
30
|
+
}'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# in order to add workload id to existing SA:
|
|
2
|
+
#
|
|
3
|
+
# gcloud iam service-accounts add-iam-policy-binding --project=prd-recovr-auto \
|
|
4
|
+
# --member 'serviceAccount:prd-recovr-auto.svc.id.goog[default/transponder-tsdb]' \
|
|
5
|
+
# --role 'roles/iam.workloadIdentityUser' transponder@prd-recovr-auto.iam.gserviceaccount.com
|
|
6
|
+
#
|
|
7
|
+
nameOverride: transponder-tsdb
|
|
8
|
+
|
|
9
|
+
image:
|
|
10
|
+
tag: # v5.0.1
|
|
11
|
+
|
|
12
|
+
config:
|
|
13
|
+
TRANSPONDER_RUN_MODE: "timescale"
|
|
14
|
+
LOG_CONFIG: '{"type":"pino","level":"warn"}'
|
|
15
|
+
|
|
16
|
+
TRANSPORT_CONFIG: '{
|
|
17
|
+
"type": "pubsub",
|
|
18
|
+
"projectId": "OVH:<PROJECT_NAME>",
|
|
19
|
+
"publisher": {
|
|
20
|
+
"batching": {
|
|
21
|
+
"maxMilliseconds": 0,
|
|
22
|
+
"maxMessages": 999
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"subscriptionOptions": {
|
|
26
|
+
"flowControl": {
|
|
27
|
+
"allowExcessMessages": false,
|
|
28
|
+
"maxMessages": 25
|
|
29
|
+
},
|
|
30
|
+
"streamingOptions": {
|
|
31
|
+
"maxStreams": 5
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"channel": "writer-tsdb"
|
|
35
|
+
}'
|
package/src/helmup.sh
CHANGED
|
@@ -769,6 +769,10 @@ CATBACKUP
|
|
|
769
769
|
;;
|
|
770
770
|
|
|
771
771
|
*)
|
|
772
|
+
# if the service dir is missing then check to see if it's a platform
|
|
773
|
+
# service and if it is then try to bootstrap from charts in build-tools
|
|
774
|
+
[[ ! -d $SERVICE && ${PLATFORM[@]} =~ $SERVICE ]] && bootstrapLocalSetup $SERVICE
|
|
775
|
+
|
|
772
776
|
if [ ! -d $SERVICE ] || [ ! -f $SERVICE/values-local.yaml ];
|
|
773
777
|
then
|
|
774
778
|
printf "\n$YELO_WARN Skipping unknown service => $SERVICE - missing `color r $SERVICE/values-local.yaml`\n\n"
|