forked from mtusi2026/mtusi2026lab7
fix(telemetry): advertise the local Loki address behind the TLS boundary
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,6 +5,7 @@ server:
|
|||||||
http_listen_address: 127.0.0.1
|
http_listen_address: 127.0.0.1
|
||||||
grpc_listen_address: 127.0.0.1
|
grpc_listen_address: 127.0.0.1
|
||||||
common:
|
common:
|
||||||
|
instance_addr: 127.0.0.1
|
||||||
path_prefix: /loki
|
path_prefix: /loki
|
||||||
replication_factor: 1
|
replication_factor: 1
|
||||||
ring:
|
ring:
|
||||||
|
|||||||
@@ -401,6 +401,11 @@ def main():
|
|||||||
"openbao",
|
"openbao",
|
||||||
"postgres-tls",
|
"postgres-tls",
|
||||||
"otel",
|
"otel",
|
||||||
|
"otel-tls",
|
||||||
|
"loki",
|
||||||
|
"loki-tls",
|
||||||
|
"tempo",
|
||||||
|
"tempo-tls",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
]:
|
]:
|
||||||
|
|||||||
@@ -73,7 +73,10 @@ def main():
|
|||||||
("tempo", "/ready"),
|
("tempo", "/ready"),
|
||||||
("otel", "/"),
|
("otel", "/"),
|
||||||
]:
|
]:
|
||||||
|
report["checking_backend"] = service
|
||||||
|
print("CHECK: telemetry backend " + service, flush=True)
|
||||||
wait(lambda s=service, p=path: fetch(s, p, json_result=False))
|
wait(lambda s=service, p=path: fetch(s, p, json_result=False))
|
||||||
|
report.setdefault("ready_backends", []).append(service)
|
||||||
report["backends_ready"] = True
|
report["backends_ready"] = True
|
||||||
buffer = io.BytesIO()
|
buffer = io.BytesIO()
|
||||||
Image.new("RGB", (320, 200), (24, 110, 153)).save(buffer, "PNG")
|
Image.new("RGB", (320, 200), (24, 110, 153)).save(buffer, "PNG")
|
||||||
|
|||||||
Reference in New Issue
Block a user