Skip to content
Snippets Groups Projects
Commit 83cd0442 authored by nimrod's avatar nimrod
Browse files

Setup beats.

Start shipping data.
parent 86ee07bf
No related branches found
No related tags found
No related merge requests found
Pipeline #1476 failed
...@@ -6,24 +6,55 @@ services: ...@@ -6,24 +6,55 @@ services:
context: filebeat context: filebeat
image: registry.shore.co.il/filebeat image: registry.shore.co.il/filebeat
restart: always restart: always
user: root
volumes:
- filebeat:/usr/share/filebeat/data/
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
journalbeat: journalbeat:
build: build:
context: journalbeat context: journalbeat
image: registry.shore.co.il/journalbeat image: registry.shore.co.il/journalbeat
restart: always restart: always
user: root
volumes:
- journalbeat:/usr/share/journalbeat/data/
- /var/log/journal:/var/log/journal
- /etc/machine-id:/etc/machine-id
- /run/systemd:/run/systemd
- /etc/hostname:/etc/hostname:ro
metricbeat: metricbeat:
build: build:
context: metricbeat context: metricbeat
image: registry.shore.co.il/metricbeat image: registry.shore.co.il/metricbeat
network_mode: host
restart: always restart: always
user: root
volumes:
- metricbeat:/usr/share/metricbeat/data/
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
- /proc:/hostfs/proc:ro
- /:/hostfs:ro
packetbeat: packetbeat:
build: build:
context: packetbeat context: packetbeat
cap_add:
- NET_ADMIN
image: registry.shore.co.il/packetbeat image: registry.shore.co.il/packetbeat
network_mode: host
restart: always restart: always
volumes:
- packetbeat:/usr/share/packetbeat/data/
volumes:
filebeat:
journalbeat:
metricbeat:
packetbeat:
networks: networks:
default: default:
......
...@@ -9,3 +9,11 @@ logging: ...@@ -9,3 +9,11 @@ logging:
http: http:
enabled: true enabled: true
processors:
- add_host_metadata: ~
- add_docker_metadata: ~
filebeat.inputs:
- type: container
enabled: true
...@@ -9,3 +9,6 @@ logging: ...@@ -9,3 +9,6 @@ logging:
http: http:
enabled: true enabled: true
processors:
- add_host_metadata: ~
...@@ -9,3 +9,46 @@ logging: ...@@ -9,3 +9,46 @@ logging:
http: http:
enabled: true enabled: true
processors:
- add_host_metadata: ~
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
metricbeat.modules:
- module: system
metricsets:
- cpu
- load
- memory
- network
- process
- process_summary
- uptime
- socket_summary
- diskio
- filesystem
- fsstat
- service
system.hostfs: /hostfs
- module: docker
metricsets:
- container
- cpu
- diskio
- event
- healthcheck
- info
- memory
- network
- module: linux
metricsets:
- pageinfo
- memory
- conntrack
- iostat
hostfs: /hostfs
FROM docker.elastic.co/beats/packetbeat-oss:7.12.1 FROM docker.elastic.co/beats/packetbeat-oss:7.12.1
COPY --chown=root:packetbeat packetbeat.yml /usr/share/packetbeat/packetbeat.yml COPY --chown=root:packetbeat packetbeat.yml /usr/share/packetbeat/packetbeat.yml
RUN packetbeat test config #RUN packetbeat test config
HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1 HEALTHCHECK CMD curl --fail http://localhost:5066/stats || exit 1
...@@ -9,3 +9,22 @@ logging: ...@@ -9,3 +9,22 @@ logging:
http: http:
enabled: true enabled: true
processors:
- add_host_metadata: ~
packetbeat.interfaces.device: any
packetbeat.protocols:
- type: icmp
enabled: true
- type: dns
enabled: true
- type: http
enabled: true
ports:
- 80
- type: tls
enabled: true
ports:
- 443
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment