Skip to content

Commit b9c058f

Browse files
committed
ldap config update
1 parent f66d191 commit b9c058f

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

app/config/mrt/ldap.lookup.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,27 @@ docker: &docker
2525
connect_timeout: 15
2626
dockerlocal:
2727
<<: *docker
28-
ecs-dev:
29-
<<: *docker
28+
ecs-dev: &ecs-dev
29+
admin_password:
30+
val: password
31+
host:
32+
val: ldap
33+
port:
34+
val: 1636
35+
default_read:
36+
val: merritt-test, anonymous
37+
default_write:
38+
val: merritt-test
39+
default_download:
40+
val: merritt-test, anonymous
41+
default_admin:
42+
val: merritt-test
43+
_fixed:
44+
<<: *fixed
3045
ecs-dbsnapshot:
31-
<<: *docker
46+
<<: *ecs-dev
3247
ecs-ephemeral:
33-
<<: *docker
48+
<<: *ecs-dev
3449
ecs-stg:
3550
admin_password:
3651
ssm: /uc3/mrt/stg/ldap/admin-password

app/lib/routes/services.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ def self.registered(app)
596596
audit_online_bytes_count = row.fetch('audit_online_bytes_count', 0).to_i
597597
audit_nearline_file_count = row.fetch('audit_nearline_file_count', 0).to_i
598598
end
599+
# json values were being written in exponential notation, so converting to int and back to float
600+
# to get a more readable value when loading to CW metrics. We lose precision on values less than 10MB.
599601
metrics.merge!({
600602
number_of_active_replications: repcount,
601603
gb_to_be_replicated: (repbytes / 10_000_000).to_i / 100.0,

0 commit comments

Comments
 (0)