Skip to content

Commit fa10d00

Browse files
Fix log for Grafana URL (#8961)
1 parent aa0502a commit fa10d00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/grafana/src/main/java/org/testcontainers/grafana/LgtmStackContainer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public LgtmStackContainer(DockerImageName image) {
4747

4848
@Override
4949
protected void containerIsStarted(InspectContainerResponse containerInfo) {
50-
log.info("Access to the Grafana dashboard: {}", getOtlpHttpUrl());
50+
log.info("Access to the Grafana dashboard: {}", getGrafanaHttpUrl());
5151
}
5252

5353
public String getOtlpGrpcUrl() {
@@ -61,4 +61,8 @@ public String getOtlpHttpUrl() {
6161
public String getPromehteusHttpUrl() {
6262
return "http://" + getHost() + ":" + getMappedPort(PROMETHEUS_PORT);
6363
}
64+
65+
public String getGrafanaHttpUrl() {
66+
return "http://" + getHost() + ":" + getMappedPort(GRAFANA_PORT);
67+
}
6468
}

0 commit comments

Comments
 (0)