Skip to content

Commit 07168f3

Browse files
committed
fix prom example and add test
1 parent 85725ed commit 07168f3

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/prometheus-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: OATS Tests
1+
name: Prometheus Test
22

33
on:
44
pull_request:

.mise/tasks/prometheus-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -euo pipefail
66
cd prometheus
77
../gradlew shadowJar
88
# start docker compose in background
9+
docker compose create
910
docker compose start
1011

1112
# check that 200 is returned from the metrics endpoint

prometheus/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM eclipse-temurin:11.0.29_7-jre@sha256:5a9b558567e6a2f7fbaa5000891caf515c31db
22

33
ADD build/libs/opentelemetry-examples-prometheus-*-SNAPSHOT-all.jar /app.jar
44

5-
ENTRYPOINT java -cp app.jar io.opentelemetry.example.prometheus.PrometheusExample 19090
5+
ENTRYPOINT exec java -cp app.jar io.opentelemetry.example.prometheus.PrometheusExample 19090

prometheus/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3'
21
services:
32
app:
43
build: ./

0 commit comments

Comments
 (0)