This message was deleted.
# general
s
This message was deleted.
a
Hi @User Welcome to the SigNoz community! 🙂 @User please help him out.
a
Hey Hemant, Didn't get your question correctly but would like to simplify the setup steps.
1. Install signoz (now you have the IP where SigNoz is hosted)
2. Add opentelemetry library in your application and build the docker image for your application again
3. pass URL of signoz as environment variable to your application
@User which language is your application written in?
h
Thnx Ankit, actually my application are running as java through dockerfile then creating an image now how to embedd the part for it the signoz way of installation
a
ok..
h
Any reference for such setup
a
in dockerfile you specify the run command for you application jar right? In the
RUN
command in dockerfile you need to add below:
Copy code
java -javaagent:/path/to/opentelemetry-javaagent-all.jar \
    -Dotel.metrics.exporter=none \
    -Dotel.exporter.otlp.endpoint=http://<IP of SigNoz Backend>:4317 \
    -Dotel.resource.attributes="service.name=<app_name>" \
    -jar <myapp>.jar
👍 1
or wherever you specify the run command, whether in dockerfile or K8s yaml
let me know if this works 🙂
BTW which framework are you using in java? SpringBoot?
h
Springboot
a
h
Will test it out and come if any issues
a
Sure 🙂