Skip to content

Commit

Permalink
chore: bump elastic-agent to 8.16.0-SNAPSHOT (#61)
Browse files Browse the repository at this point in the history
* chore: bump k8s deployment to elasti-agent 8.16.0-SNAPSHOT

* chore: bump elastic-agent docker version
  • Loading branch information
rogercoll authored Aug 29, 2024
1 parent c5cfd5c commit e1ade33
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .env.override
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ KAFKA_SERVICE_DOCKERFILE=./src/kafka/Dockerfile.elastic
# *********************
# Elastic Collector
# *********************
COLLECTOR_CONTRIB_IMAGE=docker.elastic.co/beats/elastic-agent:8.15.0-SNAPSHOT
COLLECTOR_CONTRIB_IMAGE=docker.elastic.co/beats/elastic-agent:8.16.0-SNAPSHOT
OTEL_COLLECTOR_CONFIG=./src/otelcollector/otelcol-elastic-config.yaml
OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otelcollector/otelcol-elastic-config-extras.yaml
ELASTIC_AGENT_OTEL=true
4 changes: 2 additions & 2 deletions docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ services:
limits:
memory: 200M
restart: unless-stopped
command: ["otel", "--config", "/etc/otelcol-config.yml", "--config", "/etc/otelcol-config-extras.yml" ]
entrypoint: [ /usr/share/elastic-agent/elastic-agent ]
command: ["--config", "/etc/otelcol-config.yml", "--config", "/etc/otelcol-config-extras.yml" ]
user: 0:0
volumes:
- ${HOST_FILESYSTEM}:/hostfs:ro
Expand All @@ -603,6 +602,7 @@ services:
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP
- ELASTIC_AGENT_OTEL

# Prometheus
prometheus:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,7 @@ services:
limits:
memory: 200M
restart: unless-stopped
command: ["otel", "--config", "/etc/otelcol-config.yml", "--config", "/etc/otelcol-config-extras.yml" ]
entrypoint: [ /usr/share/elastic-agent/elastic-agent ]
command: ["--config", "/etc/otelcol-config.yml", "--config", "/etc/otelcol-config-extras.yml" ]
user: 0:0
volumes:
- ${HOST_FILESYSTEM}:/hostfs:ro
Expand All @@ -713,6 +712,7 @@ services:
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP
- ELASTIC_AGENT_OTEL

# Prometheus
prometheus:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/elastic-helm/configmap-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:

data:
relay: |
extensions:
health_check:
endpoint: ${env:MY_POD_IP}:13133
exporters:
debug:
elasticsearch:
Expand Down Expand Up @@ -253,6 +256,7 @@ data:
extra_metadata_labels:
- container.id
service:
extensions: [health_check]
pipelines:
logs:
receivers: [filelog]
Expand Down
5 changes: 4 additions & 1 deletion kubernetes/elastic-helm/configmap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:

data:
relay: |
extensions:
health_check:
endpoint: ${env:MY_POD_IP}:13133
connectors:
spanmetrics: {}
exporters:
Expand All @@ -18,7 +21,6 @@ data:
compression: none
headers:
Authorization: Bearer ${env:ELASTIC_APM_SECRET_TOKEN}
extensions:
processors:
batch: {}
resource:
Expand All @@ -42,6 +44,7 @@ data:
endpoint: ${env:MY_POD_IP}:4318
service:
extensions:
- health_check
pipelines:
logs:
exporters:
Expand Down
15 changes: 3 additions & 12 deletions kubernetes/elastic-helm/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,15 @@ presets:

image:
repository: docker.elastic.co/beats/elastic-agent
tag: 8.15.0-SNAPSHOT
command:
name: "/usr/share/elastic-agent/elastic-agent"
extraArgs: ["otel"]
livenessProbe:
httpGet:
port: 8888
path: metrics
readinessProbe:
httpGet:
port: 8888
path: metrics
tag: 8.16.0-SNAPSHOT

securityContext:
runAsUser: 0
runAsGroup: 0

extraEnvs:
- name: ELASTIC_AGENT_OTEL
value: "true"
- name: ELASTIC_ENDPOINT
valueFrom:
secretKeyRef:
Expand Down
16 changes: 3 additions & 13 deletions kubernetes/elastic-helm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ default:
opentelemetry-collector:
image:
repository: docker.elastic.co/beats/elastic-agent
tag: 8.15.0-SNAPSHOT
command:
name: "/usr/share/elastic-agent/elastic-agent"
extraArgs: ["otel"]
tag: 8.16.0-SNAPSHOT
mode: "deployment"
presets:
kubernetesAttributes:
Expand All @@ -49,6 +46,8 @@ opentelemetry-collector:
enabled: true

extraEnvs:
- name: ELASTIC_AGENT_OTEL
value: "true"
- name: ELASTIC_APM_ENDPOINT
valueFrom:
secretKeyRef:
Expand All @@ -64,15 +63,6 @@ opentelemetry-collector:
create: false
existingName: elastic-otelcol-agent

livenessProbe:
httpGet:
port: 8888
path: metrics
readinessProbe:
httpGet:
port: 8888
path: metrics

opensearch:
enabled: false

Expand Down

0 comments on commit e1ade33

Please sign in to comment.