-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open Telemetry and Docker #315
base: main
Are you sure you want to change the base?
Conversation
|
d456dc3
to
48144f0
Compare
Makefile
Outdated
rm -rf classes target | ||
|
||
opentelemetry-javaagent.jar: | ||
curl -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar -o $@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lijkt me niet heel verstandig "latest" te gebruiken omdat het maken van een docker image nog minder deterministisch maakt. Tegelijkertijd moeten we dan wel gaan tracken welke versie van opentelemetry we gebruiken. Is het niet mogelijk deze jar in onze uberjar op te nemen en daarmee een duidelijk dependency te hebben?
dev-infra/prometheus.yml
Outdated
@@ -0,0 +1,41 @@ | |||
# my global config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Onzinnige comment.
dev-infra/prometheus.yml
Outdated
|
||
#rule_files: | ||
# - "first.rules" | ||
# - "my/*.rules" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code? Als dit een zinnig snippet is, documenteren.
dev-infra/prometheus.yml
Outdated
service: prometheus | ||
# - targets: ["host.docker.internal:8080"] | ||
# labels: | ||
# service: eduhub-gateway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code? Als dit een zinnig snippet is, documenteren.
COPY --from=builder /app/target/eduhub-rio-mapper.jar /eduhub-rio-mapper.jar | ||
# Make sure there is an opentelemetry agent in the workdir in case docker-compose | ||
# starts up a process with -javaagent in the JAVA_TOOL_OPTIONS | ||
COPY --from=builder /app/vendor/opentelemetry-javaagent-2.2.0.jar /opentelemetry-javaagent.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Liever geen binaries in de repo en volgens mij wordt deze al gedownload in de makefile (latest weliswaar maar daar heb ik al overgeklaagd)
910d9fc
to
8dae8d9
Compare
Use distroless/java as the docker base image again Also: build local docker image in compose, fix some settings Ensure host truststore, keystore and clients config are used when running system in docker.
Docker compose setup in which to run api, worker, redis and prometheus.
After starting the dev docker container:
api produces metrics on http://localhost:9464/metrics
worker produces metrics on http://localhost:9465/metrics
prometheus runs on http://localhost:9090/
api and worker also produce metrics on their old endpoints. The plan is to move these metrics to the new endpoints, but that hasn't happened yet.