# Anyone know the elastic\_apm\_application\_packages value for Jenkins?

**URL:** https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786
**Category:** APM
**Tags:** java
**Created:** [March 15, 2023, 7:09pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786 "2023-03-15T19:09:44Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 15, 2023, 7:09pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/1 "2023-03-15T19:09:44Z")

</div>

I have no idea where/how to find this value, I've exhausted my Google Fu capabilities.

Thanks

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [March 15, 2023, 8:18pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/2 "2023-03-15T20:18:16Z")

</div>

Hi @trudesea

Did you simply try not setting it... it is actually not required...its a good practice but not required.

Also, I just downloaded the jar and took a look

[https://get.jenkins.io/war-stable/](https://get.jenkins.io/war-stable/)

You also might think about some of the automatic profiler

And I assume you looked at this?

> **[CI/CD observability | Observability Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/observability/current/ci-cd-observability.html)**
>
> Learn configuration options for Elastic Serverless Forwarder and how to transform your AWS data as it is collected from Amazon Web Services (AWS).

> **[OpenTelemetry](https://plugins.jenkins.io/opentelemetry/)**
>
> Publish Jenkins metrics to an OpenTelemetry endpoint, including distributed traces of job executions and health metrics of the controller.

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 15, 2023, 8:38pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/3 "2023-03-15T20:38:42Z")

</div>

Thanks, not a Java guy so I was a bit lost there.

We implemented OpenTelemetry, but there is a bug in Elastic (confirmed by support ticket) where the Java/CPU/Heap, etc metrics are not populated in APM. The data is there, but APM doesn't see it. I would prefer to use Opentelemetry, but exploring all my options and having APM as an init container in ECK was an option provided by the support rep.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [March 15, 2023, 8:43pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/4 "2023-03-15T20:43:52Z")

</div>

What version of the stack?

Try our APM Agent just leave the packages out for a first try.

> [@trudesea](#):
>
> confirmed by support ticket) where the Java/CPU/Heap, etc metrics are not populated in APM.

Yeah, if I recall they're not properly mapped to our fields for the OOTB experience but you can build a dashboard in 15 to 30 minutes. You just have to use the open telemetry fields.

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 16, 2023, 2:54pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/5 "2023-03-16T14:54:06Z")

</div>

We are on 8.5.2.

Yes we built a dashboard for that. The Jenkins plugin has some nice QoL capabilities and I'd like to keep using it. The other reason I'm trying the agent is that our Jenkins master shortly after configuring the plugin, started restarting, but we are also in heavy Jenkins pipeline development at the moment We removed the plugin and are monitoring it to see if that behavior stops. I'm trying the apm agent as a backup if it is indeed the plugin causing issues.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [March 16, 2023, 2:57pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/6 "2023-03-16T14:57:51Z")

</div>

So did you try the elastic agent without setting the packages it should work... then you can start narrowing it down

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 16, 2023, 3:47pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/7 "2023-03-16T15:47:43Z")

</div>

I'm working on that now

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 16, 2023, 7:26pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/8 "2023-03-16T19:26:04Z")

</div>

Seems to be working, more testing to be done...ty

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [March 16, 2023, 7:27pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/9 "2023-03-16T19:27:00Z")

</div>

Cool... Let us know if / what you did to get it working ... or was it just magic 🙂 and/or share any tips for the next person.

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 16, 2023, 7:59pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/10 "2023-03-16T19:59:32Z")

</div>

I just put a random value in for the elastic\_apm\_application\_packages environment variable. I did not attempt to run apm without knowing what I needed to set it to. This document says it's part of the minimal configuration and important. I didn't want to waste my time if I didn't know the proper value.

> **[Configuration | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html#configuration-minimal)**

Since you said it isn't required, I tried just setting it to something and everything works.

Thanks

---

<div class="post-metadata">

### Author: ![trudesea](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@trudesea](https://discuss.elastic.co/u/trudesea)
#### Post date: [March 17, 2023, 4:29pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/11 "2023-03-17T16:29:34Z")

</div>

Ok so after more testing, we aren't getting expected trace names or logs, we are getting 2 traces:  
Stapler#doGet  
Stapler#doPost

That's it and traces go no deeper than that. With OT we were getting the job names, logs, etc

We do have other elastic apm agents running on JIRA/Liferay and they are working correctly.  
Only thing I can think of is something having to do with running it as an init container in the Jenkins master deployment, but it obviously is seeing somethings such as java heap, cpu etc.

---

<div class="post-metadata">

### Author: ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)
#### Post date: [March 17, 2023, 6:52pm UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/12 "2023-03-17T18:52:50Z")

</div>

Hi,

Another alternative here would be to use OTel agent directly with APM Server, APM Server has an OTLP endpoint, so evey OTel library/agent can use it as destination.

The complete documentation is available [here](https://www.elastic.co/guide/en/apm/guide/current/open-telemetry.html), the suggestion above is available under the [OpenTelemetry native support](https://www.elastic.co/guide/en/apm/guide/current/open-telemetry-direct.html) header.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 10, 2023, 9:08am UTC](https://discuss.elastic.co/t/anyone-know-the-elastic-apm-application-packages-value-for-jenkins/327786/14 "2023-04-10T09:08:16Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
