If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text
TIP 1: select at least one tag that further categorizes your topic. For example server
for APM Server related questions, java
for questions regarding the Elastic APM Java agent, or ui
for questions about the APM App within Kibana.
TIP 2: Check out the troubleshooting guide first. Not only will it help you to resolve common problems faster but it also explains in more detail which information we need before we can properly help you.
Kibana version: 8.12.2
Elasticsearch version: 8.12.2
APM Server version: 7.1
APM Agent language and version: java - 1.48 (docker.elastic.co/observability/apm-agent-java:latest)
Browser version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version: - need help in installation of apm agent for currenlt running kubernetes service in openshift
idea is to use apm agent in the form of init container and get the monitoring done
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): - not able to configure the elastic agent using init container
Steps to reproduce:
1.
2.
3.
Errors in browser console (if relevant): init crashloopbackoff
Provide logs and/or server output (if relevant):
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-service-init-test
namespace: backend
spec:
replicas: 1
selector:
matchLabels:
app: my-service-init-test
template:
metadata:
labels:
app: my-service-init-test
spec:
initContainers:
- name: init-container
image: docker.elastic.co/observability/apm-agent-java:latest
command: ['cp', '-v', '/usr/agent/elastic-apm-agent.jar', '/elastic/apm/agent']
envFrom:
- configMapRef:
name: my-apm-init-cm
containers:
- name: my-service
image: my-service-helm:9
ports:
- containerPort: 9600
envFrom:
- configMapRef:
name: my-service-cm
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 250m
memory: 500Mi
periodSeconds: 10
imagePullSecrets:
- name: my-docker-secret