# Apm agent on openshift

**URL:** <https://discuss.elastic.co/t/apm-agent-on-openshift/297770>\
**Category:** APM\
**Tags:** server\
**Created:** [February 21, 2022, 2:53pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770 "2022-02-21T14:53:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shandiaji](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shandiaji](https://discuss.elastic.co/u/shandiaji)\
**Post date:** [February 21, 2022, 2:53pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/1 "2022-02-21T14:53:33Z")

</div>

hy everyone,

im newbie at elastic apm and i want to install apm agent on openshift, anyone can help me how to deploy apm agent on openshift or anyone have a guide how to deploy apm agent on openshift or link?

Thanks before.

---

<div class="post-metadata">

**Author:** ![IsraelPerales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/israelperales/32/85001_2.png) [@IsraelPerales](https://discuss.elastic.co/u/IsraelPerales)\
**Post date:** [February 23, 2022, 1:13am UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/2 "2022-02-23T01:13:20Z")

</div>

Hi, if you have openshift 3.X you need create a Dockerfile with apm-server, if you have openshift 4.x you can use ECK.

[Run Elastic Cloud on Kubernetes on Red Hat OpenShift](https://cloud.redhat.com/blog/run-elastic-cloud-on-kubernetes-on-red-hat-openshift)

---

<div class="post-metadata">

**Author:** ![shandiaji](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shandiaji](https://discuss.elastic.co/u/shandiaji)\
**Post date:** [February 24, 2022, 2:21pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/3 "2022-02-24T14:21:33Z")

</div>

hi israel,

how about if i have a elastic apm server with on prem server and i want to monitoring application where application running on openshift, how to install apm agent?

thanks

---

<div class="post-metadata">

**Author:** ![IsraelPerales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/israelperales/32/85001_2.png) [@IsraelPerales](https://discuss.elastic.co/u/IsraelPerales)\
**Post date:** [February 25, 2022, 3:54pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/4 "2022-02-25T15:54:38Z")

</div>

It's different for each language but the process is similar.

You need to create a base image with the apm agent inside and the default configuration.

Before that, you must have apm server running

---

<div class="post-metadata">

**Author:** ![shandiaji](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shandiaji](https://discuss.elastic.co/u/shandiaji)\
**Post date:** [February 25, 2022, 4:11pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/5 "2022-02-25T16:11:48Z")

</div>

hmmm..i see, I've thought of that way, but it seems difficult to do, because the app team doesn't want to do that, because their app is already running.

how about that?

---

<div class="post-metadata">

**Author:** ![IsraelPerales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/israelperales/32/85001_2.png) [@IsraelPerales](https://discuss.elastic.co/u/IsraelPerales)\
**Post date:** [March 1, 2022, 1:50am UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/6 "2022-03-01T01:50:33Z")

</div>

It's impossible, you need to build and deploy

---

<div class="post-metadata">

**Author:** ![shandiaji](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shandiaji](https://discuss.elastic.co/u/shandiaji)\
**Post date:** [March 9, 2022, 1:57am UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/7 "2022-03-09T01:57:43Z")

</div>

oke, thanks for your explain

---

<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:** [March 29, 2022, 9:58pm UTC](https://discuss.elastic.co/t/apm-agent-on-openshift/297770/8 "2022-03-29T21:58:33Z")

</div>

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