Skip to content

Commit

Permalink
Update opentelemetry configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Jan 6, 2024
1 parent 0721a66 commit 01e3bba
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
12 changes: 7 additions & 5 deletions etc/k8s/opentelemetry-sidecar.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: opentelemtry-sidecar
namespace: hikingtracks
name: opentelemetry-sidecar
namespace: stomp-test
spec:
mode: sidecar
config: |
Expand All @@ -13,9 +13,11 @@ spec:
http:
exporters:
otlp:
endpoint: http://jaeger-all-in-one-collector.observability:4317
endpoint: jaeger-all-in-one-collector.observability:4317
tls:
insecure: true
prometheus:
endpoint: "0.0.0.0:8889"
logging:
processors:
batch:
Expand All @@ -26,7 +28,7 @@ spec:
service:
telemetry:
logs:
level: "debug"
level: "warn"
extensions: [zpages, health_check]
pipelines:
traces:
Expand All @@ -36,4 +38,4 @@ spec:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
exporters: [prometheus]
9 changes: 6 additions & 3 deletions etc/k8s/wildfly-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
configmap.reloader.stakater.com/reload: stomp-test-config
spec:
replicas: 0
minReadySeconds: 90
minReadySeconds: 30
strategy:
rollingUpdate:
maxSurge: 1
Expand Down Expand Up @@ -73,9 +73,9 @@ spec:
fieldPath: metadata.namespace
resources:
limits:
memory: "1024Mi"
memory: 1024Mi
requests:
memory: "768Mi"
memory: 768Mi
ports:
- containerPort: 8080
protocol: TCP
Expand Down Expand Up @@ -123,6 +123,9 @@ spec:
env:
- name: SERVICE_ELASTICSEARCH
value: elasticsearch.x1
resources:
limits:
memory: 64Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
Expand Down
2 changes: 1 addition & 1 deletion etc/k8s/wildfly-service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ spec:
matchLabels:
app: wildfly
endpoints:
- port: management-http
- port: metrics
path: /metrics
interval: 60s
4 changes: 4 additions & 0 deletions etc/k8s/wildfly-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spec:
port: 9990
protocol: TCP
targetPort: 9990
- name: metrics
port: 8889
protocol: TCP
targetPort: 8889
selector:
deployment: wildfly
sessionAffinity: None

0 comments on commit 01e3bba

Please sign in to comment.